update playbook
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user