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:
Erwan Miran
2019-01-31 23:57:22 +01:00
committed by Kubernetes Prow Robot
parent 1abd3cf3d7
commit 7f93a5a0f5
3 changed files with 5 additions and 6 deletions

View File

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