fix duplicate variable name
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, debian11) (push) Successful in 1m53s
test / Molecule tests (default, debian12) (push) Successful in 2m0s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m59s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m39s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m42s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m40s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m48s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 2m7s

This commit is contained in:
Bertrand Lanson 2023-08-29 23:42:00 +02:00
parent a0e77bafb3
commit 29abb1dadf
3 changed files with 5 additions and 12 deletions

View File

@ -99,19 +99,12 @@
- name: "Test: python package docker"
block:
- name: "Command pip3 list -o"
- name: "Command pip3 list"
ansible.builtin.command: "pip3 list -o"
changed_when: false
register: pip3_list_outdated
- name: "Command pip3 list -u"
ansible.builtin.command: "pip3 list -u"
changed_when: false
register: pip3_list_uptodate
register: pip3_list
- name: "Verify python package docker"
ansible.builtin.assert:
that:
- "'docker' not in pip3_list_outdated.stdout"
- "'docker' not in pip3_list_uptodate.stdout"
- "'docker' not in pip3_list"

View File

@ -4,4 +4,4 @@
ansible.builtin.include_role:
name: ednxzu.manage_apt_packages
vars:
manage_apt_packages_list: "{{ install_docker_python_packages }}"
manage_apt_packages_list: "{{ install_docker_python_packages_list }}"

View File

@ -18,7 +18,7 @@ install_docker_packages:
- name: "containerd.io"
version: latest
state: "{% if install_docker_auto_update %}latest{% else %}present{% endif %}"
install_docker_python_packages:
install_docker_python_packages_list:
- name: python3-docker
version: latest
state: "{% if install_docker_auto_update %}latest{% else %}present{% endif %}"