ansible-icinga2-rpminstall/molecule/default/verify.yml

17 lines
514 B
YAML
Raw Normal View History

2023-03-06 21:52:05 +00:00
---
- 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"