docker: Add support for Fedora
This commit is contained in:
parent
e1a5afcc86
commit
b7cd657dce
2 changed files with 4 additions and 1 deletions
3
roles/docker/defaults/main.yml
Normal file
3
roles/docker/defaults/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
docker_osname: >-
|
||||
{% if ansible_distribution == 'Fedora' %}fedora{% else %}centos{% endif %}
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Enable repository
|
||||
ansible.builtin.get_url:
|
||||
url: https://download.docker.com/linux/centos/docker-ce.repo
|
||||
url: "https://download.docker.com/linux/{{ docker_osname }}/docker-ce.repo"
|
||||
dest: /etc/yum.repos.d/docker-ce.repo
|
||||
mode: 0644
|
||||
owner: root
|
||||
|
|
Loading…
Add table
Reference in a new issue