ubuntu OK
This commit is contained in:
@@ -18,6 +18,8 @@ Pipons le python:
|
||||
|
||||
{% if grains['os'] == 'Debian' %}
|
||||
{% set LURL="deb [arch=amd64] https://download.docker.com/linux/debian " + grains['oscodename']+ " stable" %}
|
||||
{% elif grains['os'] == 'Ubuntu' %}
|
||||
{% set LURL="deb [arch=amd64] https://download.docker.com/linux/ubuntu " + grains['oscodename']+ " stable" %}
|
||||
{% elif grains['os_family'] == 'RedHat' %}
|
||||
{% set LURL='https://download.docker.com/linux/centos/' + grains['osmajorrelease']|string + '/$basearch/stable' %}
|
||||
{% endif %}
|
||||
@@ -68,6 +70,11 @@ DockerCE Repository:
|
||||
- key_url: https://download.docker.com/linux/debian/gpg
|
||||
# - keyid: 0EBFCD88
|
||||
# - keyserver: keyserver.ubuntu.com
|
||||
{% if grains['os'] == 'Ubuntu' %}
|
||||
- humanname: Docker-CE Repository
|
||||
- name: {{ LURL }}
|
||||
- file: /etc/apt/sources.list.d/docker-ce.list
|
||||
- key_url: https://download.docker.com/linux/ubuntu/gpg
|
||||
{% elif grains['os_family'] == 'RedHat' %}
|
||||
- baseurl: {{ LURL }}
|
||||
- humanname: docker-ce-stable
|
||||
|
||||
Reference in New Issue
Block a user