mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-20 04:30:10 -03:30
Fix deprecation warnings (#4130)
* use not deprecated ansible_play_hosts variable * Using tests as filters is deprecated * Fix deprecation warning about pkg list
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
1abd3cf3d7
commit
7f93a5a0f5
@@ -9,7 +9,7 @@
|
||||
- docker.io
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
|
||||
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
||||
|
||||
- name: Ensure old versions of Docker are not installed. | RedHat
|
||||
package:
|
||||
@@ -28,5 +28,5 @@
|
||||
- docker-engine-selinux.noarch
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
|
||||
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
||||
- not is_atomic
|
||||
|
||||
@@ -88,13 +88,12 @@
|
||||
- name: Install packages requirements
|
||||
action:
|
||||
module: "{{ ansible_pkg_mgr }}"
|
||||
name: "{{ item }}"
|
||||
name: "{{ required_pkgs | default([]) | union(common_required_pkgs|default([])) }}"
|
||||
state: latest
|
||||
register: pkgs_task_result
|
||||
until: pkgs_task_result is succeeded
|
||||
retries: 4
|
||||
delay: "{{ retry_stagger | random + 3 }}"
|
||||
with_items: "{{required_pkgs | default([]) | union(common_required_pkgs|default([]))}}"
|
||||
when: not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS", "ClearLinux"] or is_atomic)
|
||||
tags:
|
||||
- bootstrap-os
|
||||
|
||||
Reference in New Issue
Block a user