Fix package-latest ansible-lint errors

Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#package-latest
development
Slavi Pantaleev 2 years ago
parent 318bfa84d5
commit 211ff20891

@ -5,12 +5,12 @@
name:
- python-docker
- python-dnspython
state: latest
state: present
update_cache: true
- name: Ensure Docker is installed
pacman:
name:
- docker
state: latest
state: present
when: matrix_docker_installation_enabled | bool

@ -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

@ -21,7 +21,7 @@
ansible.builtin.yum:
name:
- "{{ matrix_ntpd_package }}"
state: latest
state: present
update_cache: true
- name: Ensure Docker is installed
@ -29,11 +29,11 @@
name:
- "{{ matrix_docker_package_name }}"
- python3-pip
state: latest
state: present
when: matrix_docker_installation_enabled | bool
- name: Ensure Docker-Py is installed
ansible.builtin.pip:
name: docker-py
state: latest
state: present
when: matrix_docker_installation_enabled | bool

@ -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

@ -19,7 +19,7 @@
ansible.builtin.yum:
name:
- "{{ matrix_ntpd_package }}"
state: latest
state: present
update_cache: true
- name: Ensure Docker is installed
@ -27,5 +27,5 @@
name:
- "{{ matrix_docker_package_name }}"
- docker-python
state: latest
state: present
when: matrix_docker_installation_enabled | bool

@ -19,14 +19,14 @@
ansible.builtin.yum:
name:
- epel-release
state: latest
state: present
update_cache: true
- name: Ensure yum packages are installed
ansible.builtin.yum:
name:
- "{{ matrix_ntpd_package }}"
state: latest
state: present
update_cache: true
- name: Ensure Docker is installed
@ -34,11 +34,11 @@
name:
- "{{ matrix_docker_package_name }}"
- python3-pip
state: latest
state: present
when: matrix_docker_installation_enabled | bool
- name: Ensure Docker-Py is installed
ansible.builtin.pip:
name: docker-py
state: latest
state: present
when: matrix_docker_installation_enabled | bool

@ -4,7 +4,7 @@
ansible.builtin.yum:
name:
- fuse
state: latest
state: present
when: ansible_os_family == 'RedHat'
# This is for both Debian and Raspbian
@ -12,12 +12,12 @@
ansible.builtin.apt:
name:
- fuse
state: latest
state: present
when: ansible_os_family == 'Debian'
- name: Ensure fuse installed (Archlinux)
pacman:
name:
- fuse3
state: latest
state: present
when: ansible_distribution == 'Archlinux'

@ -4,7 +4,7 @@
ansible.builtin.yum:
name:
- openssl
state: latest
state: present
when: ansible_os_family == 'RedHat'
# This is for both Debian and Raspbian
@ -12,12 +12,12 @@
ansible.builtin.apt:
name:
- openssl
state: latest
state: present
when: ansible_os_family == 'Debian'
- name: Ensure openssl installed (Archlinux)
pacman:
name:
- openssl
state: latest
state: present
when: ansible_distribution == 'Archlinux'

@ -75,7 +75,7 @@
pacman:
name:
- gradle
state: latest
state: present
update_cache: true
when: ansible_distribution == 'Archlinux'

Loading…
Cancel
Save