Add rootfull docker for gaming-host

This commit is contained in:
LinuxSquare 2024-11-16 12:07:54 +01:00
parent 2e24dfa57d
commit 3a5d9bc778
5 changed files with 22 additions and 14 deletions

2
docker/init.ansible.yml Normal file
View file

@ -0,0 +1,2 @@
- import_playbook: pkg.ansible.yml
- import_playbook: service.ansible.yml

9
docker/pkg.ansible.yml Normal file
View file

@ -0,0 +1,9 @@
- hosts: localhost
tasks:
- name: Install docker package
package:
state: present
name:
- docker
- docker-cli-compose
- docker-openrc

View file

@ -0,0 +1,6 @@
- hosts: localhost
tasks:
- name: Enable docker service
service:
name: docker
enabled: true

View file

@ -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

View file

@ -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'