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

32 lines
651 B
YAML

---
- hosts: "{{ HOSTS }}"
become: yes
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