# Latest

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

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

**Page:** 865

---

## [win\_get\_url and win\_msi - file downloaded and installed even when not changed](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395)

<div class="topic-metadata">

**Author:** [@cosbug](https://forum.ansible.com/u/cosbug)\
**Replies:** 3\
**Last updated:** [June 4, 2015, 8:48pm UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395 "2015-06-04T20:48:20Z")

</div>

Hi All, I’m using “win\_get\_url” module to download an MSI package and then “win\_msi” to install it. It turns out that every time I run a playbook both tasks return status “changed” even the file was previously download…

---

## [Proper approach to looping over nested data?](https://forum.ansible.com/t/proper-approach-to-looping-over-nested-data/18409)

<div class="topic-metadata">

**Author:** [@testcore](https://forum.ansible.com/u/testcore)\
**Replies:** 0\
**Last updated:** [June 4, 2015, 8:13pm UTC](https://forum.ansible.com/t/proper-approach-to-looping-over-nested-data/18409 "2015-06-04T20:13:03Z")

</div>

Hiya Ansible - I have some repetitive tasks I’d like to perform, but am struggling to figure out how exactly to get ansible to execute them. I figure my use cases should be pretty common, so I’m hoping to hear how others…

---

## [Created an elasticache via Ansible - Get an Error "Use of cache security groups is not permitted in this API version for your account"](https://forum.ansible.com/t/created-an-elasticache-via-ansible-get-an-error-use-of-cache-security-groups-is-not-permitted-in-this-api-version-for-your-account/15966)

<div class="topic-metadata">

**Author:** [@Shih\_Oon\_Liong2](https://forum.ansible.com/u/Shih_Oon_Liong2)\
**Replies:** 6\
**Last updated:** [June 4, 2015, 5:39pm UTC](https://forum.ansible.com/t/created-an-elasticache-via-ansible-get-an-error-use-of-cache-security-groups-is-not-permitted-in-this-api-version-for-your-account/15966 "2015-06-04T17:39:28Z")

</div>

I was trying to provision a new memcached server via ansible - name: AWS | Create Redis local\_action: module: elasticache region: sa-east-1 name: "test-please-delete" state: present…

---

## [How to handle dynamic inventories with playbooks](https://forum.ansible.com/t/how-to-handle-dynamic-inventories-with-playbooks/18407)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [June 4, 2015, 5:17pm UTC](https://forum.ansible.com/t/how-to-handle-dynamic-inventories-with-playbooks/18407 "2015-06-04T17:17:28Z")

</div>

We pull our server inventory from a Netscaler. Servers that are binded to a specific LB group is considered active and we deploy code and/or restart services at when needed. I’ve written a Python script that outputs the …

---

## [Automate install of the controller](https://forum.ansible.com/t/automate-install-of-the-controller/18393)

<div class="topic-metadata">

**Author:** [@jaysmythe123](https://forum.ansible.com/u/jaysmythe123)\
**Replies:** 2\
**Last updated:** [June 4, 2015, 4:37pm UTC](https://forum.ansible.com/t/automate-install-of-the-controller/18393 "2015-06-04T16:37:28Z")

</div>

Is there a recomended way to automate the install of the control node? I.e. the install and configuration of ansible itself? Or is it up to each admin to script and store in a repo in order to rapidly provision in case a…

---

## [ec2\_vol create multiple devices](https://forum.ansible.com/t/ec2-vol-create-multiple-devices/18404)

<div class="topic-metadata">

**Author:** [@Igal\_Dahan](https://forum.ansible.com/u/Igal_Dahan)\
**Replies:** 0\
**Last updated:** [June 4, 2015, 2:25pm UTC](https://forum.ansible.com/t/ec2-vol-create-multiple-devices/18404 "2015-06-04T14:25:56Z")

</div>

Hi i have trying to create several ec2 instances and 4 volumes for each instance, and i had trouble with it, here is part of it: create several instances : name: Launch instances local\_action: module: ec2 image: “…

---

## [ec2\_vol is not mounting the filesystem](https://forum.ansible.com/t/ec2-vol-is-not-mounting-the-filesystem/18394)

<div class="topic-metadata">

**Author:** [@Igal\_Dahan](https://forum.ansible.com/u/Igal_Dahan)\
**Replies:** 2\
**Last updated:** [June 4, 2015, 11:36am UTC](https://forum.ansible.com/t/ec2-vol-is-not-mounting-the-filesystem/18394 "2015-06-04T11:36:15Z")

</div>

Hi I have created playbook which i can provision ec2 instance and create volume to that ec2 instance but when i am connected into the instance the volume is not recognized and seems not partitioned and thus not mounted. …

---

## [changing network IP and network restart](https://forum.ansible.com/t/changing-network-ip-and-network-restart/18400)

<div class="topic-metadata">

**Author:** [@Billy](https://forum.ansible.com/u/Billy)\
**Replies:** 3\
**Last updated:** [June 4, 2015, 10:58am UTC](https://forum.ansible.com/t/changing-network-ip-and-network-restart/18400 "2015-06-04T10:58:55Z")

</div>

Hi, We’re renumbering our network. I can’t seem to get networking restarted. If I try with “fire and forget” (async 10 & poll 0) it reports: PLAY \[test-net\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [ansible stuck when gathering fatcs.](https://forum.ansible.com/t/ansible-stuck-when-gathering-fatcs/18392)

<div class="topic-metadata">

**Author:** [@yuyuntao](https://forum.ansible.com/u/yuyuntao)\
**Replies:** 2\
**Last updated:** [June 4, 2015, 7:56am UTC](https://forum.ansible.com/t/ansible-stuck-when-gathering-fatcs/18392 "2015-06-04T07:56:53Z")

</div>

I resolved this problem by add timeout in runner/connection\_plugins/ssh.py, such as: 157 import time 158 start = time.time() 159 TIMEOUT = self.runner.timeout\*2 160 while True: 161 rfd, wfd, efd = select.select(rpip…

---

## [Making use of Ansible Privilege Escalation](https://forum.ansible.com/t/making-use-of-ansible-privilege-escalation/18320)

<div class="topic-metadata">

**Author:** [@Aneesh\_Joseph](https://forum.ansible.com/u/Aneesh_Joseph)\
**Replies:** 8\
**Last updated:** [June 4, 2015, 6:57am UTC](https://forum.ansible.com/t/making-use-of-ansible-privilege-escalation/18320 "2015-06-04T06:57:32Z")

</div>

I’m trying to find the equivalent of \` ansible dev -a “/opt/pb/bin/pbrun su tomcat -c echo hi” -u aneesh \` (this works) I tried with \` ansible dev -a “echo hi” -u aneesh --become-user=tomcat–become-method=pbrun -b …

---

## [Ansible Conditionals not working as expected.](https://forum.ansible.com/t/ansible-conditionals-not-working-as-expected/18123)

<div class="topic-metadata">

**Author:** [@Charles\_Sibbald](https://forum.ansible.com/u/Charles_Sibbald)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 11:21pm UTC](https://forum.ansible.com/t/ansible-conditionals-not-working-as-expected/18123 "2015-06-03T23:21:52Z")

</div>

So This code here should only run if {{ passphrase\_length.results\[0\].stdout }} is != "0" However it seems to ignore the comparison. I have even tried: when: passphrase\_length.results\[0\].stdout|int != 0 No matter wh…

---

## [authorising when ansible pull from private git repo](https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18397)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [June 3, 2015, 7:03pm UTC](https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18397 "2015-06-03T19:03:44Z")

</div>

can you not just give them read only access?

---

## [Using ansible with windows](https://forum.ansible.com/t/using-ansible-with-windows/18396)

<div class="topic-metadata">

**Author:** [@David\_Teague](https://forum.ansible.com/u/David_Teague)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 6:26pm UTC](https://forum.ansible.com/t/using-ansible-with-windows/18396 "2015-06-03T18:26:31Z")

</div>

Hi, I am following the guide to get windows prepared to be managed by ansible. However I am getting errros in powershell with the provided script. https://github.com/ansible/ansible/blob/devel/examples/scripts/Configur…

---

## [corrupted output when running script module](https://forum.ansible.com/t/corrupted-output-when-running-script-module/18384)

<div class="topic-metadata">

**Author:** [@dave1](https://forum.ansible.com/u/dave1)\
**Replies:** 2\
**Last updated:** [June 3, 2015, 5:18pm UTC](https://forum.ansible.com/t/corrupted-output-when-running-script-module/18384 "2015-06-03T17:18:23Z")

</div>

Hello, I’m having a problem with Ansible 1.8.4, which I’m running on a Macintosh to remotely configure a host running on Amazon AWS. The command I’m using to run a playbook is as follows: ansible-playbook playbooks/s…

---

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

<div class="topic-metadata">

**Author:** [@knacktus](https://forum.ansible.com/u/knacktus)\
**Replies:** 2\
**Last updated:** [June 3, 2015, 4:55pm UTC](https://forum.ansible.com/t/unarchive/18386 "2015-06-03T16:55:02Z")

</div>

Hi guys, after upgrading from 1.8 to 1.9.1 the unarchive doesn’t work any more. msg: dest '...' must be an existing dir I've found several issues in the bug tracker, but they're all closed. The problem is that there s…

---

## [\--list-roles like --list-task](https://forum.ansible.com/t/list-roles-like-list-task/18390)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 4:49pm UTC](https://forum.ansible.com/t/list-roles-like-list-task/18390 "2015-06-03T16:49:01Z")

</div>

Hello, is there something like “–list-roles” like “–list-task” i need to know with host (playbooks) will change if i change a role. Thanks

---

## [Get shell environment variables on target after going thru a bastion](https://forum.ansible.com/t/get-shell-environment-variables-on-target-after-going-thru-a-bastion/18383)

<div class="topic-metadata">

**Author:** [@Steve\_Orr](https://forum.ansible.com/u/Steve_Orr)\
**Replies:** 2\
**Last updated:** [June 3, 2015, 2:49pm UTC](https://forum.ansible.com/t/get-shell-environment-variables-on-target-after-going-thru-a-bastion/18383 "2015-06-03T14:49:43Z")

</div>

I access a target host thru a bastion server which requires a Yubikey password. I have setup ssh keys so I can access the target host without a password prompt once the authenticated socket on the bastion is cached. When…

---

## [su for role and password from vault](https://forum.ansible.com/t/su-for-role-and-password-from-vault/18389)

<div class="topic-metadata">

**Author:** [@knacktus](https://forum.ansible.com/u/knacktus)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 8:37am UTC](https://forum.ansible.com/t/su-for-role-and-password-from-vault/18389 "2015-06-03T08:37:38Z")

</div>

Hi guys, I need to run my roles as different user. However, the users don’t have login permissions. I need to su after logon with the user that executes the ansible playbook. I’ve already stored the different user ids …

---

## [ansible.error](https://forum.ansible.com/t/ansible-error/18388)

<div class="topic-metadata">

**Author:** [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Replies:** 0\
**Last updated:** [June 3, 2015, 4:57am UTC](https://forum.ansible.com/t/ansible-error/18388 "2015-06-03T04:57:25Z")

</div>

can you let us know how you installed ansible and which version you are using , and is this the full traceback ?

---

## [skipping no host matched](https://forum.ansible.com/t/skipping-no-host-matched/18387)

<div class="topic-metadata">

**Author:** [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Replies:** 0\
**Last updated:** [June 3, 2015, 4:54am UTC](https://forum.ansible.com/t/skipping-no-host-matched/18387 "2015-06-03T04:54:02Z")

</div>

Seems like the question is more for the anible-project list, can you please paste your inventory file and your playbook and the version of ansible you are using. Benno

---

## [Getting handlers to run in-between roles](https://forum.ansible.com/t/getting-handlers-to-run-in-between-roles/18378)

<div class="topic-metadata">

**Author:** [@Toby\_Corkindale](https://forum.ansible.com/u/Toby_Corkindale)\
**Replies:** 3\
**Last updated:** [June 3, 2015, 3:42am UTC](https://forum.ansible.com/t/getting-handlers-to-run-in-between-roles/18378 "2015-06-03T03:42:18Z")

</div>

Hi, I must be doing something wrong, but I don’t understand what. I want notified handlers to run between one role and the next. From reading other posts here, it seems that is how it is supposed to work, but it’s not …

---

## [Issue with os\_server module](https://forum.ansible.com/t/issue-with-os-server-module/18372)

<div class="topic-metadata">

**Author:** [@Goldberg\_Eduard](https://forum.ansible.com/u/Goldberg_Eduard)\
**Replies:** 4\
**Last updated:** [June 2, 2015, 7:43pm UTC](https://forum.ansible.com/t/issue-with-os-server-module/18372 "2015-06-02T19:43:35Z")

</div>

Hi, I’m trying to launch an instance using os\_server module Using simple playbook name: create openstack instance hosts: local\_host tasks: name: launch instance os\_server: auth: auth\_url: http://\<some url\> user…

---

## [get name path of current playbook](https://forum.ansible.com/t/get-name-path-of-current-playbook/18379)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 1\
**Last updated:** [June 2, 2015, 6:52pm UTC](https://forum.ansible.com/t/get-name-path-of-current-playbook/18379 "2015-06-02T18:52:59Z")

</div>

how to get the name/path of the current playbook, beeing run looking for something like a var: ansible\_playbook ansible\_current\_playbook

---

## [Weekly Ansible Community Meeting Starting](https://forum.ansible.com/t/weekly-ansible-community-meeting-starting/18381)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [June 2, 2015, 5:00pm UTC](https://forum.ansible.com/t/weekly-ansible-community-meeting-starting/18381 "2015-06-02T17:00:10Z")

</div>

Ansible weekly Community Meeting starting now (17:00 UTC) https://plus.google.com/hangouts/\_/gzpqzn6wys6kk5vuv7mkbf6lwma Join if you'd like to talk about any PR/Issue or just want to talk about ansible's development. …

---

## [Ansible 1.9.2 rc1 is now available for testing](https://forum.ansible.com/t/ansible-1-9-2-rc1-is-now-available-for-testing/18243)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 8\
**Last updated:** [June 2, 2015, 4:17pm UTC](https://forum.ansible.com/t/ansible-1-9-2-rc1-is-now-available-for-testing/18243 "2015-06-02T16:17:02Z")

</div>

Hi all, we’ve just tagged the rc1 release for 1.9.2, which includes several fixes for modules (service, rds, among others) as well as some other minor fixes and improvements. To test from source, simply clone the git re…

---

## [devel (v2) breaks 'action: "{{ ansible\_pkg\_mgr }}"'](https://forum.ansible.com/t/devel-v2-breaks-action-ansible-pkg-mgr/18380)

<div class="topic-metadata">

**Author:** [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Replies:** 2\
**Last updated:** [June 2, 2015, 1:26pm UTC](https://forum.ansible.com/t/devel-v2-breaks-action-ansible-pkg-mgr/18380 "2015-06-02T13:26:11Z")

</div>

Hey, could not find any related issue but wanted to get you involved first: All my roles which deal with installing packages do 1. configure a list with packages to be installed in {{ ansible\_os\_family }}.yml vars fil…

---

## [Unicode issues with Ansible 1.8 and up](https://forum.ansible.com/t/unicode-issues-with-ansible-1-8-and-up/18344)

<div class="topic-metadata">

**Author:** [@Andres\_Silva1](https://forum.ansible.com/u/Andres_Silva1)\
**Replies:** 8\
**Last updated:** [June 2, 2015, 1:18pm UTC](https://forum.ansible.com/t/unicode-issues-with-ansible-1-8-and-up/18344 "2015-06-02T13:18:15Z")

</div>

Im running some Ansible playbooks on ec2 instances created by OpsWorks. Part of the automation reads the ec2 tags from the instance. here is the code for that name: gather ec2 facts action: ec2\_facts name: get env…

---

## [No current variable in Ansible (like $\_ in perl)](https://forum.ansible.com/t/no-current-variable-in-ansible-like-in-perl/18371)

<div class="topic-metadata">

**Author:** [@Yannig\_Perre](https://forum.ansible.com/u/Yannig_Perre)\
**Replies:** 11\
**Last updated:** [June 2, 2015, 12:05pm UTC](https://forum.ansible.com/t/no-current-variable-in-ansible-like-in-perl/18371 "2015-06-02T12:05:19Z")

</div>

Hi all, FIrst, thanks all for this great piece of software! I have started an issue about a missing feature: there’s no current value in ansible playbook. When I talk about current value, I refer to $\_ in Perl. Usually…

---

## ["filter" functionality for 'when:' conditional](https://forum.ansible.com/t/filter-functionality-for-when-conditional/18373)

<div class="topic-metadata">

**Author:** [@Patrick\_Glomski](https://forum.ansible.com/u/Patrick_Glomski)\
**Replies:** 2\
**Last updated:** [June 2, 2015, 11:58am UTC](https://forum.ansible.com/t/filter-functionality-for-when-conditional/18373 "2015-06-02T11:58:34Z")

</div>

When running a task with multiple items using ‘with\_items’, the results are registered in a variable under ‘results’ as a list. Is there any way to apply a filter such as ‘any’ or ‘all’ to that list in a conditional on t…

---

## [can we fetch a regex match from a variable value](https://forum.ansible.com/t/can-we-fetch-a-regex-match-from-a-variable-value/18377)

<div class="topic-metadata">

**Author:** [@Max1](https://forum.ansible.com/u/Max1)\
**Replies:** 3\
**Last updated:** [June 2, 2015, 8:37am UTC](https://forum.ansible.com/t/can-we-fetch-a-regex-match-from-a-variable-value/18377 "2015-06-02T08:37:47Z")

</div>

Suppose I’ve url=http://example.com:90/url and now in my ansible task I want to get the url variable by {{ url }} and then do a regex match and fetch oly the hostname i.e. example.com. Any directions on how this can be …

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

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