Skip to content

isgphys/ansible-BaNG

Repository files navigation

ansible-bang

Ansible playbooks to install and configure BaNG.

Currently supported operating systems: Ubuntu (Bionic, Xenial)

Groups

  • bang: BaNG backup servers
  • bangweb: BaNG web frontend
  • bangdb: BaNG database server

Configuration

Adapt the following to your needs:

  • hosts
  • group_vars/all.yml
  • group_vars/bangweb.yml

Vagrant

You can install BaNG in a virtual machine using Vagrant and VirtualBox with a single command:

vagrant up

The ansible playbooks can be re-run anytime using:

vagrant provision --provision-with ansible

You can access the BaNG web front-end by opening http://192.168.13.100 in your browser. The default credentials are admin and supersecret.

Ansible

Use the dry-run mode to see what changes would be made on the machines defined in the hosts file.

ansible-playbook -C -D playbook-BaNG.yml

The changes can be pushed to production with:

ansible-playbook playbook-BaNG.yml

Push the changes only to one specific host:

ansible-playbook playbook-BaNG.yml --limit hostname