manage_apt_packages/molecule/default/verify.yml
Bertrand Lanson e29f9d93c4
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, ubuntu2004) (push) Successful in 50s
test / Molecule tests (default, debian12) (push) Successful in 56s
test / Molecule tests (default, debian11) (push) Successful in 1m8s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m5s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m27s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m33s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m22s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m9s
feat(tests): remove /etc/hosts testing, fix #2
2023-12-08 19:02:42 +01:00

17 lines
384 B
YAML

---
- name: Verify
hosts: all
gather_facts: true
become: true
tasks:
- name: "Test: package vim"
block:
- name: "Get packages facts"
ansible.builtin.package_facts:
manager: auto
- name: "Verify package vim"
ansible.builtin.assert:
that:
- "ansible_facts.packages['vim'][0]['name'] == 'vim'"