community.hrobot.boot module – Set boot configuration
Note
This module is part of the community.hrobot collection (version 1.8.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.hrobot
.
To use it in a playbook, specify: community.hrobot.boot
.
New in community.hrobot 1.2.0
Synopsis
Set the boot configuration for a dedicated server.
Parameters
Parameter |
Comments |
---|---|
The password for the Robot webservice user. |
|
The username for the Robot webservice user. |
|
If this option is provided, a cPanel installation will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The architecture to use for the install. Not all architectures are available for all distributions. Defaults to Choices:
|
|
The distribution to install. |
|
The hostname. |
|
The language to use for the operating system. |
|
If this option is provided, a Linux system install will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The architecture to use for the install. Not all architectures are available for all distributions. Defaults to Choices:
|
|
One or more SSH key fingerprints to equip the rescue system with. Only fingerprints for SSH keys deposited in the Robot API can be used. You can use the community.hrobot.ssh_key_info module to query the SSH keys you can use, and the community.hrobot.ssh_key module to add or update SSH keys. |
|
The distribution to install. |
|
The language to use for the operating system. |
|
If this option is provided, a Plesk installation will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The architecture to use for the install. Not all architectures are available for all distributions. Defaults to Choices:
|
|
The distribution to install. |
|
The hostname. |
|
The language to use for the operating system. |
|
If this option is provided, a VNC installation will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The architecture to use for the install. Not all architectures are available for all distributions. Defaults to Choices:
|
|
The distribution to install. |
|
The language to use for the operating system. |
|
If this option is provided, a Windows installation will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The language to use for Windows. |
|
If this option is provided, all special boot configurations are removed and the installed operating system will be booted up next (assuming it is bootable). Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. Choices:
|
|
If this option is provided, the rescue system will be activated for the next boot. Precisely one of regular_boot, rescue, install_linux, install_vnc, install_windows, install_plesk, and install_cpanel must be provided. |
|
The architecture to use for the rescue system. Not all architectures are available for all operating systems. Defaults to Choices:
|
|
One or more SSH key fingerprints to equip the rescue system with. Only fingerprints for SSH keys deposited in the Robot API can be used. You can use the community.hrobot.ssh_key_info module to query the SSH keys you can use, and the community.hrobot.ssh_key module to add or update SSH keys. |
|
The operating system to use for the rescue system. Possible choices can change over time. Currently, |
|
The server number of the server whose boot configuration to adjust. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: community.hrobot.robot added in community.hrobot 1.6.0 |
Use |
|
Support: full |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
See Also
See also
- community.hrobot.ssh_key
Add, remove or update SSH key
- community.hrobot.ssh_key_info
Query information on SSH keys
Examples
- name: Disable all special boot configurations
community.hrobot.boot:
hetzner_user: foo
hetzner_password: bar
regular_boot: true
- name: Enable a rescue system (64bit Linux) for the next boot
community.hrobot.boot:
hetzner_user: foo
hetzner_password: bar
rescue:
os: linux
- name: Enable a Linux install for the next boot
community.hrobot.boot:
hetzner_user: foo
hetzner_password: bar
install_linux:
dist: CentOS 5.5 minimal
lang: en
authorized_keys:
- 56:29:99:a4:5d:ed:ac:95:c1:f5:88:82:90:5d:dd:10
- 15:28:b0:03:95:f0:77:b3:10:56:15:6b:77:22:a5:bb
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Describes the active boot configuration. Returned: success Can only return:
|
|
The root password for the active boot configuration, if available. For non-rescue boot configurations, it is avised to change the root password as soon as possible. Returned: success and if a boot configuration other than |
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication