update patch report

This commit is contained in:
willtome
2022-03-23 16:33:14 -04:00
parent 69cdbae17a
commit 9e63477254
25 changed files with 51 additions and 20 deletions

View File

@@ -5,30 +5,24 @@
report_server: node1
tasks:
- name: Ensure Unix/Linux platforms only
assert:
that: ansible_os_family != "Windows"
- name: Scan packages (Unix/Linux)
demo.patching.scan_packages:
os_family: "{{ ansible_os_family }}"
- name: Scan services (Unix/Linux)
demo.patching.scan_services:
- include_role:
name: demo.patching.patch_linux
- block:
- yum:
name: httpd
state: latest
check_mode: no
- service:
name: httpd
state: started
check_mode: no
- include_role:
name: demo.patching.build_report_linux
name: demo.patching.report_linux
- include_role:
name: demo.patching.build_report_linux_patch
name: demo.patching.report_linux_patch
delegate_to: "{{ report_server }}"
run_once: yes