about summary refs log tree commit diff
path: root/ansible/roles/docker/tasks
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-18 21:32:36 +0200
committermakefunstuff <[email protected]>2024-07-18 21:32:36 +0200
commit806607a58675a3f28694602b16762f9cdd5dac60 (patch)
treea0fc3b03159e608e115de68785192d2c54480d28 /ansible/roles/docker/tasks
parent07822ea3f2239cf9cd3335ad2d7fb0aab7a3e1dc (diff)
downloadk3s-lab-806607a58675a3f28694602b16762f9cdd5dac60.tar.gz
ansible
Diffstat (limited to '')
-rw-r--r--ansible/roles/docker/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml
new file mode 100644
index 0000000..38ad4dd
--- /dev/null
+++ b/ansible/roles/docker/tasks/main.yml
@@ -0,0 +1,22 @@
+---
+- name: Add Docker GPG key
+  apt_key:
+    url: https://download.docker.com/linux/ubuntu/gpg
+    state: present
+
+- name: Add Docker repository
+  apt_repository:
+    repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
+    state: present
+
+- name: Install Docker
+  apt:
+    name: docker-ce
+    state: present
+    update_cache: yes
+
+- name: Start and enable Docker service
+  systemd:
+    name: docker
+    state: started
+    enabled: true