preinstall: use package instead of action, use state: present
Before this commit we were upgrading base os packages on each run
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 4eec302e86
)
This commit is contained in:
parent
a652a3b3b5
commit
803f89e82b
1 changed files with 4 additions and 5 deletions
|
@ -40,7 +40,7 @@
|
|||
- bootstrap-os
|
||||
|
||||
- name: Install epel-release on RedHat/CentOS
|
||||
yum:
|
||||
package:
|
||||
name: epel-release
|
||||
state: present
|
||||
when:
|
||||
|
@ -56,10 +56,9 @@
|
|||
when: kube_proxy_mode == 'ipvs'
|
||||
|
||||
- name: Install packages requirements
|
||||
action:
|
||||
module: "{{ ansible_pkg_mgr }}"
|
||||
package:
|
||||
name: "{{ required_pkgs | default([]) | union(common_required_pkgs|default([])) }}"
|
||||
state: latest
|
||||
state: present
|
||||
register: pkgs_task_result
|
||||
until: pkgs_task_result is succeeded
|
||||
retries: "{{ pkg_install_retries }}"
|
||||
|
@ -69,7 +68,7 @@
|
|||
- bootstrap-os
|
||||
|
||||
- name: Install ipvsadm for ClearLinux
|
||||
swupd:
|
||||
package:
|
||||
name: ipvsadm
|
||||
state: present
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue