From 42aa01b955421b7669b57e5908f40912d482221a Mon Sep 17 00:00:00 2001 From: willtome Date: Wed, 23 Mar 2022 14:51:39 -0400 Subject: [PATCH] update playbook --- linux/patching_report.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/linux/patching_report.yml b/linux/patching_report.yml index c7c1a3c..5ee0bcb 100644 --- a/linux/patching_report.yml +++ b/linux/patching_report.yml @@ -1,5 +1,6 @@ --- - hosts: "{{ HOSTS }}" + become: yes tasks: - name: Ensure Unix/Linux platforms only @@ -8,24 +9,24 @@ - name: Scan packages (Unix/Linux) demo.patching.scan_packages: - os_family: '{{ ansible_os_family }}' + os_family: "{{ ansible_os_family }}" - name: Scan services (Unix/Linux) demo.patching.scan_services: - block: - - yum: - name: httpd - state: latest + block: + - yum: + name: httpd + state: latest - - service: - name: httpd - state: started + - service: + name: httpd + state: started - - include_role: - name: demo.patching.build_report_linux + - include_role: + name: demo.patching.build_report_linux - - include_role: - name: demo.patching.build_report_linux_patch - delegate_to: report_servers - run_once: yes \ No newline at end of file + - include_role: + name: demo.patching.build_report_linux_patch + delegate_to: report_servers + run_once: yes \ No newline at end of file