# Latest

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

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

**Page:** 602

---

## [Iterate through every group/host pair but won't work with 'groups'](https://forum.ansible.com/t/iterate-through-every-group-host-pair-but-wont-work-with-groups/26192)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 0\
**Last updated:** [December 2, 2017, 6:30pm UTC](https://forum.ansible.com/t/iterate-through-every-group-host-pair-but-wont-work-with-groups/26192 "2017-12-02T18:30:21Z")

</div>

I don’t think Ansible will work with this scenario. I want to iterate through every ansible role and host as a flat index. Right now the groups variable is what I’m focused on. Which is: group0: host0 host1 g…

---

## [Ansible Galaxy pip Dependencies](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190)

<div class="topic-metadata">

**Author:** [@Andrew\_Vaughan](https://forum.ansible.com/u/Andrew_Vaughan)\
**Replies:** 1\
**Last updated:** [December 2, 2017, 3:10pm UTC](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190 "2017-12-02T15:10:06Z")

</div>

Hello all, I have a plugin that’s included with a role I intend for Ansible Galaxy. https://galaxy.ansible.com/andrewvaughan/ansible-prompt/ I need, in this case, to have a Python pip dependency installed in order for…

---

## [generate template once for group of hosts](https://forum.ansible.com/t/generate-template-once-for-group-of-hosts/26191)

<div class="topic-metadata">

**Author:** [@tomr](https://forum.ansible.com/u/tomr)\
**Replies:** 1\
**Last updated:** [December 2, 2017, 5:19am UTC](https://forum.ansible.com/t/generate-template-once-for-group-of-hosts/26191 "2017-12-02T05:19:03Z")

</div>

My understanding is that ansible normally generates a file from a template once per host. Is it possible, when I know in advance that a file will be identical for all hosts in a group, to generate it only once? Thanks, …

---

## [hosts\_vars subdirectories](https://forum.ansible.com/t/hosts-vars-subdirectories/26184)

<div class="topic-metadata">

**Author:** [@Vincent\_G](https://forum.ansible.com/u/Vincent_G)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 11:48pm UTC](https://forum.ansible.com/t/hosts-vars-subdirectories/26184 "2017-12-01T23:48:52Z")

</div>

Hi folks, Is there a way to organize the host\_vars directory into subdirectories ? If not, where to ask for it ? We have a large number of hosts (500+) and our usage actually suffer from this flat organization. I wou…

---

## [block with with\_items for bulk DNS registration of hosts?](https://forum.ansible.com/t/block-with-with-items-for-bulk-dns-registration-of-hosts/26189)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 9:25pm UTC](https://forum.ansible.com/t/block-with-with-items-for-bulk-dns-registration-of-hosts/26189 "2017-12-01T21:25:01Z")

</div>

I have a dictionary of DNS host names that I need to register. They’re higher level than just a host as I need to do cleanup too of older DNS names. My idea was to have a block with a look which first tests via ‘dig’ t…

---

## [Ansible check directory](https://forum.ansible.com/t/ansible-check-directory/26187)

<div class="topic-metadata">

**Author:** [@Bhautik\_K](https://forum.ansible.com/u/Bhautik_K)\
**Replies:** 0\
**Last updated:** [December 1, 2017, 7:45pm UTC](https://forum.ansible.com/t/ansible-check-directory/26187 "2017-12-01T19:45:51Z")

</div>

I have try below task to check if directory is exist but not able to run.

---

## [Compare files on two different remote hosts](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26179)

<div class="topic-metadata">

**Author:** [@jasontapp](https://forum.ansible.com/u/jasontapp)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 4:30pm UTC](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26179 "2017-12-01T16:30:03Z")

</div>

Does anyone know of a way to compare a file that resides on two separate hosts before and/or after a deployment? Meaning, I want to compare foo.conf on host1 against foo.conf on host2. If there are disparities, then list…

---

## [In the code, Socket Path Name is Created, But The Socket Handler File isn't generated](https://forum.ansible.com/t/in-the-code-socket-path-name-is-created-but-the-socket-handler-file-isnt-generated/26171)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 3\
**Last updated:** [December 1, 2017, 12:50pm UTC](https://forum.ansible.com/t/in-the-code-socket-path-name-is-created-but-the-socket-handler-file-isnt-generated/26171 "2017-12-01T12:50:25Z")

</div>

Good morning. I’m trying to develop a network module, but I’ve been stuck here for a few days. I am having a hard time because of the persistent connection code. I have noticed that there was a socket handler file in t…

---

## [Why cannot launch a Job from a Job template by calling the Ansible Tower API on PostMan?](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956)

<div class="topic-metadata">

**Author:** [@leima2046](https://forum.ansible.com/u/leima2046)\
**Replies:** 2\
**Last updated:** [December 1, 2017, 4:49am UTC](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956 "2017-12-01T04:49:28Z")

</div>

I tried to launch a Job from a Job template by calling Ansible Tower API. Took a test on PostMan, turns out the http://ansibletowerhost/api/v2/job\_templates/8/launch/ with POST cannot work correctly. Here 8 is the job t…

---

## [Compare files on two different remote hosts](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26180)

<div class="topic-metadata">

**Author:** [@jasontapp](https://forum.ansible.com/u/jasontapp)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 3:37am UTC](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26180 "2017-12-01T03:37:22Z")

</div>

Does anyone know of a way to compare a file that resides on two separate hosts before and/or after a deployment? Meaning, I want to compare foo.conf on host1 against foo.conf on host2. If there are disparities, then list…

---

## [post\_tasks did not run for all hosts after 1 host failed block in role](https://forum.ansible.com/t/post-tasks-did-not-run-for-all-hosts-after-1-host-failed-block-in-role/26162)

<div class="topic-metadata">

**Author:** [@Daniel\_Leonard](https://forum.ansible.com/u/Daniel_Leonard)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 12:04am UTC](https://forum.ansible.com/t/post-tasks-did-not-run-for-all-hosts-after-1-host-failed-block-in-role/26162 "2017-12-01T00:04:02Z")

</div>

Hi guys, Ran a playbook against 2 hosts: host1 and host2 Extract of playbook: roles: role: a role: b role: c post\_tasks: name: Post Task 1 :::::::::::::::::::::::::: name: Post Task 2 ::::::::::::::::::::::::…

---

## [https](https://forum.ansible.com/t/https/26181)

<div class="topic-metadata">

**Author:** [@Mark\_Constant](https://forum.ansible.com/u/Mark_Constant)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 8:46pm UTC](https://forum.ansible.com/t/https/26181 "2017-11-30T20:46:50Z")

</div>

I can’t seem to get https to work on AWX. I followed a previous post that said they got it working by putting haproxy in front of it. So I ran the command docker run -d --link awx\_web:awx\_web -p 443:443 -e DEFAULT\_SSL\_CE…

---

## [ansible - index counter with "with\_item"](https://forum.ansible.com/t/ansible-index-counter-with-with-item/26177)

<div class="topic-metadata">

**Author:** [@Moris\_Amar](https://forum.ansible.com/u/Moris_Amar)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 7:51pm UTC](https://forum.ansible.com/t/ansible-index-counter-with-with-item/26177 "2017-11-30T19:51:12Z")

</div>

Hi, I want to have a counter (incrementation) in “with\_items” in order to look over a list (index). ec2\_metric\_alarm: … description: ‘{{ item.ec2\_alarm\_description }}’ dimensions: ‘{{item.ec2\_alarm\_dimensions }}’ a…

---

## [500 error when trying to pull Ansible repo into AWX](https://forum.ansible.com/t/500-error-when-trying-to-pull-ansible-repo-into-awx/26178)

<div class="topic-metadata">

**Author:** [@Ben\_Donnaloia](https://forum.ansible.com/u/Ben_Donnaloia)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 7:48pm UTC](https://forum.ansible.com/t/500-error-when-trying-to-pull-ansible-repo-into-awx/26178 "2017-11-30T19:48:58Z")

</div>

I am running AWX on my local machine I have added the git address where my playbooks are stored. git@github.corp.com:DEVOPS/ansibleplaybooks I then added my private key to the credential section. But then when I click…

---

## [how to get all the details](https://forum.ansible.com/t/how-to-get-all-the-details/26148)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 8\
**Last updated:** [November 30, 2017, 5:09pm UTC](https://forum.ansible.com/t/how-to-get-all-the-details/26148 "2017-11-30T17:09:48Z")

</div>

IS there is a way that we can get the name of all network interfaces as we have ansible\_default\_ipv4.interface gives only the primary one . Need to get all the interface name so that a parameter can be modified for it.

---

## [Unable to use vmware\_guest Module](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730)

<div class="topic-metadata">

**Author:** [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Replies:** 12\
**Last updated:** [November 30, 2017, 2:06pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730 "2017-11-30T14:06:01Z")

</div>

Hi all, i´ve got problems running vmware\_guest Module in AWX. I´m also running a test-license for official tower where vmware\_guest module is working as expected (same ansible and python version as awx system) Running…

---

## [Help on vmware\_vm\_shell module](https://forum.ansible.com/t/help-on-vmware-vm-shell-module/26176)

<div class="topic-metadata">

**Author:** [@A.PRADEEP\_ANNAMALAI](https://forum.ansible.com/u/A.PRADEEP_ANNAMALAI)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 12:44pm UTC](https://forum.ansible.com/t/help-on-vmware-vm-shell-module/26176 "2017-11-30T12:44:26Z")

</div>

Hi I am using vmware\_vm\_shell module as below to execute commands in VMs in ESXI hosts . if it is a matter of 2 or 3 esxi servers , it is easier to prepare a yaml list or dictionary as a vars file and use it in the modu…

---

## [Using python functions in ansbile](https://forum.ansible.com/t/using-python-functions-in-ansbile/26175)

<div class="topic-metadata">

**Author:** [@bernienik](https://forum.ansible.com/u/bernienik)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 12:12pm UTC](https://forum.ansible.com/t/using-python-functions-in-ansbile/26175 "2017-11-30T12:12:49Z")

</div>

Hi i wonder in which sittuations python functions can be used in templates, as i have found no infos on this in the documentation. For example this works: name: get some results shell: ls -lrt register: shell\_res …

---

## [AWX/Tower Job Approval](https://forum.ansible.com/t/awx-tower-job-approval/26150)

<div class="topic-metadata">

**Author:** [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Replies:** 2\
**Last updated:** [November 30, 2017, 9:13am UTC](https://forum.ansible.com/t/awx-tower-job-approval/26150 "2017-11-30T09:13:54Z")

</div>

I’ve been trying to look into some sort of job request and approval functionality from any software out there. Similar to Cloudforms/ManageIQ where you can intergrate tower and have users request servers to be provision…

---

## [Seeing glibc not defined error while running ansible-container build](https://forum.ansible.com/t/seeing-glibc-not-defined-error-while-running-ansible-container-build/26174)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 9:00am UTC](https://forum.ansible.com/t/seeing-glibc-not-defined-error-while-running-ansible-container-build/26174 "2017-11-30T09:00:46Z")

</div>

Bug Report container.yml version: ‘2’ settings: conductor\_base: centos:7 services: ansible.play\_container: roles: play\_container ports: “9000:9000” user: play command: \[‘app/xxx/docker-entrypoint.sh’\] regist…

---

## [Seeing glibc is not defined error when running ansible-container build](https://forum.ansible.com/t/seeing-glibc-is-not-defined-error-when-running-ansible-container-build/26173)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 8:57am UTC](https://forum.ansible.com/t/seeing-glibc-is-not-defined-error-when-running-ansible-container-build/26173 "2017-11-30T08:57:18Z")

</div>

Bug Report container.yml version: ‘2’ settings: conductor\_base: centos:7 services: ansible.play\_container: roles: play\_container ports: “9000:9000” user: play command: \[‘app/xxx/docker-entrypoint.sh’\] regist…

---

## [PyCharm & Modules](https://forum.ansible.com/t/pycharm-modules/16635)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 9\
**Last updated:** [November 30, 2017, 6:48am UTC](https://forum.ansible.com/t/pycharm-modules/16635 "2017-11-30T06:48:03Z")

</div>

Hi, Has anyone found a good way to debug ansible modules via the PyCharm debugger? -T

---

## [Metadata for \*groups\*](https://forum.ansible.com/t/metadata-for-groups/26172)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 4:42am UTC](https://forum.ansible.com/t/metadata-for-groups/26172 "2017-11-30T04:42:50Z")

</div>

I have a setup where I have N named elasticsearch clusters. Each cluster has a group in the Ansible configuration. Then I have an haproxy role. The haproxy needs to discovery every group, and whether it’s an ES cluste…

---

## [Ansible 2.4.2 has been released](https://forum.ansible.com/t/ansible-2-4-2-has-been-released/26170)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [November 29, 2017, 9:21pm UTC](https://forum.ansible.com/t/ansible-2-4-2-has-been-released/26170 "2017-11-29T21:21:51Z")

</div>

On behalf of the entire Ansible open source community, we are very happy to announce that Ansible 2.4.2 has been released! This release includes many bugfixes to the 2.4 codebase. For full details, please see the Cha…

---

## [Single Encrypted Value](https://forum.ansible.com/t/single-encrypted-value/26104)

<div class="topic-metadata">

**Author:** [@chris.he.kn](https://forum.ansible.com/u/chris.he.kn)\
**Replies:** 4\
**Last updated:** [November 29, 2017, 7:55pm UTC](https://forum.ansible.com/t/single-encrypted-value/26104 "2017-11-29T19:55:43Z")

</div>

Hi I am trying to add Single Encrypted Values to host variables in AWX - see http://docs.ansible.com/ansible/latest/playbooks\_vault.html. The UI errors with message data : \[object Object\] status : 400 headers : funct…

---

## [Playbook into python](https://forum.ansible.com/t/playbook-into-python/26169)

<div class="topic-metadata">

**Author:** [@Fabio\_Santos](https://forum.ansible.com/u/Fabio_Santos)\
**Replies:** 0\
**Last updated:** [November 29, 2017, 6:27pm UTC](https://forum.ansible.com/t/playbook-into-python/26169 "2017-11-29T18:27:07Z")

</div>

Hi all, I’m newer in ansible, so I made some playbooks (working fine). But now I want to call these playbooks inside python script and record the output from ansible playbook in python variable. How can i do that? See …

---

## [The Difference Between AWX and Ansible Tower Functionality](https://forum.ansible.com/t/the-difference-between-awx-and-ansible-tower-functionality/25930)

<div class="topic-metadata">

**Author:** [@Rizal\_Muttaqin](https://forum.ansible.com/u/Rizal_Muttaqin)\
**Replies:** 1\
**Last updated:** [November 29, 2017, 6:00pm UTC](https://forum.ansible.com/t/the-difference-between-awx-and-ansible-tower-functionality/25930 "2017-11-29T18:00:17Z")

</div>

Hello All, I’m new to Ansible. I’ve read both Ansible Core and Ansible Tower documentations. Just a quick dumb question: What the big difference especially in functionality between AWX as community based version and Tow…

---

## [How to get the extra\_vars from Ansible Callback?](https://forum.ansible.com/t/how-to-get-the-extra-vars-from-ansible-callback/26167)

<div class="topic-metadata">

**Author:** [@Stephane\_Bernier](https://forum.ansible.com/u/Stephane_Bernier)\
**Replies:** 2\
**Last updated:** [November 29, 2017, 3:52pm UTC](https://forum.ansible.com/t/how-to-get-the-extra-vars-from-ansible-callback/26167 "2017-11-29T15:52:02Z")

</div>

Hi, I’m facing an issue with Ansible Callbacks when trying to get the extra\_vars. From the v2\_playbook\_on\_start I’m able to get access to the Playbook object thanks to the play parameter of the method. Unfortunately, …

---

## [anskbile-galaxy install -r requirements/my-play-reqs.yml -p roles/ installs roles in /etc/ansible/roles instead of /path\_to\_playbooks/roles?](https://forum.ansible.com/t/anskbile-galaxy-install-r-requirements-my-play-reqs-yml-p-roles-installs-roles-in-etc-ansible-roles-instead-of-path-to-playbooks-roles/26166)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [November 29, 2017, 3:22pm UTC](https://forum.ansible.com/t/anskbile-galaxy-install-r-requirements-my-play-reqs-yml-p-roles-installs-roles-in-etc-ansible-roles-instead-of-path-to-playbooks-roles/26166 "2017-11-29T15:22:00Z")

</div>

I have the following directory structure. The my-play-reqs.yml file contains the roles that I need for the my-play.yml playbook. /path\_to\_playbooks/my-play.yml /path\_to\_playbooks/requirements/my-play-reqs.yml …and I ru…

---

## [ERROR for unarchive module with password protected file](https://forum.ansible.com/t/error-for-unarchive-module-with-password-protected-file/26164)

<div class="topic-metadata">

**Author:** [@Sandeep\_Panchal1](https://forum.ansible.com/u/Sandeep_Panchal1)\
**Replies:** 1\
**Last updated:** [November 29, 2017, 2:37pm UTC](https://forum.ansible.com/t/error-for-unarchive-module-with-password-protected-file/26164 "2017-11-29T14:37:19Z")

</div>

Hi All, i am trying to use unarchive module to extract a password protected zip file, using extra\_opts option but unable to achieve it. Is it really supported by unarchive module or not ? below is snippet what i tried…

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

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