ansible-icinga2-rpminstall/molecule/default/verify.yml
2023-03-06 22:52:05 +01:00

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"