17 lines
514 B
YAML
17 lines
514 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
|
|
tasks:
|
|
- name: "Collect installed packages"
|
|
ansible.builtin.package_facts:
|
|
manager: rpm
|
|
- name: "Check if packages are installed"
|
|
ansible.builtin.assert:
|
|
that:
|
|
- "'icinga2' in ansible_facts.packages"
|
|
- "'icinga2-bin' in ansible_facts.packages"
|
|
- "'icinga2-common' in ansible_facts.packages"
|
|
- "'icinga2-selinux' in ansible_facts.packages"
|
|
- "'icinga-selinux-common' in ansible_facts.packages"
|