From 011a0d11f3ab95c7d45fb9c19ba074718c314bd9 Mon Sep 17 00:00:00 2001 From: Maeve Andrews Date: Tue, 27 Jul 2021 17:51:02 -0400 Subject: [PATCH] Move apt-get update to separate command Update is failing on Buster when done inside apache install `apt`. --- .../roles/app/tasks/install_and_harden_apache.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_files/ansible-base/roles/app/tasks/install_and_harden_apache.yml b/install_files/ansible-base/roles/app/tasks/install_and_harden_apache.yml index 5bbfc5814c..de6c47ccd1 100644 --- a/install_files/ansible-base/roles/app/tasks/install_and_harden_apache.yml +++ b/install_files/ansible-base/roles/app/tasks/install_and_harden_apache.yml @@ -1,9 +1,11 @@ --- +- name: Update apt cache. + shell: apt-get update -q + - name: Install apache packages. apt: pkg: "{{ apache_packages }}" state: present - update_cache: yes cache_valid_time: 3600 tags: - apt