doesnt need jinja syntax here
All checks were successful
test / Linting (push) Successful in 8s
test / Molecule tests (default, debian12) (push) Successful in 41s
test / Molecule tests (default, debian11) (push) Successful in 45s
test / Molecule tests (default, ubuntu2004) (push) Successful in 49s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m8s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m16s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m38s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m15s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m39s

This commit is contained in:
Bertrand Lanson 2023-06-30 23:46:04 +02:00
parent 9080afb28d
commit 9dc9c5a90b
2 changed files with 5 additions and 5 deletions

View File

@ -27,4 +27,4 @@
- name: "Verify package vim"
ansible.builtin.assert:
that:
- "'{{ ansible_facts.packages['vim'][0]['name'] }}' == 'vim'"
- "ansible_facts.packages['vim'][0]['name'] == 'vim'"

View File

@ -27,7 +27,7 @@
- name: "Verify packages mariadb-server, apache2, consul:1.13.1-1"
ansible.builtin.assert:
that:
- "'{{ ansible_facts.packages['mariadb-server'][0]['name'] }}' == 'mariadb-server'"
- "'{{ ansible_facts.packages['apache2'][0]['name'] }}' == 'apache2'"
- "'{{ ansible_facts.packages['consul'][0]['name'] }}' == 'consul'"
- "'{{ ansible_facts.packages['consul'][0]['version'] }}' == '1.13.1-1'"
- "ansible_facts.packages['mariadb-server'][0]['name'] == 'mariadb-server'"
- "ansible_facts.packages['apache2'][0]['name'] == 'apache2'"
- "ansible_facts.packages['consul'][0]['name'] == 'consul'"
- "ansible_facts.packages['consul'][0]['version'] == '1.13.1-1'"