2bfef8fe8bc629bdbf04ac4cb1c2b40f9be193d3
cit Ansible Infrastructure
Adding a new Hetzner VM
- Add the VM to
inventories/hetzner/hosts.yaml
Set the correctansible_hostandansible_user, add it to the correct Debian groups, but aside from that there's no further configuration needed for now. - Initialize the VM using the following command (replace
HOST_NAME_HEREwith the name in the inventory):ansible-playbook -e ansible_user=root -i inventories/hetzner -l HOST_NAME_HERE playbooks/init_hetzer_vm.yaml - 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.). - Run
ansible-playbook -i inventories/hetzner playbooks/docker-compose.yml
Open Source Software Used
Source code was taken from the CCCHH/ansible-infra repo, where it was licensed under the MIT license.
A copy of the license can be found under licenses/ccchh-ansible_mit_license.
Description
Languages
Shell
100%