vmware_vm_shell: doc: add missing defaults
This commit is contained in:
parent
378707e1f7
commit
9e05fc35ea
1 changed files with 7 additions and 2 deletions
|
@ -38,11 +38,13 @@ options:
|
||||||
- The datacenter hosting the VM
|
- The datacenter hosting the VM
|
||||||
- Will help speed up search
|
- Will help speed up search
|
||||||
required: False
|
required: False
|
||||||
|
default: None
|
||||||
cluster:
|
cluster:
|
||||||
description:
|
description:
|
||||||
- The cluster hosting the VM
|
- The cluster hosting the VM
|
||||||
- Will help speed up search
|
- Will help speed up search
|
||||||
required: False
|
required: False
|
||||||
|
default: None
|
||||||
vm_id:
|
vm_id:
|
||||||
description:
|
description:
|
||||||
- The identification for the VM
|
- The identification for the VM
|
||||||
|
@ -57,21 +59,24 @@ options:
|
||||||
- 'inventory_path'
|
- 'inventory_path'
|
||||||
- 'vm_name'
|
- 'vm_name'
|
||||||
required: False
|
required: False
|
||||||
|
default: None
|
||||||
vm_username:
|
vm_username:
|
||||||
description:
|
description:
|
||||||
- The user to connect to the VM.
|
- The user to connect to the VM.
|
||||||
required: False
|
required: False
|
||||||
|
default: None
|
||||||
vm_password:
|
vm_password:
|
||||||
description:
|
description:
|
||||||
- The password used to login to the VM.
|
- The password used to login to the VM.
|
||||||
required: False
|
required: False
|
||||||
|
default: None
|
||||||
vm_shell:
|
vm_shell:
|
||||||
description:
|
description:
|
||||||
- The absolute path to the program to start. On Linux this is executed via bash.
|
- The absolute path to the program to start. On Linux this is executed via bash.
|
||||||
required: True
|
required: True
|
||||||
vm_shell_args:
|
vm_shell_args:
|
||||||
description:
|
description:
|
||||||
- The argument to the program.
|
- The argument to the program.
|
||||||
required: False
|
required: False
|
||||||
default: None
|
default: None
|
||||||
vm_shell_env:
|
vm_shell_env:
|
||||||
|
@ -164,7 +169,7 @@ def main():
|
||||||
if not vm:
|
if not vm:
|
||||||
module.fail_json(msg='VM not found')
|
module.fail_json(msg='VM not found')
|
||||||
|
|
||||||
msg = execute_command(content, vm, p['vm_username'], p['vm_password'],
|
msg = execute_command(content, vm, p['vm_username'], p['vm_password'],
|
||||||
p['vm_shell'], p['vm_shell_args'], p['vm_shell_env'], p['vm_shell_cwd'])
|
p['vm_shell'], p['vm_shell_args'], p['vm_shell_env'], p['vm_shell_cwd'])
|
||||||
|
|
||||||
module.exit_json(changed=True, uuid=vm.summary.config.uuid, msg=msg)
|
module.exit_json(changed=True, uuid=vm.summary.config.uuid, msg=msg)
|
||||||
|
|
Loading…
Reference in a new issue