mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-08-15 13:48:28 +02:00
Only install apt-transport-https when necessary
This commit is contained in:
parent
c94e327a74
commit
d50dd1dae3
@ -6,10 +6,16 @@
|
||||
- docker-engine
|
||||
state: absent
|
||||
|
||||
- name: Ensure apt can transport via https
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution == 'Debian' and ansible_distribution_major_version|int < 10 or
|
||||
ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 18
|
||||
|
||||
- name: Ensure dependencies are installed.
|
||||
apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- gnupg2
|
||||
state: present
|
||||
|
Loading…
Reference in New Issue
Block a user