mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adjust booleans in cloud modules. (#5155)
This commit is contained in:
parent
19ce50f6b9
commit
3a08903e1c
51 changed files with 177 additions and 177 deletions
|
@ -44,7 +44,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Start or Stop the container.
|
- Start or Stop the container.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
|
@ -59,7 +59,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether to wait for the provisioning tasks to finish before returning.
|
- Whether to wait for the provisioning tasks to finish before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
requirements:
|
requirements:
|
||||||
- python = 2.7
|
- python = 2.7
|
||||||
- requests >= 2.5.0
|
- requests >= 2.5.0
|
||||||
|
|
|
@ -43,7 +43,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether to wait for the tasks to finish before returning.
|
- Whether to wait for the tasks to finish before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
requirements:
|
requirements:
|
||||||
- python = 2.7
|
- python = 2.7
|
||||||
- requests >= 2.5.0
|
- requests >= 2.5.0
|
||||||
|
|
|
@ -25,7 +25,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether to add a public ip to the server
|
- Whether to add a public ip to the server
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
alias:
|
alias:
|
||||||
description:
|
description:
|
||||||
- The account alias to provision the servers under.
|
- The account alias to provision the servers under.
|
||||||
|
@ -96,8 +96,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether to create the server as 'Managed' or not.
|
- Whether to create the server as 'Managed' or not.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
required: False
|
required: false
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
- Memory in GB.
|
- Memory in GB.
|
||||||
|
@ -194,7 +194,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether to wait for the provisioning tasks to finish before returning.
|
- Whether to wait for the provisioning tasks to finish before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
requirements:
|
requirements:
|
||||||
- python = 2.7
|
- python = 2.7
|
||||||
- requests >= 2.5.0
|
- requests >= 2.5.0
|
||||||
|
|
|
@ -58,7 +58,7 @@ options:
|
||||||
- If C(False), the module will fail under these conditions.
|
- If C(False), the module will fail under these conditions.
|
||||||
- This is intended to prevent accidental expansion of a VLAN's network (since this operation is not reversible).
|
- This is intended to prevent accidental expansion of a VLAN's network (since this operation is not reversible).
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -72,7 +72,7 @@ EXAMPLES = '''
|
||||||
private_ipv4_base_address: 192.168.23.0
|
private_ipv4_base_address: 192.168.23.0
|
||||||
private_ipv4_prefix_size: 24
|
private_ipv4_prefix_size: 24
|
||||||
state: present
|
state: present
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Read / get VLAN details
|
- name: Read / get VLAN details
|
||||||
community.general.dimensiondata_vlan:
|
community.general.dimensiondata_vlan:
|
||||||
|
@ -81,7 +81,7 @@ EXAMPLES = '''
|
||||||
network_domain: test_network
|
network_domain: test_network
|
||||||
name: my_vlan1
|
name: my_vlan1
|
||||||
state: readonly
|
state: readonly
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Delete a VLAN
|
- name: Delete a VLAN
|
||||||
community.general.dimensiondata_vlan:
|
community.general.dimensiondata_vlan:
|
||||||
|
@ -90,7 +90,7 @@ EXAMPLES = '''
|
||||||
network_domain: test_network
|
network_domain: test_network
|
||||||
name: my_vlan_1
|
name: my_vlan_1
|
||||||
state: absent
|
state: absent
|
||||||
wait: yes
|
wait: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -36,7 +36,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Suppress email invitation when creating collaborator
|
- Suppress email invitation when creating collaborator
|
||||||
type: bool
|
type: bool
|
||||||
default: "no"
|
default: false
|
||||||
user:
|
user:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -26,7 +26,7 @@ options:
|
||||||
- Linode API key.
|
- Linode API key.
|
||||||
- C(LINODE_API_KEY) env variable can be used instead.
|
- C(LINODE_API_KEY) env variable can be used instead.
|
||||||
type: str
|
type: str
|
||||||
required: yes
|
required: true
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name to give the instance (alphanumeric, dashes, underscore).
|
- Name to give the instance (alphanumeric, dashes, underscore).
|
||||||
|
@ -185,10 +185,10 @@ EXAMPLES = '''
|
||||||
datacenter: 2
|
datacenter: 2
|
||||||
distribution: 99
|
distribution: 99
|
||||||
password: 'superSecureRootPassword'
|
password: 'superSecureRootPassword'
|
||||||
private_ip: yes
|
private_ip: true
|
||||||
ssh_pub_key: 'ssh-rsa qwerty'
|
ssh_pub_key: 'ssh-rsa qwerty'
|
||||||
swap: 768
|
swap: 768
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
state: present
|
state: present
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
@ -203,10 +203,10 @@ EXAMPLES = '''
|
||||||
distribution: 99
|
distribution: 99
|
||||||
kernel_id: 138
|
kernel_id: 138
|
||||||
password: 'superSecureRootPassword'
|
password: 'superSecureRootPassword'
|
||||||
private_ip: yes
|
private_ip: true
|
||||||
ssh_pub_key: 'ssh-rsa qwerty'
|
ssh_pub_key: 'ssh-rsa qwerty'
|
||||||
swap: 768
|
swap: 768
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
state: present
|
state: present
|
||||||
alert_bwquota_enabled: True
|
alert_bwquota_enabled: True
|
||||||
|
@ -239,7 +239,7 @@ EXAMPLES = '''
|
||||||
password: 'superSecureRootPassword'
|
password: 'superSecureRootPassword'
|
||||||
ssh_pub_key: 'ssh-rsa qwerty'
|
ssh_pub_key: 'ssh-rsa qwerty'
|
||||||
swap: 768
|
swap: 768
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
state: present
|
state: present
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
|
@ -91,7 +91,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Enable a container log for host actions to the container.
|
- Enable a container log for host actions to the container.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
container_log_level:
|
container_log_level:
|
||||||
choices:
|
choices:
|
||||||
- Info
|
- Info
|
||||||
|
@ -119,13 +119,13 @@ options:
|
||||||
- This is not supported by all container storage backends.
|
- This is not supported by all container storage backends.
|
||||||
- Enabling this may fail if the backing store does not support snapshots.
|
- Enabling this may fail if the backing store does not support snapshots.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
archive:
|
archive:
|
||||||
description:
|
description:
|
||||||
- Create an archive of a container.
|
- Create an archive of a container.
|
||||||
- This will create a tarball of the running container.
|
- This will create a tarball of the running container.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
archive_path:
|
archive_path:
|
||||||
description:
|
description:
|
||||||
- Path the save the archived container.
|
- Path the save the archived container.
|
||||||
|
|
|
@ -86,7 +86,7 @@ options:
|
||||||
onboot:
|
onboot:
|
||||||
description:
|
description:
|
||||||
- specifies whether a VM will be started during system bootup
|
- specifies whether a VM will be started during system bootup
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(no).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(false).
|
||||||
type: bool
|
type: bool
|
||||||
storage:
|
storage:
|
||||||
description:
|
description:
|
||||||
|
@ -118,7 +118,7 @@ options:
|
||||||
- with C(state=present) force option allow to overwrite existing container
|
- with C(state=present) force option allow to overwrite existing container
|
||||||
- with states C(stopped) , C(restarted) allow to force stop instance
|
- with states C(stopped) , C(restarted) allow to force stop instance
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
purge:
|
purge:
|
||||||
description:
|
description:
|
||||||
- Remove container from all related configurations.
|
- Remove container from all related configurations.
|
||||||
|
@ -142,7 +142,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Indicate if the container should be unprivileged
|
- Indicate if the container should be unprivileged
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Specify the description for the container. Only used on the configuration web interface.
|
- Specify the description for the container. Only used on the configuration web interface.
|
||||||
|
@ -239,7 +239,7 @@ EXAMPLES = r'''
|
||||||
password: 123456
|
password: 123456
|
||||||
hostname: example.org
|
hostname: example.org
|
||||||
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
||||||
force: yes
|
force: true
|
||||||
|
|
||||||
- name: Create new container with minimal options use environment PROXMOX_PASSWORD variable(you should export it before)
|
- name: Create new container with minimal options use environment PROXMOX_PASSWORD variable(you should export it before)
|
||||||
community.general.proxmox:
|
community.general.proxmox:
|
||||||
|
@ -369,7 +369,7 @@ EXAMPLES = r'''
|
||||||
api_user: root@pam
|
api_user: root@pam
|
||||||
api_password: 1q2w3e
|
api_password: 1q2w3e
|
||||||
api_host: node1
|
api_host: node1
|
||||||
force: yes
|
force: true
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: Restart container(stopped or mounted container you can't restart)
|
- name: Restart container(stopped or mounted container you can't restart)
|
||||||
|
|
|
@ -20,7 +20,7 @@ options:
|
||||||
acpi:
|
acpi:
|
||||||
description:
|
description:
|
||||||
- Specify if ACPI should be enabled/disabled.
|
- Specify if ACPI should be enabled/disabled.
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(yes).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(true).
|
||||||
type: bool
|
type: bool
|
||||||
agent:
|
agent:
|
||||||
description:
|
description:
|
||||||
|
@ -38,7 +38,7 @@ options:
|
||||||
autostart:
|
autostart:
|
||||||
description:
|
description:
|
||||||
- Specify if the VM should be automatically restarted after crash (currently ignored in PVE API).
|
- Specify if the VM should be automatically restarted after crash (currently ignored in PVE API).
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(no).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(false).
|
||||||
type: bool
|
type: bool
|
||||||
balloon:
|
balloon:
|
||||||
description:
|
description:
|
||||||
|
@ -160,7 +160,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Allow to force stop VM.
|
- Allow to force stop VM.
|
||||||
- Can be used with states C(stopped), C(restarted) and C(absent).
|
- Can be used with states C(stopped), C(restarted) and C(absent).
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(no).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(false).
|
||||||
type: bool
|
type: bool
|
||||||
format:
|
format:
|
||||||
description:
|
description:
|
||||||
|
@ -184,7 +184,7 @@ options:
|
||||||
- For VM templates, we try to create a linked clone by default.
|
- For VM templates, we try to create a linked clone by default.
|
||||||
- Used only with clone
|
- Used only with clone
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
hostpci:
|
hostpci:
|
||||||
description:
|
description:
|
||||||
- Specify a hash/dictionary of map host pci devices into guest. C(hostpci='{"key":"value", "key":"value"}').
|
- Specify a hash/dictionary of map host pci devices into guest. C(hostpci='{"key":"value", "key":"value"}').
|
||||||
|
@ -238,7 +238,7 @@ options:
|
||||||
kvm:
|
kvm:
|
||||||
description:
|
description:
|
||||||
- Enable/disable KVM hardware virtualization.
|
- Enable/disable KVM hardware virtualization.
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(yes).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(true).
|
||||||
type: bool
|
type: bool
|
||||||
localtime:
|
localtime:
|
||||||
description:
|
description:
|
||||||
|
@ -314,7 +314,7 @@ options:
|
||||||
onboot:
|
onboot:
|
||||||
description:
|
description:
|
||||||
- Specifies whether a VM will be started during system bootup.
|
- Specifies whether a VM will be started during system bootup.
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(yes).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(true).
|
||||||
type: bool
|
type: bool
|
||||||
ostype:
|
ostype:
|
||||||
description:
|
description:
|
||||||
|
@ -335,7 +335,7 @@ options:
|
||||||
type: bool
|
type: bool
|
||||||
reboot:
|
reboot:
|
||||||
description:
|
description:
|
||||||
- Allow reboot. If set to C(yes), the VM exit on reboot.
|
- Allow reboot. If set to C(true), the VM exit on reboot.
|
||||||
type: bool
|
type: bool
|
||||||
revert:
|
revert:
|
||||||
description:
|
description:
|
||||||
|
@ -437,7 +437,7 @@ options:
|
||||||
tablet:
|
tablet:
|
||||||
description:
|
description:
|
||||||
- Enables/disables the USB tablet device.
|
- Enables/disables the USB tablet device.
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(no).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(false).
|
||||||
type: bool
|
type: bool
|
||||||
tags:
|
tags:
|
||||||
description:
|
description:
|
||||||
|
@ -459,7 +459,7 @@ options:
|
||||||
template:
|
template:
|
||||||
description:
|
description:
|
||||||
- Enables/disables the template.
|
- Enables/disables the template.
|
||||||
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(no).
|
- This option has no default unless I(proxmox_default_behavior) is set to C(compatiblity); then the default is C(false).
|
||||||
type: bool
|
type: bool
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
|
@ -468,12 +468,12 @@ options:
|
||||||
default: 30
|
default: 30
|
||||||
update:
|
update:
|
||||||
description:
|
description:
|
||||||
- If C(yes), the VM will be updated with new value.
|
- If C(true), the VM will be updated with new value.
|
||||||
- Cause of the operations of the API and security reasons, I have disabled the update of the following parameters
|
- Cause of the operations of the API and security reasons, I have disabled the update of the following parameters
|
||||||
- C(net, virtio, ide, sata, scsi). Per example updating C(net) update the MAC address and C(virtio) create always new disk...
|
- C(net, virtio, ide, sata, scsi). Per example updating C(net) update the MAC address and C(virtio) create always new disk...
|
||||||
- Update of C(pool) is disabled. It needs an additional API endpoint not covered by this module.
|
- Update of C(pool) is disabled. It needs an additional API endpoint not covered by this module.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
vcpus:
|
vcpus:
|
||||||
description:
|
description:
|
||||||
- Sets number of hotplugged vcpus.
|
- Sets number of hotplugged vcpus.
|
||||||
|
@ -625,7 +625,7 @@ EXAMPLES = '''
|
||||||
name: zavala
|
name: zavala
|
||||||
node: sabrewulf
|
node: sabrewulf
|
||||||
storage: VMs
|
storage: VMs
|
||||||
full: no
|
full: false
|
||||||
format: unspecified
|
format: unspecified
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ EXAMPLES = '''
|
||||||
api_host: helldorado
|
api_host: helldorado
|
||||||
name: spynal
|
name: spynal
|
||||||
node: sabrewulf
|
node: sabrewulf
|
||||||
protection: yes
|
protection: true
|
||||||
|
|
||||||
- name: Create new VM using cloud-init with a username and password
|
- name: Create new VM using cloud-init with a username and password
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
|
@ -724,7 +724,7 @@ EXAMPLES = '''
|
||||||
name: spynal
|
name: spynal
|
||||||
node: sabrewulf
|
node: sabrewulf
|
||||||
state: stopped
|
state: stopped
|
||||||
force: yes
|
force: true
|
||||||
|
|
||||||
- name: Restart VM
|
- name: Restart VM
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
|
@ -762,7 +762,7 @@ EXAMPLES = '''
|
||||||
node: sabrewulf
|
node: sabrewulf
|
||||||
cores: 8
|
cores: 8
|
||||||
memory: 16384
|
memory: 16384
|
||||||
update: yes
|
update: true
|
||||||
|
|
||||||
- name: Delete QEMU parameters
|
- name: Delete QEMU parameters
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
|
@ -1394,7 +1394,7 @@ def main():
|
||||||
if module.params['force']:
|
if module.params['force']:
|
||||||
proxmox.stop_vm(vm, True)
|
proxmox.stop_vm(vm, True)
|
||||||
else:
|
else:
|
||||||
module.exit_json(changed=False, vmid=vmid, msg="VM %s is running. Stop it before deletion or use force=yes." % vmid)
|
module.exit_json(changed=False, vmid=vmid, msg="VM %s is running. Stop it before deletion or use force=true." % vmid)
|
||||||
taskid = proxmox_node.qemu.delete(vmid)
|
taskid = proxmox_node.qemu.delete(vmid)
|
||||||
if not proxmox.wait_for_task(vm['node'], taskid):
|
if not proxmox.wait_for_task(vm['node'], taskid):
|
||||||
module.fail_json(msg='Reached timeout while waiting for removing VM. Last line in task before timeout: %s' %
|
module.fail_json(msg='Reached timeout while waiting for removing VM. Last line in task before timeout: %s' %
|
||||||
|
|
|
@ -36,12 +36,12 @@ options:
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- For removal from config file, even if removing disk snapshot fails.
|
- For removal from config file, even if removing disk snapshot fails.
|
||||||
default: no
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
vmstate:
|
vmstate:
|
||||||
description:
|
description:
|
||||||
- Snapshot includes RAM.
|
- Snapshot includes RAM.
|
||||||
default: no
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
|
@ -175,8 +175,8 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent', 'rollback']),
|
state=dict(default='present', choices=['present', 'absent', 'rollback']),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
snapname=dict(type='str', default='ansible_snap'),
|
snapname=dict(type='str', default='ansible_snap'),
|
||||||
force=dict(type='bool', default='no'),
|
force=dict(type='bool', default=False),
|
||||||
vmstate=dict(type='bool', default='no'),
|
vmstate=dict(type='bool', default=False),
|
||||||
)
|
)
|
||||||
module_args.update(snap_args)
|
module_args.update(snap_args)
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- can be used only with C(state=present), exists template will be overwritten
|
- can be used only with C(state=present), exists template will be overwritten
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state of the template
|
- Indicate desired state of the template
|
||||||
|
@ -92,7 +92,7 @@ EXAMPLES = '''
|
||||||
storage: local
|
storage: local
|
||||||
content_type: vztmpl
|
content_type: vztmpl
|
||||||
src: ~/ubuntu-14.04-x86_64.tar.gz
|
src: ~/ubuntu-14.04-x86_64.tar.gz
|
||||||
force: yes
|
force: true
|
||||||
|
|
||||||
- name: Delete template with minimal options
|
- name: Delete template with minimal options
|
||||||
community.general.proxmox_template:
|
community.general.proxmox_template:
|
||||||
|
|
|
@ -45,7 +45,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- A boolean switch to make a secure or insecure connection to the server.
|
- A boolean switch to make a secure or insecure connection to the server.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the VM.
|
- The name of the VM.
|
||||||
|
@ -108,7 +108,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- To make your VM High Available.
|
- To make your VM High Available.
|
||||||
type: bool
|
type: bool
|
||||||
default: yes
|
default: true
|
||||||
disks:
|
disks:
|
||||||
description:
|
description:
|
||||||
- This option uses complex arguments and is a list of disks with the options name, size and domain.
|
- This option uses complex arguments and is a list of disks with the options name, size and domain.
|
||||||
|
@ -130,7 +130,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- This option sets the delete protection checkbox.
|
- This option sets the delete protection checkbox.
|
||||||
type: bool
|
type: bool
|
||||||
default: yes
|
default: true
|
||||||
cd_drive:
|
cd_drive:
|
||||||
description:
|
description:
|
||||||
- The CD you wish to have mounted on the VM when I(state = 'CD').
|
- The CD you wish to have mounted on the VM when I(state = 'CD').
|
||||||
|
@ -309,7 +309,7 @@ EXAMPLES = r'''
|
||||||
network: rhevm
|
network: rhevm
|
||||||
ip: 172.31.222.200
|
ip: 172.31.222.200
|
||||||
netmask: 255.255.255.0
|
netmask: 255.255.255.0
|
||||||
management: yes
|
management: true
|
||||||
- name: bond0.36
|
- name: bond0.36
|
||||||
network: vlan36
|
network: vlan36
|
||||||
ip: 10.2.36.200
|
ip: 10.2.36.200
|
||||||
|
|
|
@ -46,17 +46,17 @@ options:
|
||||||
- When this option is C(false) all the functions will be built, but no stack update will be run to send them out.
|
- When this option is C(false) all the functions will be built, but no stack update will be run to send them out.
|
||||||
- This is mostly useful for generating artifacts to be stored/deployed elsewhere.
|
- This is mostly useful for generating artifacts to be stored/deployed elsewhere.
|
||||||
type: bool
|
type: bool
|
||||||
default: yes
|
default: true
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- Whether or not to force full deployment, equivalent to serverless C(--force) option.
|
- Whether or not to force full deployment, equivalent to serverless C(--force) option.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
verbose:
|
verbose:
|
||||||
description:
|
description:
|
||||||
- Shows all stack events during deployment, and display any Stack Output.
|
- Shows all stack events during deployment, and display any Stack Output.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
notes:
|
notes:
|
||||||
- Currently, the C(serverless) command must be in the path of the node executing the task.
|
- Currently, the C(serverless) command must be in the path of the node executing the task.
|
||||||
In the future this may be a flag.
|
In the future this may be a flag.
|
||||||
|
|
|
@ -83,7 +83,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -121,7 +121,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -174,7 +174,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -71,7 +71,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -59,7 +59,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -120,7 +120,7 @@ options:
|
||||||
for each individual server to be deleted before moving on with
|
for each individual server to be deleted before moving on with
|
||||||
other tasks.)
|
other tasks.)
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
@ -137,7 +137,7 @@ options:
|
||||||
hostnames by appending a count after them or substituting the count
|
hostnames by appending a count after them or substituting the count
|
||||||
where there is a %02d or %03d in the hostname string.
|
where there is a %02d or %03d in the hostname string.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "1and1"
|
- "1and1"
|
||||||
|
@ -173,7 +173,7 @@ EXAMPLES = '''
|
||||||
datacenter: ES
|
datacenter: ES
|
||||||
appliance: C5A349786169F140BCBC335675014C08
|
appliance: C5A349786169F140BCBC335675014C08
|
||||||
count: 3
|
count: 3
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
wait_interval: 10
|
wait_interval: 10
|
||||||
ssh_key: SSH_PUBLIC_KEY
|
ssh_key: SSH_PUBLIC_KEY
|
||||||
|
|
|
@ -102,12 +102,12 @@ EXAMPLES = '''
|
||||||
- name: Disable the IMAGE by id
|
- name: Disable the IMAGE by id
|
||||||
community.general.one_image:
|
community.general.one_image:
|
||||||
id: 37
|
id: 37
|
||||||
enabled: no
|
enabled: false
|
||||||
|
|
||||||
- name: Enable the IMAGE by name
|
- name: Enable the IMAGE by name
|
||||||
community.general.one_image:
|
community.general.one_image:
|
||||||
name: bar-image
|
name: bar-image
|
||||||
enabled: yes
|
enabled: true
|
||||||
|
|
||||||
- name: Clone the IMAGE by name
|
- name: Clone the IMAGE by name
|
||||||
community.general.one_image:
|
community.general.one_image:
|
||||||
|
|
|
@ -66,10 +66,10 @@ options:
|
||||||
type: str
|
type: str
|
||||||
unique:
|
unique:
|
||||||
description:
|
description:
|
||||||
- Setting C(unique=yes) will make sure that there is only one service instance running with a name set with C(service_name) when
|
- Setting C(unique=true) will make sure that there is only one service instance running with a name set with C(service_name) when
|
||||||
- instantiating a service from a template specified with C(template_id)/C(template_name). Check examples below.
|
- instantiating a service from a template specified with C(template_id)/C(template_name). Check examples below.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- C(present) - instantiate a service from a template specified with C(template_id)/C(template_name).
|
- C(present) - instantiate a service from a template specified with C(template_id)/C(template_name).
|
||||||
|
@ -93,7 +93,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Wait for the instance to reach RUNNING state after DEPLOYING or COOLDOWN state after SCALING
|
- Wait for the instance to reach RUNNING state after DEPLOYING or COOLDOWN state after SCALING
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- How long before wait gives up, in seconds
|
- How long before wait gives up, in seconds
|
||||||
|
@ -116,7 +116,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Force the new cardinality even if it is outside the limits
|
- Force the new cardinality even if it is outside the limits
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
author:
|
author:
|
||||||
- "Milan Ilic (@ilicmilan)"
|
- "Milan Ilic (@ilicmilan)"
|
||||||
'''
|
'''
|
||||||
|
@ -149,7 +149,7 @@ EXAMPLES = '''
|
||||||
community.general.one_service:
|
community.general.one_service:
|
||||||
template_id: 53
|
template_id: 53
|
||||||
service_name: 'foo'
|
service_name: 'foo'
|
||||||
unique: yes
|
unique: true
|
||||||
|
|
||||||
- name: Delete a service by ID
|
- name: Delete a service by ID
|
||||||
community.general.one_service:
|
community.general.one_service:
|
||||||
|
@ -176,7 +176,7 @@ EXAMPLES = '''
|
||||||
- name: Wait service to become RUNNING
|
- name: Wait service to become RUNNING
|
||||||
community.general.one_service:
|
community.general.one_service:
|
||||||
service_id: 112
|
service_id: 112
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Change role cardinality
|
- name: Change role cardinality
|
||||||
community.general.one_service:
|
community.general.one_service:
|
||||||
|
@ -189,7 +189,7 @@ EXAMPLES = '''
|
||||||
service_id: 112
|
service_id: 112
|
||||||
role: foo
|
role: foo
|
||||||
cardinality: 7
|
cardinality: 7
|
||||||
wait: yes
|
wait: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -89,7 +89,7 @@ options:
|
||||||
hard:
|
hard:
|
||||||
description:
|
description:
|
||||||
- Reboot, power-off or terminate instances C(hard)
|
- Reboot, power-off or terminate instances C(hard)
|
||||||
default: no
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
|
@ -98,7 +98,7 @@ options:
|
||||||
- doesn't mean that you will be able to SSH on that machine only that
|
- doesn't mean that you will be able to SSH on that machine only that
|
||||||
- boot process have started on that instance, see 'wait_for' example for
|
- boot process have started on that instance, see 'wait_for' example for
|
||||||
- details.
|
- details.
|
||||||
default: yes
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
@ -202,7 +202,7 @@ options:
|
||||||
persistent:
|
persistent:
|
||||||
description:
|
description:
|
||||||
- Create a private persistent copy of the template plus any image defined in DISK, and instantiate that copy.
|
- Create a private persistent copy of the template plus any image defined in DISK, and instantiate that copy.
|
||||||
default: NO
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
version_added: '0.2.0'
|
version_added: '0.2.0'
|
||||||
datastore_id:
|
datastore_id:
|
||||||
|
@ -251,7 +251,7 @@ EXAMPLES = '''
|
||||||
- name: Deploy a new VM as persistent
|
- name: Deploy a new VM as persistent
|
||||||
community.general.one_vm:
|
community.general.one_vm:
|
||||||
template_id: 90
|
template_id: 90
|
||||||
persistent: yes
|
persistent: true
|
||||||
|
|
||||||
- name: Change VM's permissions to 640
|
- name: Change VM's permissions to 640
|
||||||
community.general.one_vm:
|
community.general.one_vm:
|
||||||
|
|
|
@ -20,7 +20,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether or not to increment a single number in the name for created virtual machines.
|
- Whether or not to increment a single number in the name for created virtual machines.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the virtual machine.
|
- The name of the virtual machine.
|
||||||
|
@ -89,7 +89,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- This will assign the machine to the public LAN. If no LAN exists with public Internet access it is created.
|
- This will assign the machine to the public LAN. If no LAN exists with public Internet access it is created.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
lan:
|
lan:
|
||||||
description:
|
description:
|
||||||
- The ID of the LAN you wish to add the servers to.
|
- The ID of the LAN you wish to add the servers to.
|
||||||
|
@ -107,7 +107,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
- how long before wait gives up, in seconds
|
- how long before wait gives up, in seconds
|
||||||
|
@ -117,7 +117,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- remove the bootVolume of the virtual machine you're destroying.
|
- remove the bootVolume of the virtual machine you're destroying.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- create or terminate instances
|
- create or terminate instances
|
||||||
|
|
|
@ -46,7 +46,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the datacenter to be created before returning
|
- wait for the datacenter to be created before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -48,7 +48,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the operation to complete before returning
|
- wait for the operation to complete before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -74,7 +74,7 @@ options:
|
||||||
auto_increment:
|
auto_increment:
|
||||||
description:
|
description:
|
||||||
- Whether or not to increment a single number in the name for created virtual machines.
|
- Whether or not to increment a single number in the name for created virtual machines.
|
||||||
default: yes
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
instance_ids:
|
instance_ids:
|
||||||
description:
|
description:
|
||||||
|
@ -96,7 +96,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the datacenter to be created before returning
|
- wait for the datacenter to be created before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
@ -125,7 +125,7 @@ EXAMPLES = '''
|
||||||
datacenter: Tardis One
|
datacenter: Tardis One
|
||||||
name: vol%02d
|
name: vol%02d
|
||||||
count: 5
|
count: 5
|
||||||
auto_increment: yes
|
auto_increment: true
|
||||||
wait_timeout: 500
|
wait_timeout: 500
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the operation to complete before returning
|
- wait for the operation to complete before returning
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -22,15 +22,15 @@ options:
|
||||||
created servers. Only applicable when used with the I(group) attribute
|
created servers. Only applicable when used with the I(group) attribute
|
||||||
or meta key.
|
or meta key.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
boot_from_volume:
|
boot_from_volume:
|
||||||
description:
|
description:
|
||||||
- Whether or not to boot the instance from a Cloud Block Storage volume.
|
- Whether or not to boot the instance from a Cloud Block Storage volume.
|
||||||
If C(yes) and I(image) is specified a new volume will be created at
|
If C(true) and I(image) is specified a new volume will be created at
|
||||||
boot time. I(boot_volume_size) is required with I(image) to create a
|
boot time. I(boot_volume_size) is required with I(image) to create a
|
||||||
new volume at boot time.
|
new volume at boot time.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
boot_volume:
|
boot_volume:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
@ -47,12 +47,12 @@ options:
|
||||||
- Whether the I(boot_volume) or newly created volume from I(image) will
|
- Whether the I(boot_volume) or newly created volume from I(image) will
|
||||||
be terminated when the server is terminated
|
be terminated when the server is terminated
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
config_drive:
|
config_drive:
|
||||||
description:
|
description:
|
||||||
- Attach read-only configuration drive to server as label config-2
|
- Attach read-only configuration drive to server as label config-2
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
count:
|
count:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -74,12 +74,12 @@ options:
|
||||||
exact_count:
|
exact_count:
|
||||||
description:
|
description:
|
||||||
- Explicitly ensure an exact count of instances, used with
|
- Explicitly ensure an exact count of instances, used with
|
||||||
state=active/present. If specified as C(yes) and I(count) is less than
|
state=active/present. If specified as C(true) and I(count) is less than
|
||||||
the servers matched, servers will be deleted to match the count. If
|
the servers matched, servers will be deleted to match the count. If
|
||||||
the number of matched servers is fewer than specified in I(count)
|
the number of matched servers is fewer than specified in I(count)
|
||||||
additional servers will be added.
|
additional servers will be added.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
extra_client_args:
|
extra_client_args:
|
||||||
type: dict
|
type: dict
|
||||||
description:
|
description:
|
||||||
|
@ -157,7 +157,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -191,7 +191,7 @@ EXAMPLES = '''
|
||||||
key_name: my_rackspace_key
|
key_name: my_rackspace_key
|
||||||
files:
|
files:
|
||||||
/root/test.txt: /home/localuser/test.txt
|
/root/test.txt: /home/localuser/test.txt
|
||||||
wait: yes
|
wait: true
|
||||||
state: present
|
state: present
|
||||||
networks:
|
networks:
|
||||||
- private
|
- private
|
||||||
|
@ -212,9 +212,9 @@ EXAMPLES = '''
|
||||||
state: present
|
state: present
|
||||||
count: 10
|
count: 10
|
||||||
count_offset: 10
|
count_offset: 10
|
||||||
exact_count: yes
|
exact_count: true
|
||||||
group: test
|
group: test
|
||||||
wait: yes
|
wait: true
|
||||||
register: rax
|
register: rax
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the volume to be in state 'available' before returning
|
- wait for the volume to be in state 'available' before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -91,7 +91,7 @@ EXAMPLES = '''
|
||||||
volume_type: SSD
|
volume_type: SSD
|
||||||
size: 150
|
size: 150
|
||||||
region: DFW
|
region: DFW
|
||||||
wait: yes
|
wait: true
|
||||||
state: present
|
state: present
|
||||||
meta:
|
meta:
|
||||||
app: my-cool-app
|
app: my-cool-app
|
||||||
|
|
|
@ -42,7 +42,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the volume to be in 'in-use'/'available' state before returning
|
- wait for the volume to be in 'in-use'/'available' state before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -70,7 +70,7 @@ EXAMPLES = '''
|
||||||
server: my-server
|
server: my-server
|
||||||
device: /dev/xvdd
|
device: /dev/xvdd
|
||||||
region: DFW
|
region: DFW
|
||||||
wait: yes
|
wait: true
|
||||||
state: present
|
state: present
|
||||||
register: my_volume
|
register: my_volume
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -21,7 +21,7 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Name of the databases server instance
|
- Name of the databases server instance
|
||||||
required: yes
|
required: true
|
||||||
flavor:
|
flavor:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -55,7 +55,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the instance to be in state 'running' before returning
|
- wait for the instance to be in state 'running' before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -82,7 +82,7 @@ EXAMPLES = '''
|
||||||
volume: 2
|
volume: 2
|
||||||
cdb_type: MySQL
|
cdb_type: MySQL
|
||||||
cdb_version: 5.6
|
cdb_version: 5.6
|
||||||
wait: yes
|
wait: true
|
||||||
state: present
|
state: present
|
||||||
register: rax_db_server
|
register: rax_db_server
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -18,12 +18,12 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The databases server UUID
|
- The databases server UUID
|
||||||
required: yes
|
required: true
|
||||||
name:
|
name:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Name to give to the database
|
- Name to give to the database
|
||||||
required: yes
|
required: true
|
||||||
character_set:
|
character_set:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -19,17 +19,17 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The databases server UUID
|
- The databases server UUID
|
||||||
required: yes
|
required: true
|
||||||
db_username:
|
db_username:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Name of the database user
|
- Name of the database user
|
||||||
required: yes
|
required: true
|
||||||
db_password:
|
db_password:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Database user password
|
- Database user password
|
||||||
required: yes
|
required: true
|
||||||
databases:
|
databases:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
|
|
|
@ -34,7 +34,7 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Name to give the load balancer
|
- Name to give the load balancer
|
||||||
required: yes
|
required: true
|
||||||
port:
|
port:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -94,7 +94,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- wait for the balancer to be in state 'running' before returning
|
- wait for the balancer to be in state 'running' before returning
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -125,7 +125,7 @@ EXAMPLES = '''
|
||||||
type: SERVICENET
|
type: SERVICENET
|
||||||
timeout: 30
|
timeout: 30
|
||||||
region: DFW
|
region: DFW
|
||||||
wait: yes
|
wait: true
|
||||||
state: present
|
state: present
|
||||||
meta:
|
meta:
|
||||||
app: my-cool-app
|
app: my-cool-app
|
||||||
|
|
|
@ -64,7 +64,7 @@ options:
|
||||||
- Type of node
|
- Type of node
|
||||||
wait:
|
wait:
|
||||||
required: false
|
required: false
|
||||||
default: "no"
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
description:
|
description:
|
||||||
- Wait for the load balancer to become active before returning
|
- Wait for the load balancer to become active before returning
|
||||||
|
@ -99,7 +99,7 @@ EXAMPLES = '''
|
||||||
port: 80
|
port: 80
|
||||||
condition: enabled
|
condition: enabled
|
||||||
type: primary
|
type: primary
|
||||||
wait: yes
|
wait: true
|
||||||
credentials: /path/to/credentials
|
credentials: /path/to/credentials
|
||||||
|
|
||||||
- name: Drain connections from a node
|
- name: Drain connections from a node
|
||||||
|
@ -108,7 +108,7 @@ EXAMPLES = '''
|
||||||
load_balancer_id: 71
|
load_balancer_id: 71
|
||||||
node_id: 410
|
node_id: 410
|
||||||
condition: draining
|
condition: draining
|
||||||
wait: yes
|
wait: true
|
||||||
credentials: /path/to/credentials
|
credentials: /path/to/credentials
|
||||||
|
|
||||||
- name: Remove a node from the load balancer
|
- name: Remove a node from the load balancer
|
||||||
|
@ -117,7 +117,7 @@ EXAMPLES = '''
|
||||||
load_balancer_id: 71
|
load_balancer_id: 71
|
||||||
node_id: 410
|
node_id: 410
|
||||||
state: absent
|
state: absent
|
||||||
wait: yes
|
wait: true
|
||||||
credentials: /path/to/credentials
|
credentials: /path/to/credentials
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ options:
|
||||||
- Optionally clear existing metadata when applying metadata to existing containers.
|
- Optionally clear existing metadata when applying metadata to existing containers.
|
||||||
Selecting this option is only appropriate when setting type=meta
|
Selecting this option is only appropriate when setting type=meta
|
||||||
type: bool
|
type: bool
|
||||||
default: "no"
|
default: false
|
||||||
container:
|
container:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
@ -82,7 +82,7 @@ extends_documentation_fragment:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: "Test Cloud Files Containers"
|
- name: "Test Cloud Files Containers"
|
||||||
hosts: local
|
hosts: local
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: "List all containers"
|
- name: "List all containers"
|
||||||
community.general.rax_files:
|
community.general.rax_files:
|
||||||
|
@ -112,22 +112,22 @@ EXAMPLES = '''
|
||||||
- name: "Make container public"
|
- name: "Make container public"
|
||||||
community.general.rax_files:
|
community.general.rax_files:
|
||||||
container: mycontainer
|
container: mycontainer
|
||||||
public: yes
|
public: true
|
||||||
|
|
||||||
- name: "Make container public with a 24 hour TTL"
|
- name: "Make container public with a 24 hour TTL"
|
||||||
community.general.rax_files:
|
community.general.rax_files:
|
||||||
container: mycontainer
|
container: mycontainer
|
||||||
public: yes
|
public: true
|
||||||
ttl: 86400
|
ttl: 86400
|
||||||
|
|
||||||
- name: "Make container private"
|
- name: "Make container private"
|
||||||
community.general.rax_files:
|
community.general.rax_files:
|
||||||
container: mycontainer
|
container: mycontainer
|
||||||
private: yes
|
private: true
|
||||||
|
|
||||||
- name: "Test Cloud Files Containers Metadata Storage"
|
- name: "Test Cloud Files Containers Metadata Storage"
|
||||||
hosts: local
|
hosts: local
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Get mycontainer2 metadata"
|
- name: "Get mycontainer2 metadata"
|
||||||
community.general.rax_files:
|
community.general.rax_files:
|
||||||
|
|
|
@ -63,7 +63,7 @@ options:
|
||||||
from Cloud Files. Setting to false downloads the contents of a container to a single,
|
from Cloud Files. Setting to false downloads the contents of a container to a single,
|
||||||
flat directory
|
flat directory
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
type:
|
type:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
@ -153,14 +153,14 @@ EXAMPLES = '''
|
||||||
method: get
|
method: get
|
||||||
src: FileThatDoesNotExist.jpg
|
src: FileThatDoesNotExist.jpg
|
||||||
dest: ~/Downloads/testcont
|
dest: ~/Downloads/testcont
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Attempt to delete remote object that does not exist"
|
- name: "Attempt to delete remote object that does not exist"
|
||||||
community.general.rax_files_objects:
|
community.general.rax_files_objects:
|
||||||
container: testcont
|
container: testcont
|
||||||
method: delete
|
method: delete
|
||||||
dest: FileThatDoesNotExist.jpg
|
dest: FileThatDoesNotExist.jpg
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Test Cloud Files Objects Metadata"
|
- name: "Test Cloud Files Objects Metadata"
|
||||||
hosts: local
|
hosts: local
|
||||||
|
|
|
@ -93,7 +93,7 @@ options:
|
||||||
256 items.
|
256 items.
|
||||||
disabled:
|
disabled:
|
||||||
description:
|
description:
|
||||||
- If "yes", ensure the check is created, but don't actually use it yet.
|
- If C(true), ensure the check is created, but don't actually use it yet.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -27,7 +27,7 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Label (name) to give the network
|
- Label (name) to give the network
|
||||||
required: yes
|
required: true
|
||||||
cidr:
|
cidr:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -19,7 +19,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Attach read-only configuration drive to server as label config-2
|
- Attach read-only configuration drive to server as label config-2
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
cooldown:
|
cooldown:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
@ -112,7 +112,7 @@ options:
|
||||||
- wait for the scaling group to finish provisioning the minimum amount of
|
- wait for the scaling group to finish provisioning the minimum amount of
|
||||||
servers
|
servers
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -110,7 +110,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Wait for the instance to reach its desired state before returning.
|
- Wait for the instance to reach its desired state before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
|
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
|
|
|
@ -73,7 +73,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Wait for the load-balancer to reach its desired state before returning.
|
- Wait for the load-balancer to reach its desired state before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
|
|
||||||
wait_timeout:
|
wait_timeout:
|
||||||
type: int
|
type: int
|
||||||
|
|
|
@ -32,7 +32,7 @@ options:
|
||||||
- Specifies that the nic tag will be attached to a created I(etherstub).
|
- Specifies that the nic tag will be attached to a created I(etherstub).
|
||||||
- Parameter I(etherstub) is mutually exclusive with both I(mtu), and I(mac).
|
- Parameter I(etherstub) is mutually exclusive with both I(mtu), and I(mac).
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
mtu:
|
mtu:
|
||||||
description:
|
description:
|
||||||
- Specifies the size of the I(mtu) of the desired nic tag.
|
- Specifies the size of the I(mtu) of the desired nic tag.
|
||||||
|
@ -42,7 +42,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- When I(state) is absent set this switch will use the C(-f) parameter and delete the nic tag regardless of existing VMs.
|
- When I(state) is absent set this switch will use the C(-f) parameter and delete the nic tag regardless of existing VMs.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Create or delete a SmartOS nic tag.
|
- Create or delete a SmartOS nic tag.
|
||||||
|
|
|
@ -358,8 +358,8 @@ EXAMPLES = '''
|
||||||
state: present
|
state: present
|
||||||
alias: fw_zone
|
alias: fw_zone
|
||||||
image_uuid: 95f265b8-96b2-11e6-9597-972f3af4b6d5
|
image_uuid: 95f265b8-96b2-11e6-9597-972f3af4b6d5
|
||||||
firewall_enabled: yes
|
firewall_enabled: true
|
||||||
indestructible_zoneroot: yes
|
indestructible_zoneroot: true
|
||||||
nics:
|
nics:
|
||||||
- nic_tag: admin
|
- nic_tag: admin
|
||||||
ip: dhcp
|
ip: dhcp
|
||||||
|
|
|
@ -80,22 +80,22 @@ options:
|
||||||
description:
|
description:
|
||||||
- Flag to determine if the instance should be hourly billed.
|
- Flag to determine if the instance should be hourly billed.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
private:
|
private:
|
||||||
description:
|
description:
|
||||||
- Flag to determine if the instance should be private only.
|
- Flag to determine if the instance should be private only.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
dedicated:
|
dedicated:
|
||||||
description:
|
description:
|
||||||
- Flag to determine if the instance should be deployed in dedicated space.
|
- Flag to determine if the instance should be deployed in dedicated space.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
local_disk:
|
local_disk:
|
||||||
description:
|
description:
|
||||||
- Flag to determine if local disk should be used for the new instance.
|
- Flag to determine if local disk should be used for the new instance.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
cpus:
|
cpus:
|
||||||
description:
|
description:
|
||||||
- Count of cpus to be assigned to new virtual instance.
|
- Count of cpus to be assigned to new virtual instance.
|
||||||
|
@ -158,7 +158,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Flag used to wait for active status before returning.
|
- Flag used to wait for active status before returning.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: true
|
||||||
wait_time:
|
wait_time:
|
||||||
description:
|
description:
|
||||||
- Time in seconds before wait returns.
|
- Time in seconds before wait returns.
|
||||||
|
@ -174,7 +174,7 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Build instance
|
- name: Build instance
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build instance request
|
- name: Build instance request
|
||||||
community.general.sl_vm:
|
community.general.sl_vm:
|
||||||
|
@ -182,19 +182,19 @@ EXAMPLES = '''
|
||||||
domain: anydomain.com
|
domain: anydomain.com
|
||||||
datacenter: dal09
|
datacenter: dal09
|
||||||
tags: ansible-module-test
|
tags: ansible-module-test
|
||||||
hourly: yes
|
hourly: true
|
||||||
private: no
|
private: false
|
||||||
dedicated: no
|
dedicated: false
|
||||||
local_disk: yes
|
local_disk: true
|
||||||
cpus: 1
|
cpus: 1
|
||||||
memory: 1024
|
memory: 1024
|
||||||
disks: [25]
|
disks: [25]
|
||||||
os_code: UBUNTU_LATEST
|
os_code: UBUNTU_LATEST
|
||||||
wait: no
|
wait: false
|
||||||
|
|
||||||
- name: Build additional instances
|
- name: Build additional instances
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build instances request
|
- name: Build instances request
|
||||||
community.general.sl_vm:
|
community.general.sl_vm:
|
||||||
|
@ -219,10 +219,10 @@ EXAMPLES = '''
|
||||||
tags:
|
tags:
|
||||||
- ansible-module-test
|
- ansible-module-test
|
||||||
- ansible-module-test-replicas
|
- ansible-module-test-replicas
|
||||||
hourly: yes
|
hourly: true
|
||||||
private: no
|
private: false
|
||||||
dedicated: no
|
dedicated: false
|
||||||
local_disk: yes
|
local_disk: true
|
||||||
cpus: 1
|
cpus: 1
|
||||||
memory: 1024
|
memory: 1024
|
||||||
disks:
|
disks:
|
||||||
|
@ -237,10 +237,10 @@ EXAMPLES = '''
|
||||||
tags:
|
tags:
|
||||||
- ansible-module-test
|
- ansible-module-test
|
||||||
- ansible-module-test-replicas
|
- ansible-module-test-replicas
|
||||||
hourly: yes
|
hourly: true
|
||||||
private: no
|
private: false
|
||||||
dedicated: no
|
dedicated: false
|
||||||
local_disk: yes
|
local_disk: true
|
||||||
cpus: 1
|
cpus: 1
|
||||||
memory: 1024
|
memory: 1024
|
||||||
disks:
|
disks:
|
||||||
|
@ -248,11 +248,11 @@ EXAMPLES = '''
|
||||||
- 100
|
- 100
|
||||||
os_code: UBUNTU_LATEST
|
os_code: UBUNTU_LATEST
|
||||||
ssh_keys: []
|
ssh_keys: []
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Cancel instances
|
- name: Cancel instances
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Cancel by tag
|
- name: Cancel by tag
|
||||||
community.general.sl_vm:
|
community.general.sl_vm:
|
||||||
|
|
|
@ -149,13 +149,13 @@ options:
|
||||||
type: str
|
type: str
|
||||||
overridePWHistory:
|
overridePWHistory:
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
description:
|
description:
|
||||||
- Override password history
|
- Override password history
|
||||||
aliases: [ override_pw_history ]
|
aliases: [ override_pw_history ]
|
||||||
overridePWLength:
|
overridePWLength:
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
description:
|
description:
|
||||||
- Override password check
|
- Override password check
|
||||||
aliases: [ override_pw_length ]
|
aliases: [ override_pw_length ]
|
||||||
|
|
|
@ -55,7 +55,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether the app should restart with an C(autostart.cgi) script
|
- Whether the app should restart with an C(autostart.cgi) script
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
|
|
||||||
extra_info:
|
extra_info:
|
||||||
description:
|
description:
|
||||||
|
@ -67,7 +67,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- IF the port should be opened
|
- IF the port should be opened
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
|
|
||||||
login_name:
|
login_name:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -53,7 +53,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether or not to use HTTPS
|
- Whether or not to use HTTPS
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: false
|
||||||
|
|
||||||
site_apps:
|
site_apps:
|
||||||
description:
|
description:
|
||||||
|
@ -92,7 +92,7 @@ EXAMPLES = '''
|
||||||
- 'testsite1.my_domain.org'
|
- 'testsite1.my_domain.org'
|
||||||
site_apps:
|
site_apps:
|
||||||
- ['testapp1', '/']
|
- ['testapp1', '/']
|
||||||
https: no
|
https: false
|
||||||
login_name: "{{webfaction_user}}"
|
login_name: "{{webfaction_user}}"
|
||||||
login_password: "{{webfaction_passwd}}"
|
login_password: "{{webfaction_passwd}}"
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -27,7 +27,7 @@ notes:
|
||||||
U(https://raw.githubusercontent.com/xapi-project/xen-api/master/scripts/examples/python/XenAPI/XenAPI.py)'
|
U(https://raw.githubusercontent.com/xapi-project/xen-api/master/scripts/examples/python/XenAPI/XenAPI.py)'
|
||||||
- 'If no scheme is specified in I(hostname), module defaults to C(http://) because C(https://) is problematic in most setups. Make sure you are
|
- 'If no scheme is specified in I(hostname), module defaults to C(http://) because C(https://) is problematic in most setups. Make sure you are
|
||||||
accessing XenServer host in trusted environment or use C(https://) scheme explicitly.'
|
accessing XenServer host in trusted environment or use C(https://) scheme explicitly.'
|
||||||
- 'To use C(https://) scheme for I(hostname) you have to either import host certificate to your OS certificate store or use I(validate_certs): C(no)
|
- 'To use C(https://) scheme for I(hostname) you have to either import host certificate to your OS certificate store or use I(validate_certs): C(false)
|
||||||
which requires XenAPI library from XenServer 7.2 SDK or newer and Python 2.7.9 or newer.'
|
which requires XenAPI library from XenServer 7.2 SDK or newer and Python 2.7.9 or newer.'
|
||||||
- 'Network configuration inside a guest OS, by using I(networks.type), I(networks.ip), I(networks.gateway) etc. parameters, is supported on
|
- 'Network configuration inside a guest OS, by using I(networks.type), I(networks.ip), I(networks.gateway) etc. parameters, is supported on
|
||||||
XenServer 7.0 or newer for Windows guests by using official XenServer Guest agent support for network configuration. The module will try to
|
XenServer 7.0 or newer for Windows guests by using official XenServer Guest agent support for network configuration. The module will try to
|
||||||
|
@ -93,7 +93,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Convert VM to template.
|
- Convert VM to template.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
folder:
|
folder:
|
||||||
description:
|
description:
|
||||||
- Destination folder for VM.
|
- Destination folder for VM.
|
||||||
|
@ -253,21 +253,21 @@ options:
|
||||||
description:
|
description:
|
||||||
- VM param name.
|
- VM param name.
|
||||||
type: str
|
type: str
|
||||||
required: yes
|
required: true
|
||||||
value:
|
value:
|
||||||
description:
|
description:
|
||||||
- VM param value.
|
- VM param value.
|
||||||
type: raw
|
type: raw
|
||||||
required: yes
|
required: true
|
||||||
wait_for_ip_address:
|
wait_for_ip_address:
|
||||||
description:
|
description:
|
||||||
- Wait until XenServer detects an IP address for the VM. If I(state) is set to C(absent), this parameter is ignored.
|
- Wait until XenServer detects an IP address for the VM. If I(state) is set to C(absent), this parameter is ignored.
|
||||||
- This requires XenServer Tools to be preinstalled on the VM to work properly.
|
- This requires XenServer Tools to be preinstalled on the VM to work properly.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
state_change_timeout:
|
state_change_timeout:
|
||||||
description:
|
description:
|
||||||
- 'By default, module will wait indefinitely for VM to accquire an IP address if I(wait_for_ip_address): C(yes).'
|
- 'By default, module will wait indefinitely for VM to accquire an IP address if I(wait_for_ip_address): C(true).'
|
||||||
- If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change.
|
- If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change.
|
||||||
- In case of timeout, module will generate an error message.
|
- In case of timeout, module will generate an error message.
|
||||||
type: int
|
type: int
|
||||||
|
@ -277,13 +277,13 @@ options:
|
||||||
- Whether to create a Linked Clone from the template, existing VM or snapshot. If no, will create a full copy.
|
- Whether to create a Linked Clone from the template, existing VM or snapshot. If no, will create a full copy.
|
||||||
- This is equivalent to C(Use storage-level fast disk clone) option in XenCenter.
|
- This is equivalent to C(Use storage-level fast disk clone) option in XenCenter.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- Ignore warnings and complete the actions.
|
- Ignore warnings and complete the actions.
|
||||||
- This parameter is useful for removing VM in running state or reconfiguring VM params that require VM to be shut down.
|
- This parameter is useful for removing VM in running state or reconfiguring VM params that require VM to be shut down.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- community.general.xenserver.documentation
|
- community.general.xenserver.documentation
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@ EXAMPLES = r'''
|
||||||
hostname: "{{ xenserver_hostname }}"
|
hostname: "{{ xenserver_hostname }}"
|
||||||
username: "{{ xenserver_username }}"
|
username: "{{ xenserver_username }}"
|
||||||
password: "{{ xenserver_password }}"
|
password: "{{ xenserver_password }}"
|
||||||
validate_certs: no
|
validate_certs: false
|
||||||
folder: /testvms
|
folder: /testvms
|
||||||
name: testvm_2
|
name: testvm_2
|
||||||
state: poweredon
|
state: poweredon
|
||||||
|
@ -313,7 +313,7 @@ EXAMPLES = r'''
|
||||||
networks:
|
networks:
|
||||||
- name: VM Network
|
- name: VM Network
|
||||||
mac: aa:bb:dd:aa:00:14
|
mac: aa:bb:dd:aa:00:14
|
||||||
wait_for_ip_address: yes
|
wait_for_ip_address: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
register: deploy
|
register: deploy
|
||||||
|
|
||||||
|
@ -322,10 +322,10 @@ EXAMPLES = r'''
|
||||||
hostname: "{{ xenserver_hostname }}"
|
hostname: "{{ xenserver_hostname }}"
|
||||||
username: "{{ xenserver_username }}"
|
username: "{{ xenserver_username }}"
|
||||||
password: "{{ xenserver_password }}"
|
password: "{{ xenserver_password }}"
|
||||||
validate_certs: no
|
validate_certs: false
|
||||||
folder: /testvms
|
folder: /testvms
|
||||||
name: testvm_6
|
name: testvm_6
|
||||||
is_template: yes
|
is_template: true
|
||||||
disk:
|
disk:
|
||||||
- size_gb: 10
|
- size_gb: 10
|
||||||
sr: my_sr
|
sr: my_sr
|
||||||
|
|
|
@ -57,10 +57,10 @@ options:
|
||||||
- Wait until XenServer detects an IP address for the VM.
|
- Wait until XenServer detects an IP address for the VM.
|
||||||
- This requires XenServer Tools to be preinstalled on the VM to work properly.
|
- This requires XenServer Tools to be preinstalled on the VM to work properly.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: false
|
||||||
state_change_timeout:
|
state_change_timeout:
|
||||||
description:
|
description:
|
||||||
- 'By default, module will wait indefinitely for VM to change state or acquire an IP address if C(wait_for_ip_address: yes).'
|
- 'By default, module will wait indefinitely for VM to change state or acquire an IP address if C(wait_for_ip_address: true).'
|
||||||
- If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change.
|
- If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change.
|
||||||
- In case of timeout, module will generate an error message.
|
- In case of timeout, module will generate an error message.
|
||||||
type: int
|
type: int
|
||||||
|
|
Loading…
Reference in a new issue