--- # 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"