Rework pterodactyl-panel
This commit is contained in:
parent
b8af028ce6
commit
e936133338
4 changed files with 42 additions and 24 deletions
|
@ -1,24 +1,11 @@
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install pterodactyl panel
|
- name: Install pterodactyl-panel
|
||||||
package:
|
package:
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
- pterodactyl-panel-compose
|
- pterodactyl-panel
|
||||||
- name: Enable pterodactyl-panel service
|
- name: Enable pterodactyl-queue service
|
||||||
service:
|
service:
|
||||||
name: pterodactyl-panel-compose
|
name: pterodactyl-queue
|
||||||
enabled: true
|
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
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install pterodactyl wings
|
- name: Install pterodactyl-wings
|
||||||
package:
|
package:
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
- pterodactyl-wings
|
- pterodactyl-wings
|
||||||
- name: Enable pterodactyl-wings service
|
- name: Enable pterodactyl-wings service
|
||||||
service:
|
service:
|
||||||
name: pterodactyl-wings
|
name: pterodactyl-wings
|
||||||
|
|
30
system/cron.ansible.yml
Normal file
30
system/cron.ansible.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Install cronie
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
name:
|
||||||
|
- cronie
|
||||||
|
- cronie-openrc
|
||||||
|
- name: Cronie minutely directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /etc/periodic/minutely
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
- name: Crontab minutely cronjob
|
||||||
|
cron:
|
||||||
|
state: present
|
||||||
|
user: root
|
||||||
|
name: Minutely cronjob
|
||||||
|
job: run-parts /etc/periodic/minutely
|
||||||
|
minute: '*'
|
||||||
|
hour: '*'
|
||||||
|
day: '*'
|
||||||
|
weekday: '*'
|
||||||
|
month: '*'
|
||||||
|
- name: Enable cronie service
|
||||||
|
service:
|
||||||
|
name: cronie
|
||||||
|
state: started
|
||||||
|
enabled: true
|
|
@ -5,3 +5,4 @@
|
||||||
- import_playbook: shell.ansible.yml
|
- import_playbook: shell.ansible.yml
|
||||||
- import_playbook: ansible.ansible.yml
|
- import_playbook: ansible.ansible.yml
|
||||||
- import_playbook: repositories.ansible.yml
|
- import_playbook: repositories.ansible.yml
|
||||||
|
- import_playbook: cron.ansible.yml
|
||||||
|
|
Loading…
Reference in a new issue