19 lines
1.0 KiB
Markdown
19 lines
1.0 KiB
Markdown
# cit Ansible Infrastructure
|
|
|
|
## Adding a new Hetzner VM
|
|
|
|
1. Add the VM to `inventories/hetzner/hosts.yaml`
|
|
Set the correct `ansible_host` and `ansible_user`, add it to the correct Debian groups, but aside from that there's no further configuration needed for now.
|
|
2. Initialize the VM using the following command (replace `HOST_NAME_HERE` with the name in the inventory):
|
|
```bash
|
|
ansible-playbook -e ansible_user=root -i inventories/hetzner -l HOST_NAME_HERE playbooks/init_hetzer_vm.yaml
|
|
```
|
|
3. Add the VM to the desired groups and set the desired variables.
|
|
Do all the work you need to do (like creating new Ansible roles etc.).
|
|
4. Run `ansible-playbook -i inventories/hetzner playbooks/docker-compose.yml`
|
|
|
|
## Open Source Software Used
|
|
|
|
Source code was taken from the [CCCHH/ansible-infra repo](https://git.hamburg.ccc.de/CCCHH/ansible-infra), where it was licensed under the MIT license.
|
|
A copy of the license can be found under [`licenses/ccchh-ansible_mit_license`](licenses/ccchh-ansible_mit_license).
|