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.
45 lines
1.2 KiB
45 lines
1.2 KiB
4 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"
|
||
4 years ago
|
owner: "root"
|
||
|
group: "root"
|
||
|
mode: 0644
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
4 years ago
|
|
||
|
- name: Ensure Docker's RPM key is trusted
|
||
2 years ago
|
ansible.builtin.rpm_key:
|
||
4 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'
|
||
4 years ago
|
|
||
|
- name: Ensure EPEL is installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
4 years ago
|
name:
|
||
|
- epel-release
|
||
2 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
4 years ago
|
|
||
|
- name: Ensure yum packages are installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
4 years ago
|
name:
|
||
|
- "{{ matrix_ntpd_package }}"
|
||
2 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
4 years ago
|
|
||
|
- name: Ensure Docker is installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
4 years ago
|
name:
|
||
|
- "{{ matrix_docker_package_name }}"
|
||
|
- python3-pip
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|
||
4 years ago
|
|
||
|
- name: Ensure Docker-Py is installed
|
||
2 years ago
|
ansible.builtin.pip:
|
||
4 years ago
|
name: docker-py
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|