docker
This commit is contained in:
parent
b6b0f1d42e
commit
9ba7e3d816
1 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- name: Update web servers
|
||||
hosts: all
|
||||
remote_user: root
|
||||
tasks:
|
||||
- name: Install a list of packages
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg
|
||||
- name: Add an Apt signing key, uses whichever key is at the URL
|
||||
ansible.builtin.apt_key:
|
||||
url: https://download.docker.com/linux/debian/gpg
|
||||
state: present
|
||||
|
||||
- name: Add docker repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
|
||||
- name: Install a list of packages
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
- docker-compose
|
Loading…
Reference in a new issue