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.
40 lines
1.1 KiB
40 lines
1.1 KiB
3 years ago
|
---
|
||
|
|
||
|
- name: Ensure Docker repository is enabled
|
||
2 years ago
|
ansible.builtin.template:
|
||
3 years ago
|
src: "{{ role_path }}/files/yum.repos.d/{{ item }}"
|
||
|
dest: "/etc/yum.repos.d/docker-ce.repo"
|
||
|
owner: "root"
|
||
|
group: "root"
|
||
|
mode: 0644
|
||
|
with_items:
|
||
|
- docker-ce-fedora.repo
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
3 years ago
|
|
||
|
- name: Ensure Docker's RPM key is trusted
|
||
2 years ago
|
ansible.builtin.rpm_key:
|
||
3 years ago
|
state: present
|
||
|
key: https://download.docker.com/linux/fedora/gpg
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
3 years ago
|
|
||
|
- name: Ensure yum packages are installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
3 years ago
|
name:
|
||
|
- "{{ matrix_ntpd_package }}"
|
||
2 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
|
|
||
|
- name: Ensure Docker is installed
|
||
2 years ago
|
ansible.builtin.yum:
|
||
3 years ago
|
name:
|
||
|
- "{{ matrix_docker_package_name }}"
|
||
|
- python3-pip
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|
||
3 years ago
|
|
||
|
- name: Ensure Docker-Py is installed
|
||
2 years ago
|
ansible.builtin.pip:
|
||
3 years ago
|
name: docker-py
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|