ansible / ansible.builtin / v2.9.27 / module / one_host Manages OpenNebula Hosts | "added in version" 2.6 of ansible.builtin" Authors: Rafael del Valle (@rvalle) preview | supported by communityansible.builtin.one_host (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Manages OpenNebula Hosts
- name: Create a new host in OpenNebula one_host: name: host1 cluster_id: 1 api_url: http://127.0.0.1:2633/RPC2
- name: Create a host and adjust its template one_host: name: host2 cluster_name: default template: LABELS: - gold - ssd RESERVED_CPU: -100
name: description: - Hostname of the machine to manage. required: true state: choices: - absent - present - enabled - disabled - offline default: present description: - Takes the host to the desired lifecycle state. - If C(absent) the host will be deleted from the cluster. - If C(present) the host will be created in the cluster (includes C(enabled), C(disabled) and C(offline) states). - If C(enabled) the host is fully operational. - C(disabled), e.g. to perform maintenance operations. - C(offline), host is totally offline. labels: description: - The labels for this host. api_url: aliases: - api_endpoint description: - The ENDPOINT URL of the XMLRPC server. - If not specified then the value of the ONE_URL environment variable, if any, is used. type: str template: aliases: - attributes description: - The template or attribute changes to merge into the host template. cluster_id: default: 0 description: - The cluster ID. im_mad_name: default: kvm description: - The name of the information manager, this values are taken from the oned.conf with the tag name IM_MAD (name) api_password: aliases: - api_token description: - The password or token for XMLRPC authentication. - If not specified then the value of the ONE_PASSWORD environment variable, if any, is used. type: str api_username: description: - The name of the user for XMLRPC authentication. - If not specified then the value of the ONE_USERNAME environment variable, if any, is used. type: str cluster_name: description: - The cluster specified by name. vmm_mad_name: default: kvm description: - The name of the virtual machine manager mad name, this values are taken from the oned.conf with the tag name VM_MAD (name) wait_timeout: default: 300 description: - Time to wait for the desired state to be reached before timeout, in seconds. type: int validate_certs: default: true description: - Whether to validate the SSL certificates or not. - This parameter is ignored if PYTHONHTTPSVERIFY environment variable is used. type: bool