update playbook

This commit is contained in:
willtome
2022-03-23 14:51:39 -04:00
parent e7a72c1a2f
commit 42aa01b955

View File

@@ -1,5 +1,6 @@
--- ---
- hosts: "{{ HOSTS }}" - hosts: "{{ HOSTS }}"
become: yes
tasks: tasks:
- name: Ensure Unix/Linux platforms only - name: Ensure Unix/Linux platforms only
@@ -8,24 +9,24 @@
- name: Scan packages (Unix/Linux) - name: Scan packages (Unix/Linux)
demo.patching.scan_packages: demo.patching.scan_packages:
os_family: '{{ ansible_os_family }}' os_family: "{{ ansible_os_family }}"
- name: Scan services (Unix/Linux) - name: Scan services (Unix/Linux)
demo.patching.scan_services: demo.patching.scan_services:
block: block:
- yum: - yum:
name: httpd name: httpd
state: latest state: latest
- service: - service:
name: httpd name: httpd
state: started state: started
- include_role: - include_role:
name: demo.patching.build_report_linux name: demo.patching.build_report_linux
- include_role: - include_role:
name: demo.patching.build_report_linux_patch name: demo.patching.build_report_linux_patch
delegate_to: report_servers delegate_to: report_servers
run_once: yes run_once: yes