community.general.one_host module – Manages OpenNebula Hosts
Note
This module is part of the community.general collection (version 5.8.3).
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 ONE_PASSWORD environment variable, if any, is used. |
|
The ENDPOINT URL of the XMLRPC server. If not specified then the value of the ONE_URL environment variable, if any, is used. |
|
The name of the user for XMLRPC authentication. If not specified then the value of the ONE_USERNAME environment variable, if any, is used. |
|
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 SSL certificates or not. This parameter is ignored if PYTHONHTTPSVERIFY environment variable is used. 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: |
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
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication