mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-08-25 13:46:21 +02:00
Only install apt-transport-https when necessary
This commit is contained in:
parent
c94e327a74
commit
d50dd1dae3
@ -6,10 +6,16 @@
|
|||||||
- docker-engine
|
- docker-engine
|
||||||
state: absent
|
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.
|
- name: Ensure dependencies are installed.
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- apt-transport-https
|
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- gnupg2
|
- gnupg2
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
Reference in New Issue
Block a user