From 254247032df46262750bd204d3d7afeb44335c3d Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 30 Oct 2022 15:53:17 +0100 Subject: [PATCH] docker role --- roles/docker/tasks/alpine.yml | 14 ++++++++++++++ roles/docker/tasks/main.yml | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 roles/docker/tasks/alpine.yml create mode 100644 roles/docker/tasks/main.yml diff --git a/roles/docker/tasks/alpine.yml b/roles/docker/tasks/alpine.yml new file mode 100644 index 0000000..8351a0d --- /dev/null +++ b/roles/docker/tasks/alpine.yml @@ -0,0 +1,14 @@ +--- + +- name: install docker with apk + apk: + name: + - docker + - docker-compose + +- name: start and enable docker + service: + name: docker + state: started + enabled: true + runlevel: boot diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml new file mode 100644 index 0000000..39afa26 --- /dev/null +++ b/roles/docker/tasks/main.yml @@ -0,0 +1,5 @@ +--- + +- name: 'alpine-specific docker things' + include_tasks: alpine.yml + when: ansible_distribution == "Alpine"