This commit is contained in:
qubusp 2017-05-10 11:37:33 +00:00 committed by GitHub
commit 4d889ed49e
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,8 @@
--- ---
- include: setup-RedHat.yml - include: setup-RedHat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- templates: src=docker.j2 dest=/etc/yum.repos.d/docker.repo
when: ansible_os_family == 'RedHat'
- include: setup-Debian.yml - include: setup-Debian.yml
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'

6
templates/docker-ce.j2 Normal file
View File

@ -0,0 +1,6 @@
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg