boma/roles/integration_test/molecule/default/verify.yml

26 lines
863 B
YAML
Raw Normal View History

---
- name: Verify
hosts: all
become: true
gather_facts: false
tasks:
- name: Gather package facts
ansible.builtin.package_facts:
- name: Assert the substrate packages are installed
ansible.builtin.assert:
that:
- "'qemu-system-x86' in ansible_facts.packages"
- "'qemu-utils' in ansible_facts.packages"
- "'libvirt-daemon-system' in ansible_facts.packages"
- "'libvirt-clients' in ansible_facts.packages"
- "'virt-install' in ansible_facts.packages"
- "'cloud-image-utils' in ansible_facts.packages"
- "'genisoimage' in ansible_facts.packages"
- name: Cache dir exists
ansible.builtin.stat:
path: /var/lib/boma-integration
register: _cache
- name: Assert cache dir
ansible.builtin.assert:
that: [_cache.stat.isdir]