Autoinstall server with Hetzner rescue system
Install your new Docker servers automatically in minutes
See default values and explanations in defaults/main.yml
.
This playbook should be usually separate from your main site.yml
playbook,
as it would be used only to install new servers, and you don’t want idempotence
nor running it anywhere else.
Let’s call it hetzner-install.yml
:
- hosts: "{{ target }}"
roles:
- role: tecnativa.hetzner_rescue_installimage
vars:
# Disable SSH checking, it's mostly useless in this role's use case;
# not done automatically because of the obvious insecurity
ansible_ssh_extra_args:
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
# This is just an example, but declare any variables here
swraid_level: 1
Now run it:
ansible-playbook netzner-install.yml -e target="$NEW_SERVER"
Apache 2.
This project is maintained by:
Tecnativa is an IT consulting company specialized in Odoo and provides Odoo
development, installation, maintenance and hosting services.