zuul-jobs/roles/ensure-docker/tasks/upstream-yum.yaml
vass c80b593fb6 Rename install-docker to ensure-docker for consistency
The old role will be kept and include ensure-docker for backwards compatability.

Change-Id: Icb76a954b04631c405b09eb54343fd852a511b83
2020-04-04 15:41:29 -04:00

28 lines
573 B
YAML

---
- name: Install pre-reqs
package:
name: "{{ _docker_upstream_distro_required_packages }}"
state: present
- name: Create tmp gpg key file
copy:
content: "{{ docker_gpg_key }}"
dest: /tmp/key.gpg
- name: Import gpg key
rpm_key:
state: present
key: /tmp/key.gpg
# TODO(mordred) We should add a proxy cache mirror for this
- name: Add docker repo
template:
dest: /etc/yum.repos.d/docker-ce.repo
group: root
mode: 0644
owner: root
src: "{{ docker_repo_template }}"
- include_tasks: upstream-package-installation.yaml