diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-17 20:22:26 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-17 20:22:26 +0200 |
commit | a06114a17564d22cd3ef54a4835c7fa640468073 (patch) | |
tree | 05737e35e6c1aad4df446a5dae2fcd8c5b0c8eb8 | |
parent | 8925adb57a86adc45ebf15e9c38c8f690d38bd32 (diff) | |
download | puomi-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.yml | 10 |
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: |