Ansible Playbook to deploy minecraft server with plugins.
Create pd_settings.yml
under var/game_type
folder and add these vars into it:
pd_host
: the domain name of your pterodactyl panelpd_app_token
: the ADMIN API token of your pterodactyl panel
mnt_dir
is the directory where the plugins will be or has been installed.game_type
is the type of list of plugins variables.
ansible-playbook playbook-plugin.yml -e "game_type=<what_vars_folder_name> mnt_dir=<where_plugins_saved> do_update=yes"
server_external_id
is the "External Identifier" in your pterodactyl server detail. You can find it in theadmin panel
->server
->detail
->Base Information
.
ansible-playbook playbook-plugin.yml -e "game_type=<what_vars_folder_name> mnt_dir=<where_plugins_saved> server_external_id=<> do_update=yes do_symlink=yes"