Add docker-swarm-cluster/roles/common/tasks/main.yml
This commit is contained in:
parent
499b363cb2
commit
51fd7596eb
1 changed files with 17 additions and 0 deletions
17
docker-swarm-cluster/roles/common/tasks/main.yml
Normal file
17
docker-swarm-cluster/roles/common/tasks/main.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Update apt cache
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Install necessary packages for Docker installation
|
||||
become: yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg-agent
|
||||
- software-properties-common
|
||||
Loading…
Reference in a new issue