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