Browse Source

Use local gpg file for apt/yum

tags/0.0.1^2
Julien Cabillot 2 years ago
parent
commit
bc79c0139b
2 changed files with 16 additions and 2 deletions
  1. +8
    -1
      tasks/setup-Debian.yml
  2. +8
    -1
      tasks/setup-RedHat.yml

+ 8
- 1
tasks/setup-Debian.yml View File

@@ -13,9 +13,16 @@
- ca-certificates
state: present

- name: Copy Docker GPG key
copy:
src: docker_centos_gpg
dest: /tmp/docker_debian_gpg
owner: root
group: root

- name: Add Docker apt key.
apt_key:
url: /docker_debian_gpg
url: /tmp/docker_debian_gpg
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
state: present
register: add_repository_key


+ 8
- 1
tasks/setup-RedHat.yml View File

@@ -7,9 +7,16 @@
- docker-engine
state: absent

- name: Copy Docker GPG key
copy:
src: docker_centos_gpg
dest: /tmp/docker_centos_gpg
owner: root
group: root

- name: Add Docker GPG key.
rpm_key:
key: /docker_centos_gpg
key: /tmp/docker_centos_gpg
state: present

- name: Add Docker repository.


Loading…
Cancel
Save