community.general.one_host module – Manages OpenNebula Hosts
Note
This module is part of the community.general collection (version 10.1.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.general
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.one_host
.
Synopsis
Manages OpenNebula Hosts
Requirements
The below requirements are needed on the host that executes this module.
pyone
Parameters
Parameter |
Comments |
---|---|
The password or token for XMLRPC authentication. If not specified then the value of the |
|
The ENDPOINT URL of the XMLRPC server. If not specified then the value of the |
|
The name of the user for XMLRPC authentication. If not specified then the value of the |
|
The cluster ID. Default: |
|
The cluster specified by name. |
|
The name of the information manager, this values are taken from the oned.conf with the tag name IM_MAD (name) Default: |
|
The labels for this host. |
|
Hostname of the machine to manage. |
|
Takes the host to the desired lifecycle state. If If If
Choices:
|
|
The template or attribute changes to merge into the host template. |
|
Whether to validate the TLS/SSL certificates or not. This parameter is ignored if Choices:
|
|
The name of the virtual machine manager mad name, this values are taken from the oned.conf with the tag name VM_MAD (name) Default: |
|
Time to wait for the desired state to be reached before timeout, in seconds. Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Create a new host in OpenNebula
community.general.one_host:
name: host1
cluster_id: 1
api_url: http://127.0.0.1:2633/RPC2
- name: Create a host and adjust its template
community.general.one_host:
name: host2
cluster_name: default
template:
LABELS:
- gold
- ssd
RESERVED_CPU: -100