Skip to content
Snippets Groups Projects
Commit b218e17f authored by Maxime Guyot's avatar Maxime Guyot Committed by Kubernetes Prow Robot
Browse files

ansible-lint: E403 Package installs should not use latest (#4500)

parent bba6d0c6
Branches
Tags
No related merge requests found
......@@ -14,7 +14,6 @@ skip_list:
- '303'
- '305'
- '306'
- '403'
- '404'
- '502'
- '503'
......
---
- name: Upgrade all packages to the latest version (yum)
yum:
name: '*'
state: latest
when: ansible_os_family == "RedHat"
- name: Install required packages
yum:
name: "{{ item }}"
state: latest
state: present
with_items:
- bind-utils
- ntp
......@@ -21,23 +15,13 @@
update_cache: yes
cache_valid_time: 3600
name: "{{ item }}"
state: latest
state: present
install_recommends: no
with_items:
- dnsutils
- ntp
when: ansible_os_family == "Debian"
- name: Upgrade all packages to the latest version (apt)
shell: apt-get -o \
Dpkg::Options::=--force-confdef -o \
Dpkg::Options::=--force-confold -q -y \
dist-upgrade
environment:
DEBIAN_FRONTEND: noninteractive
when: ansible_os_family == "Debian"
# Create deployment user if required
- include: user.yml
when: k8s_deployment_user is defined
......
......@@ -5,7 +5,7 @@
- name: install growpart
package:
name: cloud-utils-growpart
state: latest
state: present
- name: check if growpart needs to be run
command: growpart -N /dev/sda 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment