Merge branch 'main' into 15-create-roles-nc-oo-bw
This commit is contained in:
commit
cb7624bce1
1 changed files with 45 additions and 0 deletions
45
tasks/main.yml
Normal file
45
tasks/main.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue