From 3a5d9bc77823c879e5f126a7cf7024fd84e85460 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 16 Nov 2024 12:07:54 +0100 Subject: [PATCH] Add rootfull docker for gaming-host --- docker/init.ansible.yml | 2 ++ docker/pkg.ansible.yml | 9 +++++++++ docker/service.ansible.yml | 6 ++++++ pterodactyl/panel.ansible.yml | 12 ------------ top.ansible.yml | 7 +++++-- 5 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 docker/init.ansible.yml create mode 100644 docker/pkg.ansible.yml create mode 100644 docker/service.ansible.yml diff --git a/docker/init.ansible.yml b/docker/init.ansible.yml new file mode 100644 index 0000000..1a26d84 --- /dev/null +++ b/docker/init.ansible.yml @@ -0,0 +1,2 @@ +- import_playbook: pkg.ansible.yml +- import_playbook: service.ansible.yml diff --git a/docker/pkg.ansible.yml b/docker/pkg.ansible.yml new file mode 100644 index 0000000..437562e --- /dev/null +++ b/docker/pkg.ansible.yml @@ -0,0 +1,9 @@ +- hosts: localhost + tasks: + - name: Install docker package + package: + state: present + name: + - docker + - docker-cli-compose + - docker-openrc diff --git a/docker/service.ansible.yml b/docker/service.ansible.yml new file mode 100644 index 0000000..eaed1ed --- /dev/null +++ b/docker/service.ansible.yml @@ -0,0 +1,6 @@ +- hosts: localhost + tasks: + - name: Enable docker service + service: + name: docker + enabled: true diff --git a/pterodactyl/panel.ansible.yml b/pterodactyl/panel.ansible.yml index a752afb..bd61beb 100644 --- a/pterodactyl/panel.ansible.yml +++ b/pterodactyl/panel.ansible.yml @@ -9,16 +9,4 @@ service: name: pterodactyl-panel-compose enabled: true - - name: pterodactyl subuid - lineinfile: - state: present - path: /etc/subuid - insertafter: EOF - line: pterodactyl:200000:65536 - - name: pterodactyl subgid - lineinfile: - state: present - path: /etc/subgid - insertafter: EOF - line: pterodactyl:200000:65536 diff --git a/top.ansible.yml b/top.ansible.yml index 39392b1..a4fe58a 100644 --- a/top.ansible.yml +++ b/top.ansible.yml @@ -11,9 +11,12 @@ - name: Setup HAProxy import_playbook: haproxy/init.ansible.yml when: installation_type == 'proxy' -- name: Setup Podman +- name: Setup Podman Rootless import_playbook: podman/init.ansible.yml - when: installation_type == 'gaming' or installation_type == 'build' + when: installation_type == 'build' +- name: Setup Docker Rootful + import_playbook: docker/init.ansible.yml + when: installation_type == 'gaming' - name: Setup Pterodactyl import_playbook: pterodactyl/init.ansible.yml when: installation_type == 'gaming'