manage_apt_packages/molecule/default_vagrant/verify.yml

17 lines
384 B
YAML
Raw Normal View History

2023-11-29 18:13:41 +00:00
---
- name: Verify
hosts: all
gather_facts: true
2023-12-03 16:45:22 +00:00
become: true
2023-11-29 18:13:41 +00:00
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'"