From 8b0bd363a8c030121b4d24dd6447410a6a5c07f1 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 20 Oct 2019 15:25:09 +0100 Subject: [PATCH] Create a common Docker task. --- .../roles/common_server/tasks/docker.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .ansible/roles/common_server/tasks/docker.yaml 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