|
|
@ -25,147 +25,123 @@ description:
|
|
|
|
version_added: "2.0"
|
|
|
|
version_added: "2.0"
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
username:
|
|
|
|
username:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The vca username or email address, if not set the environment variable VCA_USER is checked for the username.
|
|
|
|
- The vca username or email address, if not set the environment variable VCA_USER is checked for the username.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The vca password, if not set the environment variable VCA_PASS is checked for the password
|
|
|
|
- The vca password, if not set the environment variable VCA_PASS is checked for the password
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
org:
|
|
|
|
org:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The org to login to for creating vapp, mostly set when the service_type is vdc.
|
|
|
|
- The org to login to for creating vapp, mostly set when the service_type is vdc.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
service_id:
|
|
|
|
service_id:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The service id in a vchs environment to be used for creating the vapp
|
|
|
|
- The service id in a vchs environment to be used for creating the vapp
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
host:
|
|
|
|
host:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The authentication host to be used when service type is vcd.
|
|
|
|
- The authentication host to be used when service type is vcd.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
api_version:
|
|
|
|
api_version:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The api version to be used with the vca
|
|
|
|
- The api version to be used with the vca
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: "5.7"
|
|
|
|
default: "5.7"
|
|
|
|
service_type:
|
|
|
|
service_type:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The type of service we are authenticating against
|
|
|
|
- The type of service we are authenticating against
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: vca
|
|
|
|
default: vca
|
|
|
|
choices: [ "vca", "vchs", "vcd" ]
|
|
|
|
choices: [ "vca", "vchs", "vcd" ]
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- if the object should be added or removed
|
|
|
|
- if the object should be added or removed
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: present
|
|
|
|
default: present
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
catalog_name:
|
|
|
|
catalog_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The catalog from which the vm template is used.
|
|
|
|
- The catalog from which the vm template is used.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: "Public Catalog"
|
|
|
|
default: "Public Catalog"
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The path to script that gets injected to vm during creation.
|
|
|
|
- The path to script that gets injected to vm during creation.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: "Public Catalog"
|
|
|
|
default: "Public Catalog"
|
|
|
|
template_name:
|
|
|
|
template_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The template name from which the vm should be created.
|
|
|
|
- The template name from which the vm should be created.
|
|
|
|
required: True
|
|
|
|
required: True
|
|
|
|
network_name:
|
|
|
|
network_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The network name to which the vm should be attached.
|
|
|
|
- The network name to which the vm should be attached.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: 'None'
|
|
|
|
default: 'None'
|
|
|
|
network_ip:
|
|
|
|
network_ip:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The ip address that should be assigned to vm when the ip assignment type is static
|
|
|
|
- The ip address that should be assigned to vm when the ip assignment type is static
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
network_mode:
|
|
|
|
network_mode:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The network mode in which the ip should be allocated.
|
|
|
|
- The network mode in which the ip should be allocated.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: pool
|
|
|
|
default: pool
|
|
|
|
choices: [ "pool", "dhcp", 'static' ]
|
|
|
|
choices: [ "pool", "dhcp", 'static' ]
|
|
|
|
instance_id::
|
|
|
|
instance_id::
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The instance id of the region in vca flavour where the vm should be created
|
|
|
|
- The instance id of the region in vca flavour where the vm should be created
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
wait:
|
|
|
|
wait:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If the module should wait if the operation is poweroff or poweron, is better to wait to report the right state.
|
|
|
|
- If the module should wait if the operation is poweroff or poweron, is better to wait to report the right state.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: True
|
|
|
|
default: True
|
|
|
|
wait_timeout:
|
|
|
|
wait_timeout:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The wait timeout when wait is set to true
|
|
|
|
- The wait timeout when wait is set to true
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: 250
|
|
|
|
default: 250
|
|
|
|
vdc_name:
|
|
|
|
vdc_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the vdc where the vm should be created.
|
|
|
|
- The name of the vdc where the vm should be created.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
vm_name:
|
|
|
|
vm_name:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the vm to be created, the vapp is named the same as the vapp name
|
|
|
|
- The name of the vm to be created, the vapp is named the same as the vapp name
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: 'default_ansible_vm1'
|
|
|
|
default: 'default_ansible_vm1'
|
|
|
|
vm_cpus:
|
|
|
|
vm_cpus:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The number if cpus to be added to the vm
|
|
|
|
- The number if cpus to be added to the vm
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
vm_memory:
|
|
|
|
vm_memory:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The amount of memory to be added to vm in megabytes
|
|
|
|
- The amount of memory to be added to vm in megabytes
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
verify_certs:
|
|
|
|
verify_certs:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If the certificates of the authentication is to be verified
|
|
|
|
- If the certificates of the authentication is to be verified
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: True
|
|
|
|
default: True
|
|
|
|
admin_password:
|
|
|
|
admin_password:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The password to be set for admin
|
|
|
|
- The password to be set for admin
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
operation:
|
|
|
|
operation:
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The operation to be done on the vm
|
|
|
|
- The operation to be done on the vm
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|