From f57abae01e885a8e7c17dc8a670b78ea9e38012d Mon Sep 17 00:00:00 2001 From: jasdeep-hundal Date: Thu, 8 Feb 2018 18:56:20 -0800 Subject: [PATCH] Remove redundant python-apt install Ansible automatically installs the python-apt package when using the 'apt' Ansible module, if python-apt is not present. This patch removes the (unneeded) explicit installation in the Kubespray 'preinstall' role. --- roles/kubernetes/preinstall/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 7b60851cc..96471f528 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -147,10 +147,8 @@ tags: bootstrap-os -- name: Install latest version of python-apt for Debian distribs +- name: Update package management cache (APT) apt: - name: python-apt - state: latest update_cache: yes cache_valid_time: 3600 when: ansible_os_family == "Debian"