# Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?

**URL:** <https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783>\
**Category:** Ansible Project\
**Created:** [June 21, 2017, 8:45am UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783 "2017-06-21T08:45:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [June 21, 2017, 8:45am UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/1 "2017-06-21T08:45:56Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 21, 2017, 10:17am UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/2 "2017-06-21T10:17:58Z")

</div>

All changes go through `devel`.

---

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [June 21, 2017, 10:40am UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/3 "2017-06-21T10:40:25Z")

</div>

`

# ansible --version

ansible 2.4.0 (devel d79315e19e) last updated 2017/06/21 08:47:41 (GMT +000)  
config file = /root/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /opt/apps/ansible/lib/ansible  
executable location = /opt/apps/ansible/bin/ansible  
python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

`

Should I raise a bug ?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 21, 2017, 5:04pm UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/4 "2017-06-21T17:04:16Z")

</div>

But in your error you were using (detached from v2.3.1.0-1)?

---

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [June 23, 2017, 8:26am UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/5 "2017-06-23T08:26:54Z")

</div>

Sorry - I haven’t sent any update but after I sent this post did the same test with devel branch and have the same error.  
Raised a bug: [https://github.com/ansible/ansible/issues/25967](https://github.com/ansible/ansible/issues/25967)

---

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [July 4, 2017, 2:00pm UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/6 "2017-07-04T14:00:43Z")

</div>

Anyone experiencing the same bug ? Or not ?

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [July 4, 2017, 2:34pm UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783/7 "2017-07-04T14:34:35Z")

</div>

Perhaps related to :

[https://github.com/ansible/ansible/pull/24768](https://github.com/ansible/ansible/pull/24768)
