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