summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-02-17 20:22:26 +0200
committerLars Wirzenius <liw@liw.fi>2024-02-17 20:22:26 +0200
commita06114a17564d22cd3ef54a4835c7fa640468073 (patch)
tree05737e35e6c1aad4df446a5dae2fcd8c5b0c8eb8
parent8925adb57a86adc45ebf15e9c38c8f690d38bd32 (diff)
downloadpuomi-a06114a17564d22cd3ef54a4835c7fa640468073.tar.gz
fix: update APT lists in playbook
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--puomi-playbook.yml10
1 files changed, 10 insertions, 0 deletions
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: