ubuntu OK

This commit is contained in:
Iwan Clément
2018-12-28 15:41:40 +01:00
parent 939fbabea3
commit c5a3b42c17

View File

@@ -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