# Latest

**URL:** https://forum.ansible.com/latest.md?page=685

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 686

---

## [Using dvPortGroups when using vmware\_guest](https://forum.ansible.com/t/using-dvportgroups-when-using-vmware-guest/23717)

<div class="topic-metadata">

**Author:** [@Juan\_Lage](https://forum.ansible.com/u/Juan_Lage)\
**Replies:** 0\
**Last updated:** [February 13, 2017, 1:26pm UTC](https://forum.ansible.com/t/using-dvportgroups-when-using-vmware-guest/23717 "2017-02-13T13:26:27Z")

</div>

Hello, I had been using the vsphere\_guest module where I could specify a VDS network type to attach a NIC: vm\_nic: nic1: type: vmxnet3 network: VM Network network\_type: standard nic2…

---

## [cross-role notifications](https://forum.ansible.com/t/cross-role-notifications/23713)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 8\
**Last updated:** [February 12, 2017, 7:35pm UTC](https://forum.ansible.com/t/cross-role-notifications/23713 "2017-02-12T19:35:21Z")

</div>

HI! In the spirit of encapsulation I've implemented different roles installing different components. Now the roles also ensure that OS packages (.deb or .rpm) and specific Python modules (pip install) are installed …

---

## [Create variable as dict using jinja2 within playbook](https://forum.ansible.com/t/create-variable-as-dict-using-jinja2-within-playbook/16565)

<div class="topic-metadata">

**Author:** [@Anth\_Courtney](https://forum.ansible.com/u/Anth_Courtney)\
**Replies:** 8\
**Last updated:** [February 11, 2017, 7:34pm UTC](https://forum.ansible.com/t/create-variable-as-dict-using-jinja2-within-playbook/16565 "2017-02-11T19:34:39Z")

</div>

Hello there, Is it possible to create a variable which is a dict using jinja2 within a playbook? For example, I have the following (contrived) playbook, within which I am trying to create a ‘host\_info’ dict which I can…

---

## [How to iterate over below hash](https://forum.ansible.com/t/how-to-iterate-over-below-hash/23710)

<div class="topic-metadata">

**Author:** [@D11](https://forum.ansible.com/u/D11)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 3:00pm UTC](https://forum.ansible.com/t/how-to-iterate-over-below-hash/23710 "2017-02-11T15:00:13Z")

</div>

Hello, I am new to ansible, i have requirement. vars: locations: - parentlocation: A childlocation: - a1 - a2 - a3 - parentlocation: B childlocation: - b1 - b2 - b3 No…

---

## [url content truncated](https://forum.ansible.com/t/url-content-truncated/23707)

<div class="topic-metadata">

**Author:** [@Cool\_Coder](https://forum.ansible.com/u/Cool_Coder)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 2:29pm UTC](https://forum.ansible.com/t/url-content-truncated/23707 "2017-02-11T14:29:55Z")

</div>

I’m trying to retrieve the vCloud vApp template via URI module using vCloud REST API and see the returned xml content is truncated and occasionally see the full XML being returned but most of the times the XML is truncat…

---

## [How to create an unprivileged user and intialize its GPG config?](https://forum.ansible.com/t/how-to-create-an-unprivileged-user-and-intialize-its-gpg-config/23695)

<div class="topic-metadata">

**Author:** [@Gabriel\_Birke](https://forum.ansible.com/u/Gabriel_Birke)\
**Replies:** 4\
**Last updated:** [February 11, 2017, 9:52am UTC](https://forum.ansible.com/t/how-to-create-an-unprivileged-user-and-intialize-its-gpg-config/23695 "2017-02-11T09:52:43Z")

</div>

I’d like to create a user and import a GPG key into its GPG keychain. I thought the easiest way to do this would be to impersonate him, so the configuration and key files created by the gpg tool have the right onwership …

---

## [Ansible execution workflow](https://forum.ansible.com/t/ansible-execution-workflow/22254)

<div class="topic-metadata">

**Author:** [@knowshan](https://forum.ansible.com/u/knowshan)\
**Replies:** 2\
**Last updated:** [February 11, 2017, 7:33am UTC](https://forum.ansible.com/t/ansible-execution-workflow/22254 "2017-02-11T07:33:53Z")

</div>

I was wondering if there is any documentation available that describes how Ansible works or provides any architecture diagram. I am assuming general steps in Ansible execution are: Establish SSH connection with a remot…

---

## [uri module not returning full content](https://forum.ansible.com/t/uri-module-not-returning-full-content/23706)

<div class="topic-metadata">

**Author:** [@Cool\_Coder](https://forum.ansible.com/u/Cool_Coder)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 7:00am UTC](https://forum.ansible.com/t/uri-module-not-returning-full-content/23706 "2017-02-11T07:00:27Z")

</div>

I’m trying to get the vcloud vApp information using ansible URI module to access the vCloud REST API’s and see that the returned content doesnt have the full XML. I occasionally saw the full XML being returned but most o…

---

## [How to install  Huawei CloudEngine Ansible library ?](https://forum.ansible.com/t/how-to-install-huawei-cloudengine-ansible-library/23705)

<div class="topic-metadata">

**Author:** [@Cesar\_Rodriguez](https://forum.ansible.com/u/Cesar_Rodriguez)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 1:45am UTC](https://forum.ansible.com/t/how-to-install-huawei-cloudengine-ansible-library/23705 "2017-02-11T01:45:58Z")

</div>

Hi, I am currently working on a project to automate network devices configuration with ansible, but I can’t find the way to install the Huawei CloudEngine Ansible library. ;c Ansible Network Module http://docs.ansible.…

---

## [creating multiple ec2 instances with different tag names](https://forum.ansible.com/t/creating-multiple-ec2-instances-with-different-tag-names/21585)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 8:10pm UTC](https://forum.ansible.com/t/creating-multiple-ec2-instances-with-different-tag-names/21585 "2017-02-10T20:10:18Z")

</div>

What’s the best way to create multiple ec2 instances with all different name tags. So say I do a count=3 and tag each one but i want each of the tagName =

---

## [Want to work on issue #17329, need help to proceed.](https://forum.ansible.com/t/want-to-work-on-issue-17329-need-help-to-proceed/23701)

<div class="topic-metadata">

**Author:** [@Ankit\_Yadav](https://forum.ansible.com/u/Ankit_Yadav)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 7:47pm UTC](https://forum.ansible.com/t/want-to-work-on-issue-17329-need-help-to-proceed/23701 "2017-02-10T19:47:28Z")

</div>

HI everyone, I am Ankit, a final year computer engineering student. I wanted to work on the issue #17329. I am familiar with python. I will appreciate any guidance to solve this issue. Regards, Ankit Yadav.

---

## [Contributing new features into the win\_get\_url core module](https://forum.ansible.com/t/contributing-new-features-into-the-win-get-url-core-module/23629)

<div class="topic-metadata">

**Author:** [@Edit\_Karasz](https://forum.ansible.com/u/Edit_Karasz)\
**Replies:** 3\
**Last updated:** [February 10, 2017, 6:38pm UTC](https://forum.ansible.com/t/contributing-new-features-into-the-win-get-url-core-module/23629 "2017-02-10T18:38:22Z")

</div>

Hi, I have extended the win\_get\_url Ansible module with some new features for my own purposes and I am wondering how can I contribute it back? My local version is: able to download a directory with subdirectories/fil…

---

## [Ansible and Proxy Authentication](https://forum.ansible.com/t/ansible-and-proxy-authentication/17445)

<div class="topic-metadata">

**Author:** [@titleistfour](https://forum.ansible.com/u/titleistfour)\
**Replies:** 4\
**Last updated:** [February 10, 2017, 5:03pm UTC](https://forum.ansible.com/t/ansible-and-proxy-authentication/17445 "2017-02-10T17:03:05Z")

</div>

Hello, I’m having some trouble getting proxy authentication to work in Ansible. I have a simple playbook I’m using to test with the uri module and a remote REST API service. hosts: localhost connection: localhost va…

---

## [Output Failed even if command gets executed successfully](https://forum.ansible.com/t/output-failed-even-if-command-gets-executed-successfully/23644)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 5\
**Last updated:** [February 10, 2017, 4:30pm UTC](https://forum.ansible.com/t/output-failed-even-if-command-gets-executed-successfully/23644 "2017-02-10T16:30:51Z")

</div>

How to ignore failed command or in case the result set has no output. I need the output should be success if it won’t find anything relevant mentioned in the condition. /usr/bin/ansible node1 -a “grep ‘value1’ /tmp/test…

---

## [How to control access with sudo and FreeIPA](https://forum.ansible.com/t/how-to-control-access-with-sudo-and-freeipa/23531)

<div class="topic-metadata">

**Author:** [@Rodrigo\_B\_Brasil](https://forum.ansible.com/u/Rodrigo_B_Brasil)\
**Replies:** 3\
**Last updated:** [February 10, 2017, 2:16pm UTC](https://forum.ansible.com/t/how-to-control-access-with-sudo-and-freeipa/23531 "2017-02-10T14:16:45Z")

</div>

Hello all! I’m trying to establish some access control when non-administrative user were running playbooks with Ansible. All the sudo rules are inherited from FreeIPA and now my only option is to create a sudo rule tha…

---

## [My domain proxy requires user name and password, How to configure it in Ansible Play](https://forum.ansible.com/t/my-domain-proxy-requires-user-name-and-password-how-to-configure-it-in-ansible-play/23703)

<div class="topic-metadata">

**Author:** [@Dwarika\_Prasad](https://forum.ansible.com/u/Dwarika_Prasad)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 12:55pm UTC](https://forum.ansible.com/t/my-domain-proxy-requires-user-name-and-password-how-to-configure-it-in-ansible-play/23703 "2017-02-10T12:55:56Z")

</div>

Hi, My domain proxy requires user name and password, How to configure it in Ansible Play I have configured the proxy in my playbook as below - vars: proxy\_env: http\_proxy: webproxy.mydomain.com:8080 But I can’t fin…

---

## [vault and git do not mix](https://forum.ansible.com/t/vault-and-git-do-not-mix/23607)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 9\
**Last updated:** [February 10, 2017, 12:47pm UTC](https://forum.ansible.com/t/vault-and-git-do-not-mix/23607 "2017-02-10T12:47:03Z")

</div>

I can’t be the only one having this problem: We’re using vault files to store sensitive info (such as passwords or private keys). Vault files, along with Ansible playbooks, roles, inventories, etc are checked into GitHu…

---

## [tests: Run integration tests on PRs for CloudStack](https://forum.ansible.com/t/tests-run-integration-tests-on-prs-for-cloudstack/23524)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [February 10, 2017, 12:15pm UTC](https://forum.ansible.com/t/tests-run-integration-tests-on-prs-for-cloudstack/23524 "2017-02-10T12:15:02Z")

</div>

Hi I am not sure if this fits onto the devel ML, so if there is a better place to discuss it, let me know. I've worked on the automated integration testing for cloudstack modules and just wanted to get some feedback …

---

## [Pull mode best practices and tooling?](https://forum.ansible.com/t/pull-mode-best-practices-and-tooling/23700)

<div class="topic-metadata">

**Author:** [@Danny](https://forum.ansible.com/u/Danny)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 5:13am UTC](https://forum.ansible.com/t/pull-mode-best-practices-and-tooling/23700 "2017-02-10T05:13:19Z")

</div>

Hi, I’m testing out Ansible and although I see ansible-pull mentioned in a lot of different resources, it looks pretty bare-bones (which I guess is kind of the point). I’m wondering what people’s experience has been like…

---

## [Conditional continues to monitor result.  Bug or Feature?](https://forum.ansible.com/t/conditional-continues-to-monitor-result-bug-or-feature/22712)

<div class="topic-metadata">

**Author:** [@Mike\_Schlottman](https://forum.ansible.com/u/Mike_Schlottman)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:58am UTC](https://forum.ansible.com/t/conditional-continues-to-monitor-result-bug-or-feature/22712 "2017-02-10T03:58:03Z")

</div>

I have a playbook that checks to see if ansible can ssh to a VM. If it cannot, it assigns a role of deploy\_vm\_from\_template to the host. During the process of deploying the VM the host gets booted, the network is configu…

---

## [Var of var in Ansible Playbook](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22308)

<div class="topic-metadata">

**Author:** [@Saad](https://forum.ansible.com/u/Saad)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:47am UTC](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22308 "2017-02-10T03:47:19Z")

</div>

Hello, i try to do a var of var in a playbook on Ansible but i can’t figure out how to do this proprly, or if it is even possible ? here is what i try to do : "name : {{ groups\['{{ ANOTHER\_VAR\_HERE }}'\]\[0\] }}" Ansibl…

---

## [How to run local play with remote inventory?](https://forum.ansible.com/t/how-to-run-local-play-with-remote-inventory/22388)

<div class="topic-metadata">

**Author:** [@Daniel\_Q\_Miranda](https://forum.ansible.com/u/Daniel_Q_Miranda)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:45am UTC](https://forum.ansible.com/t/how-to-run-local-play-with-remote-inventory/22388 "2017-02-10T03:45:31Z")

</div>

Greetings, I’m using Ansible 2.1.1.0 to manage EC2 hosts, with the ec2.py inventory script. I want to run a play locally that uses the EC2 inventory to generate configuration, but I’m having some trouble. If I use: ho…

---

## [How to  do password management](https://forum.ansible.com/t/how-to-do-password-management/23213)

<div class="topic-metadata">

**Author:** [@Dave\_B](https://forum.ansible.com/u/Dave_B)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:41am UTC](https://forum.ansible.com/t/how-to-do-password-management/23213 "2017-02-10T03:41:00Z")

</div>

Hi Struggling to get my head around this. According to the best practices, I’ve put the root password for all the vms in a vault encrypted file, and the variables are vault\_ prefixed as suggested in http://docs.ansible.…

---

## [From within a role, call another role and pass variables at runtime?](https://forum.ansible.com/t/from-within-a-role-call-another-role-and-pass-variables-at-runtime/22968)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:37am UTC](https://forum.ansible.com/t/from-within-a-role-call-another-role-and-pass-variables-at-runtime/22968 "2017-02-10T03:37:21Z")

</div>

Hello - Can Ansible call a role from within another role, as if it’s calling a function? Could that other role be passed certain variables at runtime? I have a few tasks that are repeated several times in my plays. Rig…

---

## [How to use "add\_host" (or "group\_by" and/or "set\_facts") to dynamically add new hosts to existing/new groups in the playbook inventory (to running play or play's following it in the same run)?](https://forum.ansible.com/t/how-to-use-add-host-or-group-by-and-or-set-facts-to-dynamically-add-new-hosts-to-existing-new-groups-in-the-playbook-inventory-to-running-play-or-plays-following-it-in-the-same-run/23003)

<div class="topic-metadata">

**Author:** [@LXC-dev\_Koha-Lappi](https://forum.ansible.com/u/LXC-dev_Koha-Lappi)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:36am UTC](https://forum.ansible.com/t/how-to-use-add-host-or-group-by-and-or-set-facts-to-dynamically-add-new-hosts-to-existing-new-groups-in-the-playbook-inventory-to-running-play-or-plays-following-it-in-the-same-run/23003 "2017-02-10T03:36:10Z")

</div>

As suggested by @jimi-c (https://github.com/jimi-c), I post here the follow-up discussion of this ticket: https://github.com/ansible/ansible/issues/6912, which concerns the inability and issues to use add\_host or group\_b…

---

## [Clean unused images with Docker Container / Image Module](https://forum.ansible.com/t/clean-unused-images-with-docker-container-image-module/23619)

<div class="topic-metadata">

**Author:** [@Denis\_Chekirda](https://forum.ansible.com/u/Denis_Chekirda)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:30am UTC](https://forum.ansible.com/t/clean-unused-images-with-docker-container-image-module/23619 "2017-02-10T03:30:32Z")

</div>

Hi, are there any information how we could clean / remove unused images from servers after deploy of new docker container with docker\_container mode? Currently i’m interesting in module usage with any shell. Are those…

---

## [Using variable substitution with replace module and regex](https://forum.ansible.com/t/using-variable-substitution-with-replace-module-and-regex/22180)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:29am UTC](https://forum.ansible.com/t/using-variable-substitution-with-replace-module-and-regex/22180 "2017-02-10T03:29:49Z")

</div>

Hi, I have two register variable in a play and want to replace one with another in a play.

---

## [Host classification problem](https://forum.ansible.com/t/host-classification-problem/22162)

<div class="topic-metadata">

**Author:** [@Jan\_Jungmann](https://forum.ansible.com/u/Jan_Jungmann)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:27am UTC](https://forum.ansible.com/t/host-classification-problem/22162 "2017-02-10T03:27:52Z")

</div>

Hi all, I am having a problem with host classification. In my hosts file i have a “nodejs:children” group with application “foo”. “foo” has server-a. In site.yml I use hosts: nodejs:&{{ application }} and assign a role.…

---

## ["ansible-vault edit" with vi - how to force writing?](https://forum.ansible.com/t/ansible-vault-edit-with-vi-how-to-force-writing/22202)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:24am UTC](https://forum.ansible.com/t/ansible-vault-edit-with-vi-how-to-force-writing/22202 "2017-02-10T03:24:27Z")

</div>

Hi I'm using "ansible-vault edit" to edit an encrypted vars file, using the default editor, which is vi. While working on the file, I routinely save it from vi (using ':w'), but noticed that the changes were written …

---

## [Please help with these error](https://forum.ansible.com/t/please-help-with-these-error/22237)

<div class="topic-metadata">

**Author:** [@Bob\_Benson](https://forum.ansible.com/u/Bob_Benson)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:23am UTC](https://forum.ansible.com/t/please-help-with-these-error/22237 "2017-02-10T03:23:19Z")

</div>

agrant@mgmt:/vagrant$ ansible-playbook e45-ssh-addkey.yml -vvvvv Using /vagrant/ansible.cfg as config file ERROR! Unexpected Exception: dictionary update sequence element #0 has length 3; 2 is required the full traceb…

[Previous page](https://forum.ansible.com/latest.md?page=684)

[Next page](https://forum.ansible.com/latest.md?page=686)
