Giter Club home page Giter Club logo

ansible-role-hetzner-rescue-installimage's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.