1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00

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

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

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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