Commit f54f72cf authored by Jérome Perrin's avatar Jérome Perrin

roles/repository/tasks/debian_init: tolerate errors during allow-releaseinfo-change

This command should not block the playbook when a repository
is broken
parent 1897b9e8
......@@ -3,6 +3,7 @@
command: apt-get update -y --allow-releaseinfo-change
when: (ansible_distribution == "Debian" and ansible_distribution_major_version|int > 9) or
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int > 18)
ignore_errors: true
- name: Install gpg using apt
apt: name=gpg state=present
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment