summaryrefslogtreecommitdiff
path: root/ansible/roles/riot-host
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-10 11:11:35 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-10 11:11:35 +0300
commit58da1ad6f2853082daf4123f20da7ede07c27018 (patch)
tree2aa22b66ef7783d8f49511ecbbe6fdc19d999582 /ansible/roles/riot-host
parent0780aab2724d414b83af09107521e987488f847d (diff)
downloadansibleness-58da1ad6f2853082daf4123f20da7ede07c27018.tar.gz
fix roles/riot-host to use apt-get to update lists
apt(-get) now requires --allow-releaseinfo-change when Debian has made a release. Ugh. Sponsored-by: author
Diffstat (limited to 'ansible/roles/riot-host')
-rw-r--r--ansible/roles/riot-host/tasks/main.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/ansible/roles/riot-host/tasks/main.yml b/ansible/roles/riot-host/tasks/main.yml
index 0cc820e..402da88 100644
--- a/ansible/roles/riot-host/tasks/main.yml
+++ b/ansible/roles/riot-host/tasks/main.yml
@@ -5,7 +5,15 @@
- apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/riot-im-archive-keyring.gpg] https://packages.riot.im/debian/ {{ sane_debian_system_codename }} main"
- update_cache: yes
+ update_cache: no
+
+# Use shell to run apt-get, rather than the Ansible apt module, so
+# that we can pass in the --allow-releaseinfo--change option.
+- name: update package lists
+ shell: |
+ apt-get update --allow-releaseinfo-change
+ args:
+ warn: false
- apt:
name: element-desktop