Commit 153de1fb authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: older ubuntu and debian don't support --allow-releaseinfo-change option

parent 3cc8b3ff
- name: Allow release-info to change for APT repositories - name: Allow release-info to change for APT repositories
command: apt-get update -y --allow-releaseinfo-change command: apt-get update -y --allow-releaseinfo-change
when: ansible_os_family == "Debian" or ansible_os_family == "Linuxmint" when: (ansible_distribution == "Debian" and ansible_distribution_major_version|int > 9) or
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int > 18)
- name: Install gpg using apt - name: Install gpg using apt
apt: name=gpg state=present 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