hetzner_rescue_installimage
Hetzner Rescue Installimage
Install your new Docker servers automatically in minutes
Requirements
- This only works in Hetzner servers.
- The Hetzner server must be booted in rescue mode. This is the default for new servers as of today.
Warnings
- Running this role will wipe all disks in the server.
Role Variables
See default values and explanations in defaults/main.yml
.
Example Playbook
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"
Support
- :octocat: GH project.
- Install from Ansible Galaxy.
- Hetzner Installimage project.
- Hetzner rescue system instructions.
License
Apache 2.
Author Information
This project is maintained by:
Tecnativa is an IT consulting company specialized in Odoo and provides Odoo development, installation, maintenance and hosting services.