diff --git a/.ansible/roles/common_server/tasks/docker.yaml b/.ansible/roles/common_server/tasks/docker.yaml new file mode 100644 index 0000000..08a74db --- /dev/null +++ b/.ansible/roles/common_server/tasks/docker.yaml @@ -0,0 +1,22 @@ +- name: "Docker" + tags: + - docker + block: + - name: "Docker: packages" + tags: + - install + package: + name: "{{ item }}" + state: latest + loop: + - "docker.io" + - "docker-compose" + become: yes + + - name: "Docker: directory" + tags: + - install + file: + state: directory + path: "/srv/app/docker" + become: yes