# Latest

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

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

**Page:** 675

---

## [Looping over subelements](https://forum.ansible.com/t/looping-over-subelements/24000)

<div class="topic-metadata">

**Author:** [@Jason\_Allen](https://forum.ansible.com/u/Jason_Allen)\
**Replies:** 2\
**Last updated:** [March 22, 2017, 5:52pm UTC](https://forum.ansible.com/t/looping-over-subelements/24000 "2017-03-22T17:52:31Z")

</div>

Hello, I’m unable to get the “looping over subelements” example on this page: http://docs.ansible.com/ansible/playbooks\_loops.html#looping-over-subelements to work. Specifically, when I copy-and-paste “users” into my …

---

## [Automating The Install of Ansible Tower](https://forum.ansible.com/t/automating-the-install-of-ansible-tower/24023)

<div class="topic-metadata">

**Author:** [@Fred\_Ferguson](https://forum.ansible.com/u/Fred_Ferguson)\
**Replies:** 2\
**Last updated:** [March 22, 2017, 5:35pm UTC](https://forum.ansible.com/t/automating-the-install-of-ansible-tower/24023 "2017-03-22T17:35:19Z")

</div>

Hello, I’m in the process of writing an Ansible Playbook that will install and setup Ansible Tower 3.1.1. Everything so far is ok in that I can get Ansible Tower installed, but after that I become reliant on the GUI for…

---

## [Ansible 2.2.1 - Module pause : Strange Behavior](https://forum.ansible.com/t/ansible-2-2-1-module-pause-strange-behavior/24022)

<div class="topic-metadata">

**Author:** [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Replies:** 7\
**Last updated:** [March 22, 2017, 10:24am UTC](https://forum.ansible.com/t/ansible-2-2-1-module-pause-strange-behavior/24022 "2017-03-22T10:24:36Z")

</div>

Hello I just encountered a special use case of the module ‘pause’ that seems strange to me. It seems that this module is executed only for the first host of the playbook. I woul’d like to run a pause task inside a blo…

---

## [Extracting list of values from a list of list of dictionaries](https://forum.ansible.com/t/extracting-list-of-values-from-a-list-of-list-of-dictionaries/24031)

<div class="topic-metadata">

**Author:** [@Ahmed\_Kamel](https://forum.ansible.com/u/Ahmed_Kamel)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 10:04am UTC](https://forum.ansible.com/t/extracting-list-of-values-from-a-list-of-list-of-dictionaries/24031 "2017-03-22T10:04:17Z")

</div>

Hello, I have a command running a loop through with items and I get a registered result like the following structure: { "changed": false, "msg": "All items completed", "results": \[ { "ma…

---

## [Package branch specification in openbsd\_pkg module vs. package module](https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [March 22, 2017, 9:25am UTC](https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402 "2017-03-22T09:25:49Z")

</div>

Greetings, Attempting to understand why this difference exists installing a package on OpenBSD 6.0 using the more general 'package' module vs. the underlying installer module 'openbsd\_pkg'. The package is given in fo…

---

## [Ansible copy file on remote machines on different location.](https://forum.ansible.com/t/ansible-copy-file-on-remote-machines-on-different-location/23873)

<div class="topic-metadata">

**Author:** [@niraj\_pandey](https://forum.ansible.com/u/niraj_pandey)\
**Replies:** 4\
**Last updated:** [March 22, 2017, 8:31am UTC](https://forum.ansible.com/t/ansible-copy-file-on-remote-machines-on-different-location/23873 "2017-03-22T08:31:46Z")

</div>

down votefavorite | How can I copy a file from machine A to machine B and machine C on different location. ie: On machine A I have file abc and I want to copy it on the /tmp area of machine B and /opt area of…

---

## [NoneType attribute issue on vmware\_guest module](https://forum.ansible.com/t/nonetype-attribute-issue-on-vmware-guest-module/24030)

<div class="topic-metadata">

**Author:** [@lupindeterd](https://forum.ansible.com/u/lupindeterd)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 8:14am UTC](https://forum.ansible.com/t/nonetype-attribute-issue-on-vmware-guest-module/24030 "2017-03-22T08:14:33Z")

</div>

Hi, I want to use ansible to provision my vm from template using the vmware\_guest module but I get the following error on subject. Below is the snippet of the playbook and the output/error. TIA, Lupin ##### pla…

---

## [Not able to access snapshot\_id, created using module ec2\_snapshot](https://forum.ansible.com/t/not-able-to-access-snapshot-id-created-using-module-ec2-snapshot/24029)

<div class="topic-metadata">

**Author:** [@Bhavin\_Parmar](https://forum.ansible.com/u/Bhavin_Parmar)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 5:43am UTC](https://forum.ansible.com/t/not-able-to-access-snapshot-id-created-using-module-ec2-snapshot/24029 "2017-03-22T05:43:22Z")

</div>

Hello all, I am giving a list of EC2 instance IDs and mounted the volume name to take a snapshot. It is taking snapshots perfectly, but not returning snapshot IDs. My code is: — # Take Snapshot of EC2s name: Take sn…

---

## [Ansible not completely installing Elasticsearch RPM package via YUM](https://forum.ansible.com/t/ansible-not-completely-installing-elasticsearch-rpm-package-via-yum/24027)

<div class="topic-metadata">

**Author:** [@Tom\_Albrecht](https://forum.ansible.com/u/Tom_Albrecht)\
**Replies:** 2\
**Last updated:** [March 21, 2017, 9:03pm UTC](https://forum.ansible.com/t/ansible-not-completely-installing-elasticsearch-rpm-package-via-yum/24027 "2017-03-21T21:03:31Z")

</div>

This has me tearing my hair out, only because I don’t know how to go about debugging this. Versions: ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/…

---

## [YAML tags support](https://forum.ansible.com/t/yaml-tags-support/24028)

<div class="topic-metadata">

**Author:** [@Michael\_Kashin](https://forum.ansible.com/u/Michael_Kashin)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 8:13pm UTC](https://forum.ansible.com/t/yaml-tags-support/24028 "2017-03-21T20:13:18Z")

</div>

I’m trying to load a host variable YAML file containing a YAML tag !!set. This set data structure is required by one of my custom Ansible modules. When it is loaded into Ansible runtime, the data structure inside the hos…

---

## [dynamically set variables with set\_fact](https://forum.ansible.com/t/dynamically-set-variables-with-set-fact/24026)

<div class="topic-metadata">

**Author:** [@Matthew\_Podber](https://forum.ansible.com/u/Matthew_Podber)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 8:04pm UTC](https://forum.ansible.com/t/dynamically-set-variables-with-set-fact/24026 "2017-03-21T20:04:13Z")

</div>

I want to dynamically set a value to a variable using set\_fact, however, it always uses the first value: name: Global\_vars - get env info set\_fact: jm\_env: “{{lookup(‘env’, ‘Environment’)}}” l\_env: “{% if ‘{{jm\_env}…

---

## [Help generating device report in Ansible](https://forum.ansible.com/t/help-generating-device-report-in-ansible/24017)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 6\
**Last updated:** [March 21, 2017, 6:59pm UTC](https://forum.ansible.com/t/help-generating-device-report-in-ansible/24017 "2017-03-21T18:59:53Z")

</div>

Hello, I’m fairly new to Ansible and trying to do something very simple. I want to collect a piece of information (version number) from a number a network devices and generate a simple report. name: Get Data from devi…

---

## [Apply Ansible generated IOS config file to a router](https://forum.ansible.com/t/apply-ansible-generated-ios-config-file-to-a-router/24025)

<div class="topic-metadata">

**Author:** [@jkjxcl](https://forum.ansible.com/u/jkjxcl)\
**Replies:** 0\
**Last updated:** [March 21, 2017, 4:01pm UTC](https://forum.ansible.com/t/apply-ansible-generated-ios-config-file-to-a-router/24025 "2017-03-21T16:01:03Z")

</div>

Hi group. I have written a python script that goes through an existing IOS config pulling out variables I need and writing them to ./roles/router/vars/main.yml. An ansible-playbook site.yml takes this file and generate…

---

## [Ansible fact with dot, how to escape?](https://forum.ansible.com/t/ansible-fact-with-dot-how-to-escape/24019)

<div class="topic-metadata">

**Author:** [@Nils\_Borrmann](https://forum.ansible.com/u/Nils_Borrmann)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 1:51pm UTC](https://forum.ansible.com/t/ansible-fact-with-dot-how-to-escape/24019 "2017-03-21T13:51:24Z")

</div>

Hi, i’m trying to get the values of a fact with a dot. For example this interface: “ansible\_bond0.247”: { “active”: true, “device”: “bond0.247”, … {{ ansible\_bond0.247.device }} doesn’t work, because ansible thin…

---

## [current devel branch does not work on windows](https://forum.ansible.com/t/current-devel-branch-does-not-work-on-windows/19233)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 11\
**Last updated:** [March 21, 2017, 1:14pm UTC](https://forum.ansible.com/t/current-devel-branch-does-not-work-on-windows/19233 "2017-03-21T13:14:15Z")

</div>

The last working commit I can find which works on windows is ca e2e9319f06b058098cdf4272689766abb95b80f2 (https://github.com/ansible/ansible/commit/e2e9319f06b058098cdf4272689766abb95b80f2) note that I haven’t tried all …

---

## [Failed to copy directory to host](https://forum.ansible.com/t/failed-to-copy-directory-to-host/24018)

<div class="topic-metadata">

**Author:** [@Jian\_Gao](https://forum.ansible.com/u/Jian_Gao)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 9:36am UTC](https://forum.ansible.com/t/failed-to-copy-directory-to-host/24018 "2017-03-21T09:36:38Z")

</div>

I am new to Ansible. I installed Anasible 2.2.1.0 and start to learn playbook. Anyway now I am having a issue to copy a directory to the target host. I tried “copy” and “synchronize” without success. Here is the playbo…

---

## [Passing encrypted variables to Script module via arguments.](https://forum.ansible.com/t/passing-encrypted-variables-to-script-module-via-arguments/23993)

<div class="topic-metadata">

**Author:** [@Rajesh\_N](https://forum.ansible.com/u/Rajesh_N)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 9:30am UTC](https://forum.ansible.com/t/passing-encrypted-variables-to-script-module-via-arguments/23993 "2017-03-21T09:30:14Z")

</div>

Folks, I have a file encrypted with Vault containing the logins for my VMware environment. I also have a powershell script to execute some commands on my VMware environment. From ansible i execute the this file via the…

---

## [Getting  ImportError: No module named plugins.callback](https://forum.ansible.com/t/getting-importerror-no-module-named-plugins-callback/24020)

<div class="topic-metadata">

**Author:** [@Subha\_lakshmi](https://forum.ansible.com/u/Subha_lakshmi)\
**Replies:** 0\
**Last updated:** [March 21, 2017, 8:24am UTC](https://forum.ansible.com/t/getting-importerror-no-module-named-plugins-callback/24020 "2017-03-21T08:24:09Z")

</div>

(ansible) sr@lb:~/configuration/playbooks/edx-east$ sudo ansible-playbook -i localhost, -c local analytics\_single.yml --extra-vars “INSIGHTS\_LMS\_BASE=mysite.org” Traceback (most recent call last): File “/usr/local/bin/…

---

## [Ansible template not substituting if any variable not defined](https://forum.ansible.com/t/ansible-template-not-substituting-if-any-variable-not-defined/24007)

<div class="topic-metadata">

**Author:** [@John\_Gateley](https://forum.ansible.com/u/John_Gateley)\
**Replies:** 3\
**Last updated:** [March 21, 2017, 3:07am UTC](https://forum.ansible.com/t/ansible-template-not-substituting-if-any-variable-not-defined/24007 "2017-03-21T03:07:19Z")

</div>

HI y’all, I switched to a new computer, so this is a clean installation of ansible etc. One of my playbooks is not working properly. I tracked it down to using a template and one of the variables isn’t defined. Here’s…

---

## [Aliases for hosts](https://forum.ansible.com/t/aliases-for-hosts/24016)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 7:18pm UTC](https://forum.ansible.com/t/aliases-for-hosts/24016 "2017-03-20T19:18:34Z")

</div>

I have certain servers that are called various things by different members of my team. Some say “myserver1” others reference the same server by a DNS alias “orangeserver” and others reference by another alias “specialweb…

---

## [check if the previous fields input is given by the user](https://forum.ansible.com/t/check-if-the-previous-fields-input-is-given-by-the-user/24013)

<div class="topic-metadata">

**Author:** [@Abdul\_Hafeezuddin\_Mo](https://forum.ansible.com/u/Abdul_Hafeezuddin_Mo)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 4:31pm UTC](https://forum.ansible.com/t/check-if-the-previous-fields-input-is-given-by-the-user/24013 "2017-03-20T16:31:04Z")

</div>

Hi, I’m writing a custom module. I wanted to set some fields to “required”: True, depending upon the previous field i.e if user specified previous field then next field should be set to required:True please see this be…

---

## [IIS Application Pool - Specific Identity](https://forum.ansible.com/t/iis-application-pool-specific-identity/24011)

<div class="topic-metadata">

**Author:** [@DevOps\_Unleashed](https://forum.ansible.com/u/DevOps_Unleashed)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 4:27pm UTC](https://forum.ansible.com/t/iis-application-pool-specific-identity/24011 "2017-03-20T16:27:20Z")

</div>

Is it possible to use Ansible to create a new IIS Application Pool that runs under a specific “identity”? Cheers

---

## [Ansible Vault API (decrypt programmatically)](https://forum.ansible.com/t/ansible-vault-api-decrypt-programmatically/19244)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 3\
**Last updated:** [March 20, 2017, 2:47pm UTC](https://forum.ansible.com/t/ansible-vault-api-decrypt-programmatically/19244 "2017-03-20T14:47:49Z")

</div>

Are there any examples of using the Ansible Python API to decrypt an existing vault file?

---

## [Ansible for Windows: strange behavior](https://forum.ansible.com/t/ansible-for-windows-strange-behavior/23994)

<div class="topic-metadata">

**Author:** [@Michele\_Viviani](https://forum.ansible.com/u/Michele_Viviani)\
**Replies:** 3\
**Last updated:** [March 20, 2017, 1:45pm UTC](https://forum.ansible.com/t/ansible-for-windows-strange-behavior/23994 "2017-03-20T13:45:17Z")

</div>

Hi, I do have some problems using Ansible with Windows. For many of my servers it works, but for some I’m receiving “HTTPConnectionPool(host=‘10.10.193.180’, port=5985): Read timed out” even if the WinRM configuration …

---

## [block/rescue is not rescuing ?](https://forum.ansible.com/t/block-rescue-is-not-rescuing/24014)

<div class="topic-metadata">

**Author:** [@Mike\_C1](https://forum.ansible.com/u/Mike_C1)\
**Replies:** 0\
**Last updated:** [March 20, 2017, 11:43am UTC](https://forum.ansible.com/t/block-rescue-is-not-rescuing/24014 "2017-03-20T11:43:36Z")

</div>

Hi all, im having trouble with the block/rescue functionality. Here is my code: - block: - name: wget consul from artifactory get\_url: url: '{{ consul\_url }}' checksum: 'sha256:{{ consul\_sha256 }}' dest: '{{ consul\_h…

---

## [Basic Ansible Ping Module Question](https://forum.ansible.com/t/basic-ansible-ping-module-question/24008)

<div class="topic-metadata">

**Author:** [@jerewrig12345](https://forum.ansible.com/u/jerewrig12345)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 8:38am UTC](https://forum.ansible.com/t/basic-ansible-ping-module-question/24008 "2017-03-20T08:38:07Z")

</div>

I’m just learning the Ansible basics in my lab. I have an Ansible VM that can’t ping my virtual router. I have purposely shutdown the router interface for testing. Even though the router is down, the Ansible ping module …

---

## [2 extra spaces in front of on some rendered lines in for loops](https://forum.ansible.com/t/2-extra-spaces-in-front-of-on-some-rendered-lines-in-for-loops/24012)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 0\
**Last updated:** [March 20, 2017, 12:44am UTC](https://forum.ansible.com/t/2-extra-spaces-in-front-of-on-some-rendered-lines-in-for-loops/24012 "2017-03-20T00:44:54Z")

</div>

Hi, I am generating config files and I want them to be indented just so. I started with a jinja2 template that rendered correctly when called from a simple python program. When I call it from ansible, I will get 2 extra…

---

## [using variables in group\_vars/\*](https://forum.ansible.com/t/using-variables-in-group-vars/23988)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 2\
**Last updated:** [March 19, 2017, 11:47pm UTC](https://forum.ansible.com/t/using-variables-in-group-vars/23988 "2017-03-19T23:47:14Z")

</div>

How can I reference another variable within group\_vars files? Specifically, I have a bunch of RFC1918-style (loopback internal like 192.168.1.1) IP addresses for things that are referenced all over the place. Dependin…

---

## [include\_vars in ansible 2.0](https://forum.ansible.com/t/include-vars-in-ansible-2-0/20615)

<div class="topic-metadata">

**Author:** [@Marcus\_Furlong](https://forum.ansible.com/u/Marcus_Furlong)\
**Replies:** 3\
**Last updated:** [March 19, 2017, 9:27pm UTC](https://forum.ansible.com/t/include-vars-in-ansible-2-0/20615 "2017-03-19T21:27:41Z")

</div>

Hi, With ansible 2.0, should the following use of include\_vars give the error below? tree ├── roles │ └── common │ ├── tasks │ │ └── main.yml │ └── vars │ ├── Debian.yml │ └── default.yml cat roles/common/tasks/…

---

## [Ansible IIS Deployment - Creating App Pools with specific identity?](https://forum.ansible.com/t/ansible-iis-deployment-creating-app-pools-with-specific-identity/24010)

<div class="topic-metadata">

**Author:** [@DevOps\_Unleashed](https://forum.ansible.com/u/DevOps_Unleashed)\
**Replies:** 0\
**Last updated:** [March 19, 2017, 12:32am UTC](https://forum.ansible.com/t/ansible-iis-deployment-creating-app-pools-with-specific-identity/24010 "2017-03-19T00:32:32Z")

</div>

Is it possible to create App Pools in IIS with a specific identity? Cheers

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

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