Remove pterodactyl leftovers
This commit is contained in:
parent
7cdcf8409f
commit
d9adf73946
7 changed files with 4 additions and 61 deletions
|
@ -2,5 +2,3 @@
|
||||||
- import_playbook: directory.ansible.yml
|
- import_playbook: directory.ansible.yml
|
||||||
- import_playbook: service.ansible.yml
|
- import_playbook: service.ansible.yml
|
||||||
- import_playbook: secure.ansible.yml
|
- import_playbook: secure.ansible.yml
|
||||||
- import_playbook: modes/gaming.ansible.yml
|
|
||||||
when: installation_type == 'gaming'
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[mysqld]
|
|
||||||
bind-address={{IPv4}}
|
|
|
@ -1,18 +0,0 @@
|
||||||
- hosts: localhost
|
|
||||||
tasks:
|
|
||||||
- name: Set bind-address
|
|
||||||
template:
|
|
||||||
src: files/pterodactyl-mariadb-server.cnf.j2
|
|
||||||
dest: /etc/my.cnf.d/pterodactyl-mariadb-server.cnf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
vars:
|
|
||||||
IPv4: "{{ansible_default_ipv4.address}}"
|
|
||||||
- name: Create pterodactyl user
|
|
||||||
mysql_user:
|
|
||||||
name: pterodactyl
|
|
||||||
password: "{{mysql_root_password}}"
|
|
||||||
host: "{{ansible_default_ipv4.address}}"
|
|
||||||
priv: '*.*:ALL,GRANT'
|
|
||||||
state: present
|
|
|
@ -1,6 +1,4 @@
|
||||||
- import_playbook: firewall.ansible.yml
|
- import_playbook: firewall.ansible.yml
|
||||||
- import_playbook: modes/gaming.ansible.yml
|
|
||||||
when: installation_type == 'gaming'
|
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -10,7 +8,7 @@
|
||||||
dest: /etc/network/interfaces
|
dest: /etc/network/interfaces
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
- name: Enable networking service
|
- name: Enable networking service
|
||||||
service:
|
service:
|
||||||
name: networking
|
name: networking
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
## This file is managed by Ansible
|
|
||||||
#!/usr/sbin/nft
|
|
||||||
|
|
||||||
table inet filter {
|
|
||||||
chain input {
|
|
||||||
iifname eth0 tcp dport 8080 accept \
|
|
||||||
comment "Accept local connection to wings"
|
|
||||||
iifname eth0 tcp dport 3306 accept \
|
|
||||||
comment "Accept local conntection to mariadb"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
table ip nat {
|
|
||||||
chain DOCKER {}
|
|
||||||
}
|
|
||||||
|
|
||||||
table ip filter {
|
|
||||||
chain DOCKER {}
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
- hosts: localhost
|
|
||||||
tasks:
|
|
||||||
- name: Install iptables for docker compatibility
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- iptables
|
|
||||||
state: present
|
|
||||||
- name: Deploy pterodactyl nft rules
|
|
||||||
template:
|
|
||||||
src: files/firewall_pterodactyl-rules.j2
|
|
||||||
dest: /etc/nftables.d/pterodactyl.nft
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0600'
|
|
|
@ -10,14 +10,14 @@
|
||||||
import_playbook: apps/init.ansible.yml
|
import_playbook: apps/init.ansible.yml
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
import_playbook: openssh/init.ansible.yml
|
import_playbook: openssh/init.ansible.yml
|
||||||
- name: Setup MySQL
|
#- name: Setup MySQL
|
||||||
import_playbook: mysql/init.ansible.yml
|
# import_playbook: mysql/init.ansible.yml
|
||||||
- name: Setup HAProxy
|
- name: Setup HAProxy
|
||||||
import_playbook: haproxy/init.ansible.yml
|
import_playbook: haproxy/init.ansible.yml
|
||||||
when: installation_type == 'proxy'
|
when: installation_type == 'proxy'
|
||||||
- name: Setup Podman Rootless
|
- name: Setup Podman Rootless
|
||||||
import_playbook: podman/init.ansible.yml
|
import_playbook: podman/init.ansible.yml
|
||||||
when: installation_type == 'build' or installation_type == 'gaming'
|
when: installation_type == 'build' or installation_type == 'gaming' or installation_type == 'container'
|
||||||
- name: Setup PMS-CLI
|
- name: Setup PMS-CLI
|
||||||
import_playbook: apps/pms-cli/init.ansible.yml
|
import_playbook: apps/pms-cli/init.ansible.yml
|
||||||
when: installation_type == 'gaming'
|
when: installation_type == 'gaming'
|
||||||
|
|
Loading…
Reference in a new issue