From 2990cb7bf8e2f13fe3f3b95915f5815dc73686c9 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 30 Jan 2021 14:34:28 +0100 Subject: [PATCH] Added docker --- arch.yaml | 1 + roles/docker/tasks/main.yaml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 roles/docker/tasks/main.yaml diff --git a/arch.yaml b/arch.yaml index c7eac46..3295de1 100644 --- a/arch.yaml +++ b/arch.yaml @@ -19,6 +19,7 @@ - vimwiki - tools - acpid + - docker - wayland tasks: diff --git a/roles/docker/tasks/main.yaml b/roles/docker/tasks/main.yaml new file mode 100644 index 0000000..6bf34a4 --- /dev/null +++ b/roles/docker/tasks/main.yaml @@ -0,0 +1,20 @@ +--- +- name: install packages + package: + name: + - docker + - docker-compose + state: latest + +- name: activate daemon + systemd: + name: docker + enabled: yes + state: started + +- name: add user to docker group + user: + name: "{{ account.name }}" + groups: docker + append: yes +