Merge branch 'main' into 15-create-roles-nc-oo-bw

115-change-docker-root
Ernst Thaelmann 2021-02-28 00:07:35 +01:00
commit cb7624bce1
1 changed files with 45 additions and 0 deletions

45
tasks/main.yml Normal file
View File

@ -0,0 +1,45 @@
- 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