Hi all,
I am trying to use Ansible vmware_guest module to clone template to VM but having the following issue:
`
fatal: [localhost → localhost]: FAILED! => {
“changed”: true,
“failed”: true,
“invocation”: {
“module_args”: {
“annotation”: null,
“cluster”: “vcenter_cluster”,
“customization”: {
“dns_servers”: [
“VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”
],
“dns_suffix”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“domain”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“runonce”: [
“VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”
]
},
“customvalues”: ,
“datacenter”: “UK3”,
“disk”: [
{
“autoselect_datastore”: true,
“size_gb”: 60,
“type”: “thin”
},
{
“autoselect_datastore”: true,
“size_gb”: 60,
“type”: “thin”
}
],
“esxi_hostname”: null,
“folder”: “/vm”,
“force”: false,
“guest_id”: null,
“hardware”: {
“memory_mb”: 4096,
“num_cpus”: 2
},
“hostname”: “vcenter_host.********”,
“is_template”: false,
“linked_clone”: false,
“name”: “my_new_vm”,
“name_match”: “first”,
“networks”: [
{
“gateway”: “10.x.x.1”,
“ip”: “10.x.x.y”,
“name”: “some_name”,
“netmask”: “255.255.255.0”
}
],
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“resource_pool”: null,
“snapshot_src”: null,
“state”: “present”,
“template”: “my_template”,
“username”: “my_user”,
“uuid”: null,
“validate_certs”: false,
“wait_for_ip_address”: false
}
}
}
MSG:
A specified parameter was not correct.
spec.location.host
`
It is supposed to be fixed in https://github.com/ansible/ansible/pull/24768 as it says that:
"jctanner merged 13 commits into ansible:devel from dagwieers:patch-44 7 days ago".
I installed Ansible yesterday using git clone from github so the fix should be there:
`
git branch -a
- (detached from v2.3.1.0-1)
devel
remotes/origin/2.2-test
remotes/origin/HEAD → origin/devel
remotes/origin/additional_security_fixes
remotes/origin/changelog-fix
remotes/origin/devel
remotes/origin/devel_dasmerge
remotes/origin/developer_docs
remotes/origin/fix_block_iteration_bug
remotes/origin/fix_playiterator_bug
remotes/origin/imports_and_includes
remotes/origin/issue_20063_jinja2_context_29
remotes/origin/issue_20508_fixing_templated_delegate_to
remotes/origin/issue_21084_hostvars_undefined_fix
remotes/origin/issue_21340
remotes/origin/issue_21845_var_precedence_fixes
remotes/origin/issue_23579_memory
remotes/origin/issue_24301_always_not_triggered
remotes/origin/issue_24650_template_loop_control
remotes/origin/module_utils_commmon_loading
remotes/origin/perf_improvement_ini_parsing
remotes/origin/release1.5.0
remotes/origin/release1.5.1
remotes/origin/release1.5.2
remotes/origin/release1.5.3
remotes/origin/release1.5.4
remotes/origin/release1.5.5
remotes/origin/release1.6.0
remotes/origin/release1.6.1
remotes/origin/release1.6.10
remotes/origin/release1.6.2
remotes/origin/release1.6.3
remotes/origin/release1.6.4
remotes/origin/release1.6.5
remotes/origin/release1.6.6
remotes/origin/release1.6.7
remotes/origin/release1.6.8
remotes/origin/release1.6.9
remotes/origin/release1.7.0
remotes/origin/release1.7.1
remotes/origin/release1.7.2
remotes/origin/release1.8.0
remotes/origin/release1.8.1
remotes/origin/release1.8.2
remotes/origin/release1.8.3
remotes/origin/release1.8.4
remotes/origin/reworking_role_end_detection
remotes/origin/stable-1.9
remotes/origin/stable-2.0
remotes/origin/stable-2.0-network
remotes/origin/stable-2.0.0.1
remotes/origin/stable-2.1
remotes/origin/stable-2.2
remotes/origin/stable-2.3
remotes/origin/stal
remotes/origin/stash_task_fields_for_task_result
remotes/origin/threading_instead_of_forking
remotes/origin/variable_manager_redux
`
What tag/branch should I use to have the fixed code running ?
Best regards