Skip to content

Ansible Playbooks used for deploying the Open Game Backend.

License

Notifications You must be signed in to change notification settings

open-game-backend/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Open Game Backend Ansible Playbook

Ansible playbook used for deploying the Open Game Backend.

Setup

  1. Install Ansible on your control node. We can confirm that running Ansible from Windows Subsystem for Linux works perfectly fine.
  2. Copy hosts.example to hosts and edit the hosts inventory file to include the names or URLs of the servers you want to deploy.
  3. Create a GitHub personal access token with the read:packages scope for downloading the Open Game Backend packages.
  4. Copy group_vars/vault.example to group_vars/vault and edit the group_vars/vault file setting all necessary variables. Don't forget to encrypt your vault.
  5. Open Game Backend uses third-party rules in its playbook. You might need to add the following Ansible repositories:
    1. ansible-galaxy collection install community.general
    2. ansible-galaxy install nginxinc.nginx (see https://github.com/nginxinc/ansible-role-nginx#installation)
    3. ansible-galaxy install elastic.elasticsearch,7.9.3 (see https://github.com/elastic/ansible-elasticsearch#usage)
    4. ansible-galaxy install elastic.beats,7.9.3 (see https://github.com/elastic/ansible-beats#usage)
    5. ansible-galaxy install fedelemantuano.kibana(see https://github.com/fedelemantuano/ansible-kibana#usage)

Hosts

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

Deployment

To deploy the Open Game Backend, run the playbook like this:

ansible-playbook -i hosts site.yml --ask-become-pass --ask-vault-pass --verbose

About

Ansible Playbooks used for deploying the Open Game Backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages