From a06114a17564d22cd3ef54a4835c7fa640468073 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Feb 2024 20:22:26 +0200 Subject: fix: update APT lists in playbook Signed-off-by: Lars Wirzenius Sponsored-by: author --- puomi-playbook.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/puomi-playbook.yml b/puomi-playbook.yml index 73b6c30..8b4f470 100644 --- a/puomi-playbook.yml +++ b/puomi-playbook.yml @@ -13,6 +13,16 @@ apt_repository: repo: | deb http://deb.debian.org/debian {{ hostvars[inventory_hostname]["ansible_distribution_release"] }} contrib non-free + update_cache: no + + - name: "update apt lists" + shell: | + set -xeu + ls -la /etc + rm /etc/resolv.conf + echo nameserver 8.8.8.8 > /etc/resolv.conf + apt-get update + echo update done - name: "install software" apt: -- cgit v1.2.1