46 lines
902 B
YAML
46 lines
902 B
YAML
- name: Ensure packages are installed
|
|
become: yes
|
|
apt:
|
|
name:
|
|
- python3-pip
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- curl
|
|
- gnupg-agent
|
|
- software-properties-common
|
|
state: present
|
|
|
|
- name: Trust dockers GPG key
|
|
become: yes
|
|
apt_key:
|
|
url: https://download.docker.com/linux/debian/gpg
|
|
state: present
|
|
|
|
- name: Ensure docker repository is available
|
|
become: yes
|
|
apt_repository:
|
|
repo: deb https://download.docker.com/linux/debian buster stable
|
|
state: present
|
|
# notify: Update apt cache
|
|
|
|
#- name: Flush handlers
|
|
# meta: flush_handlers
|
|
|
|
- name: Ensure packages are installed
|
|
become: yes
|
|
apt:
|
|
name:
|
|
- docker-ce
|
|
- docker-ce-cli
|
|
- containerd.io
|
|
- docker-compose
|
|
update_cache: yes
|
|
state: present
|
|
|
|
- name: Install docker python module
|
|
become: yes
|
|
pip:
|
|
executable: pip3
|
|
name:
|
|
- docker
|