项目作者: Tecnativa

项目描述 :
Autoinstall server with Hetzner rescue system
高级语言:
项目地址: git://github.com/Tecnativa/ansible-role-hetzner-rescue-installimage.git
创建时间: 2018-09-04T12:11:16Z
项目社区:https://github.com/Tecnativa/ansible-role-hetzner-rescue-installimage

开源协议:Apache License 2.0

下载


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:

  1. - hosts: "{{ target }}"
  2. roles:
  3. - role: tecnativa.hetzner_rescue_installimage
  4. vars:
  5. # Disable SSH checking, it's mostly useless in this role's use case;
  6. # not done automatically because of the obvious insecurity
  7. ansible_ssh_extra_args:
  8. -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
  9. # This is just an example, but declare any variables here
  10. swraid_level: 1

Now run it:

  1. 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.