From f75abf978a87dc476f7fa6577bb70ab86a06fc23 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Mon, 25 Sep 2023 21:57:43 +0100 Subject: [PATCH] always update cache --- infra/cloud/0001_initialise_playbook.yaml | 1 + infra/cloud/0002_software_playbook.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/cloud/0001_initialise_playbook.yaml b/infra/cloud/0001_initialise_playbook.yaml index 5ece9eb..e0553bb 100644 --- a/infra/cloud/0001_initialise_playbook.yaml +++ b/infra/cloud/0001_initialise_playbook.yaml @@ -7,6 +7,7 @@ timeout: 300 - name: Install system packages ansible.builtin.apt: + update_cache: true package: qemu-guest-agent state: latest become: true diff --git a/infra/cloud/0002_software_playbook.yaml b/infra/cloud/0002_software_playbook.yaml index 8849650..36d4aad 100644 --- a/infra/cloud/0002_software_playbook.yaml +++ b/infra/cloud/0002_software_playbook.yaml @@ -7,6 +7,7 @@ timeout: 300 - name: Install dependencies ansible.builtin.apt: + update_cache: true package: - curl - python3-apt @@ -19,11 +20,11 @@ become: true - name: Add docker repo ansible.builtin.apt_repository: - update_cache: true repo: deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable become: true - name: Install docker ansible.builtin.apt: + update_cache: true pacakge: - docker-ce - docker-ce-cli