Ansible playbook used for deploying the Open Game Backend.
- Install Ansible on your control node. We can confirm that running Ansible from Windows Subsystem for Linux works perfectly fine.
- Copy
hosts.exampletohostsand edit thehostsinventory file to include the names or URLs of the servers you want to deploy. - Create a GitHub personal access token with the
read:packagesscope for downloading the Open Game Backend packages. - Copy
group_vars/vault.exampletogroup_vars/vaultand edit thegroup_vars/vaultfile setting all necessary variables. Don't forget to encrypt your vault. - Open Game Backend uses third-party rules in its playbook. You might need to add the following Ansible repositories:
ansible-galaxy collection install community.generalansible-galaxy install nginxinc.nginx(see https://github.com/nginxinc/ansible-role-nginx#installation)ansible-galaxy install elastic.elasticsearch,7.9.3(see https://github.com/elastic/ansible-elasticsearch#usage)ansible-galaxy install elastic.beats,7.9.3(see https://github.com/elastic/ansible-beats#usage)ansible-galaxy install fedelemantuano.kibana(see https://github.com/fedelemantuano/ansible-kibana#usage)
Example hosts file for Amazon AWS:
[registry]
ec2-11-222-33-44.eu-central-1.compute.amazonaws.com ansible_connection=ssh ansible_user=ec2-user
To deploy the Open Game Backend, run the playbook like this:
ansible-playbook -i hosts site.yml --ask-become-pass --ask-vault-pass --verbose