git clone --recurse-submodules git@github.com:Tildes-MC/minecraft-server.gitThis has only been tested with deploying to a Debian 13 host.
- Install ansible
- Configure
ansible/group_vars/all/vars.ymlandansible/group_vars/all/vault.yml - Encrypt the vault with
ansible-vault encrypt ansible/group_vars/all/vault.yml - Install collections:
ansible-galaxy collection install -r ansible/requirements.yml - Setup:
cd ansible && ansible-playbook playbooks/setup.yml --ask-vault-pass
cd ansible
ansible-playbook playbooks/deploy-web.yml --ask-vault-passThe Minecraft server is set to automatically restart daily. Most changes can wait until then so by default deploying Minecraft will not restart the server.
You can optionally pass a restart flag to force an immediate restart:
cd ansible
ansible-playbook playbooks/deploy-minecraft.yml -e restart=true --ask-vault-pass