Files
product-demos/linux/patching_report.yml
2022-03-23 14:47:26 -04:00

31 lines
611 B
YAML

---
- hosts: "{{ HOSTS }}"
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:
block:
- yum:
name: httpd
state: latest
- service:
name: httpd
state: started
- include_role:
name: demo.patching.build_report_linux
- include_role:
name: demo.patching.build_report_linux_patch
delegate_to: report_servers
run_once: yes