Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates

This commit is contained in:
boris committed 2026-07-08 10:29:51 +01:00
commit 53695f4fff
411 files changed
+7817

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
---
- name: Create Pterodactyl directory
ansible.builtin.file:
path: "{{ pterodactyl_dir }}"
state: directory
owner: root
group: root
mode: "0755"
tags: [pterodactyl]
- name: Render Pterodactyl environment
ansible.builtin.template:
src: env.j2
dest: "{{ pterodactyl_dir }}/.env"
owner: root
group: root
mode: "0600"
no_log: true
tags: [pterodactyl, config]
- name: Ensure Pterodactyl proxy network exists
community.docker.docker_network:
name: "{{ pterodactyl_traefik_network }}"
state: present
when: pterodactyl_routing_mode == "traefik"
tags: [pterodactyl, docker]
- name: Render Pterodactyl Compose file
ansible.builtin.template:
src: compose.yaml.j2
dest: "{{ pterodactyl_dir }}/compose.yaml"
owner: root
group: root
mode: "0644"
notify: restart pterodactyl
tags: [pterodactyl, compose]
- name: Allow Pterodactyl ports
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: tcp
loop: "{{ pterodactyl_tcp_ports }}"
when: pterodactyl_routing_mode == "host"
tags: [pterodactyl, firewall]
- name: Start Pterodactyl
community.docker.docker_compose_v2:
project_src: "{{ pterodactyl_dir }}"
state: present
tags: [pterodactyl, compose]