You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
778 B
25 lines
778 B
5 years ago
|
---
|
||
|
|
||
|
- name: Ensure Docker repository is enabled
|
||
2 years ago
|
ansible.builtin.template:
|
||
3 years ago
|
src: "{{ role_path }}/files/yum.repos.d/docker-ce-centos.repo"
|
||
3 years ago
|
dest: "/etc/yum.repos.d/docker-ce.repo"
|
||
5 years ago
|
owner: "root"
|
||
|
group: "root"
|
||
|
mode: 0644
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
5 years ago
|
|
||
|
- name: Ensure Docker's RPM key is trusted
|
||
2 years ago
|
ansible.builtin.rpm_key:
|
||
5 years ago
|
state: present
|
||
|
key: https://download.docker.com/linux/centos/gpg
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
5 years ago
|
|
||
5 years ago
|
- name: Ensure Docker is installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
5 years ago
|
name:
|
||
5 years ago
|
- "{{ matrix_docker_package_name }}"
|
||
5 years ago
|
- docker-python
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|