Files
2021-06-23 13:52:08 +12:00

20 lines
400 B
YAML

---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: install httpd-itk
dnf:
name: httpd-itk
update_cache: true
state: installed
- name: Gather the package facts
package_facts:
manager: auto
- name: Is httpd-itk installed?
assert:
that: "'httpd-itk' in ansible_facts.packages"