mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
434 remove permissions update, add reverse compatibility
This commit is contained in:
parent
08ae86e0b5
commit
d8f92e1874
@ -44,10 +44,14 @@
|
|||||||
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
||||||
when: docker_add_repo | bool
|
when: docker_add_repo | bool
|
||||||
|
|
||||||
- name: Change permissions for /etc/apt/keyrings/docker.gpg
|
- name: Ensure curl is present (on older systems without SNI).
|
||||||
file:
|
package: name=curl state=present
|
||||||
path: /etc/apt/keyrings/docker.gpg
|
when: add_repository_key is failed and docker_add_repo | bool
|
||||||
mode: 'a+r'
|
|
||||||
|
- name: Add Docker apt key (alternative for older systems without SNI).
|
||||||
|
shell: >
|
||||||
|
curl -sSL {{ docker_apt_gpg_key }} | apt-key add -
|
||||||
|
when: add_repository_key is failed and docker_add_repo | bool
|
||||||
|
|
||||||
- name: Add Docker repository.
|
- name: Add Docker repository.
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
Loading…
Reference in New Issue
Block a user