Commit a710cc10 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
command: apt-get update -y --allow-releaseinfo-change
when: ansible_os_family == "Debian" or ansible_os_family == "Linuxmint"
when: (ansible_distribution == "Debian" and ansible_ditribution_major_version|int > 9) or
(ansible_ditribution == "Ubuntu" and ansible_ditribution_major_version|int > 18)
- 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