Merge pull request #188 from teutostack/warnings-removal

Fixing deprecation warnings regarding bare variables and apt
This commit is contained in:
Smaine Kahlouch
2016-03-30 11:57:57 +02:00
8 changed files with 15 additions and 20 deletions

View File

@@ -64,18 +64,13 @@
- "/opt/cni/bin"
when: kube_network_plugin == "calico"
- name: Update package management cache (APT)
apt: update_cache=yes
when: ansible_pkg_mgr == 'apt'
- name: Update package management cache (YUM)
yum: update_cache=yes name='*'
when: ansible_pkg_mgr == 'yum'
- name: Install python-apt for Debian distribs
command: apt-get install -y python-apt
- name: Install latest version of python-apt for Debian distribs
apt: name=python-apt state=latest update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
changed_when: False
- name: Install python-dnf for latest RedHat versions
command: dnf install -y python-dnf yum