Paul Brinkmeier ef9d3d0beb
All checks were successful
continuous-integration/drone/push Build is passing
Fix ansible-lint failures
2022-09-15 13:48:59 +02:00

42 lines
1.1 KiB
YAML

---
- name: Install Docker installation prerequisites
become: true
ansible.builtin.apt:
update_cache: true
# Don't upgrade, only make sure that the packages are present
# state: latest
name:
- ca-certificates
- curl
- gnupg
- lsb-release
- name: Add Docker GPG key # noqa command-instead-of-module risky-shell-pipe
become: true
ansible.builtin.shell: "curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg"
args:
creates: /usr/share/keyrings/docker-archive-keyring.gpg
- name: Retrieve dpkg architecture # noqa command-instead-of-shell
ansible.builtin.shell: dpkg --print-architecture
register: dpkg_architecture
changed_when: false
- name: Add Docker apt repository
become: true
ansible.builtin.template:
src: docker.list.j2
dest: /etc/apt/sources.list.d/docker.list
mode: 0644
- name: Install Docker
become: true
ansible.builtin.apt:
update_cache: true
# Don't upgrade, only make sure that the packages are present
# state: latest
name:
- docker-ce
- docker-ce-cli
- containerd.io