Fix package-latest ansible-lint errors

Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#package-latest
This commit is contained in:
Slavi Pantaleev
2022-07-18 14:08:35 +03:00
parent 318bfa84d5
commit 211ff20891
9 changed files with 22 additions and 22 deletions

View File

@ -29,7 +29,7 @@
ansible.builtin.apt:
name:
- "{{ matrix_ntpd_package }}"
state: latest
state: present
update_cache: true
- name: Ensure Docker is installed
@ -37,5 +37,5 @@
name:
- "{{ matrix_docker_package_name }}"
- "python{{ '3' if ansible_python.version.major == 3 else '' }}-docker"
state: latest
state: present
when: matrix_docker_installation_enabled | bool