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.
42 lines
1.3 KiB
42 lines
1.3 KiB
5 years ago
|
---
|
||
|
|
||
|
- name: Ensure APT usage dependencies are installed
|
||
2 years ago
|
ansible.builtin.apt:
|
||
5 years ago
|
name:
|
||
|
- apt-transport-https
|
||
|
- ca-certificates
|
||
4 years ago
|
- gnupg
|
||
5 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
5 years ago
|
|
||
|
- name: Ensure Docker's APT key is trusted
|
||
2 years ago
|
ansible.builtin.apt_key:
|
||
5 years ago
|
url: https://download.docker.com/linux/raspbian/gpg
|
||
|
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
||
|
state: present
|
||
|
register: add_repository_key
|
||
|
ignore_errors: true
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
5 years ago
|
|
||
|
- name: Ensure Docker repository is enabled
|
||
2 years ago
|
ansible.builtin.apt_repository:
|
||
4 years ago
|
repo: "deb [arch={{ matrix_debian_arch }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable"
|
||
5 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||
5 years ago
|
|
||
|
- name: Ensure APT packages are installed
|
||
2 years ago
|
ansible.builtin.apt:
|
||
5 years ago
|
name:
|
||
5 years ago
|
- "{{ matrix_ntpd_package }}"
|
||
2 years ago
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
5 years ago
|
|
||
|
- name: Ensure Docker is installed
|
||
2 years ago
|
ansible.builtin.apt:
|
||
5 years ago
|
name:
|
||
|
- "{{ matrix_docker_package_name }}"
|
||
2 years ago
|
- "python{{ '3' if ansible_python.version.major == 3 else '' }}-docker"
|
||
2 years ago
|
state: present
|
||
2 years ago
|
when: matrix_docker_installation_enabled | bool
|