diff --git a/docker-swarm-cluster/roles/common/tasks/main.yml b/docker-swarm-cluster/roles/common/tasks/main.yml new file mode 100644 index 0000000..4a5e473 --- /dev/null +++ b/docker-swarm-cluster/roles/common/tasks/main.yml @@ -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 \ No newline at end of file