aboutsummaryrefslogtreecommitdiff
path: root/roles/pterodactyl_wings/tasks
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-02-13 22:55:55 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-02-13 22:55:55 +0100
commit4480dcfb5a49d1e1db7341a7c1d7498b0a8b6b63 (patch)
tree622abc7b5ba6ad600812be216e65ab4792b45e13 /roles/pterodactyl_wings/tasks
parent6ad1f61d6ad11917837b86f60d8f08ce5b3eb3f6 (diff)
downloadansible_collection-4480dcfb5a49d1e1db7341a7c1d7498b0a8b6b63.tar.gz
wings: add docker repo
Diffstat (limited to 'roles/pterodactyl_wings/tasks')
-rw-r--r--roles/pterodactyl_wings/tasks/main.yml34
1 files changed, 29 insertions, 5 deletions
diff --git a/roles/pterodactyl_wings/tasks/main.yml b/roles/pterodactyl_wings/tasks/main.yml
index 4e7d654..8641971 100644
--- a/roles/pterodactyl_wings/tasks/main.yml
+++ b/roles/pterodactyl_wings/tasks/main.yml
@@ -1,4 +1,33 @@
---
+- name: Install GnuPG
+ apt:
+ name: gnupg2
+ become: yes
+
+- name: Docker APT Key
+ apt_key:
+ url: 'https://download.docker.com/linux/debian/gpg'
+ state: present
+ become: yes
+
+- name: Install Docker APT Repository
+ template:
+ src: docker.list.j2
+ dest: /etc/apt/sources.list.d/docker.list
+ become: yes
+ register: install_repo
+
+- name: Update cache
+ apt:
+ update_cache: yes
+ become: yes
+ when: install_repo.changed
+
+- name: Install packages
+ apt:
+ name: docker-ce docker-ce-cli containerd.io
+ become: yes
+
- name: Create dirs
file:
state: directory
@@ -11,11 +40,6 @@
notify:
- Handle systemd
-- name: Install packages
- apt:
- name: docker.io
- become: yes
-
- name: Enable docker
systemd:
name: docker