hetzner_rescue_installimage

Hetzner Rescue Installimage

GitHub license Ansible Galaxy

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

License

Apache 2.

Author Information

This project is maintained by:

Tecnativa logo

Tecnativa is an IT consulting company specialized in Odoo and provides Odoo development, installation, maintenance and hosting services.

About

Autoinstall server with Hetzner rescue system

Install
ansible-galaxy install Tecnativa/ansible-role-hetzner-rescue-installimage
GitHub repository
License
apache-2.0
Downloads
18470
Owner
Odoo Experts