# Latest

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

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

**Page:** 745

---

## [Enhancing win\_msi capabilities](https://forum.ansible.com/t/enhancing-win-msi-capabilities/21997)

<div class="topic-metadata">

**Author:** [@Shachaf\_Goldstein](https://forum.ansible.com/u/Shachaf_Goldstein)\
**Replies:** 1\
**Last updated:** [July 12, 2016, 10:24pm UTC](https://forum.ansible.com/t/enhancing-win-msi-capabilities/21997 "2016-07-12T22:24:32Z")

</div>

Hey, I started to use ansible to deploy an msi packaged software on our windows servers. While doing so, I came up with some ideas on how to improve the win\_msi module. Allowing the option to insert a registry key a…

---

## [parsing a nested json file](https://forum.ansible.com/t/parsing-a-nested-json-file/21984)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 4\
**Last updated:** [July 12, 2016, 11:51am UTC](https://forum.ansible.com/t/parsing-a-nested-json-file/21984 "2016-07-12T11:51:56Z")

</div>

hallo, i have a nested json file like : { “fw1”: { “ipv4”: { “rtr”: { “ip”: “1.2.3.4”, “net”: “1.2.3.4”, } } }, “fw2”: { “ipv4”: { “rtr”: { “ip”: “4.3.2.1”, “net”: “4.3.2.1”, } } } } How could i parse…

---

## [Creating servers at Rackspace, host specification and where best to store group variables](https://forum.ansible.com/t/creating-servers-at-rackspace-host-specification-and-where-best-to-store-group-variables/21992)

<div class="topic-metadata">

**Author:** [@Dan\_Rough](https://forum.ansible.com/u/Dan_Rough)\
**Replies:** 0\
**Last updated:** [July 12, 2016, 11:02am UTC](https://forum.ansible.com/t/creating-servers-at-rackspace-host-specification-and-where-best-to-store-group-variables/21992 "2016-07-12T11:02:13Z")

</div>

Hi, We use ansible to create servers at Rackspace. We rely on rax.py to provide the inventory of the current server configuration. Currently, the play that creates the required servers this looks like this: - name: "Cr…

---

## [Setting user password via ansible module user didn't work as expected](https://forum.ansible.com/t/setting-user-password-via-ansible-module-user-didnt-work-as-expected/21853)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [July 12, 2016, 8:07am UTC](https://forum.ansible.com/t/setting-user-password-via-ansible-module-user-didnt-work-as-expected/21853 "2016-07-12T08:07:38Z")

</div>

Hello, I’m very new to ansible. So, please bare with me if I ask some beginners questions. I try to set a user password using the ansible ad-hoc mode with the user-module. To generate the password has I use the python …

---

## [Error using async options when the file module is used in Ansible 2.1](https://forum.ansible.com/t/error-using-async-options-when-the-file-module-is-used-in-ansible-2-1/21991)

<div class="topic-metadata">

**Author:** [@Alfredo\_M](https://forum.ansible.com/u/Alfredo_M)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 11:04pm UTC](https://forum.ansible.com/t/error-using-async-options-when-the-file-module-is-used-in-ansible-2-1/21991 "2016-07-11T23:04:10Z")

</div>

Hi all, I’m trying to run my old playbooks (they work on Ansible 1.9) that have some async tasks in Ansible 2.1. The resources involved in the issue are in http://pastie.org/private/o5obpof0vcmtukefprzeq If I run the p…

---

## [Looping over a list to use with with\_fileglob](https://forum.ansible.com/t/looping-over-a-list-to-use-with-with-fileglob/21990)

<div class="topic-metadata">

**Author:** [@Nick\_Tran](https://forum.ansible.com/u/Nick_Tran)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 10:27pm UTC](https://forum.ansible.com/t/looping-over-a-list-to-use-with-with-fileglob/21990 "2016-07-11T22:27:26Z")

</div>

I want to loop over a hash list that will provide two items. The file glob the destination Is this possible via some sort of nested loop and with\_fileglob? The list would look something like below, and I’m hoping a s…

---

## [on/off playooks for lots of resources w/o repeating them (minimal redundancy)](https://forum.ansible.com/t/on-off-playooks-for-lots-of-resources-w-o-repeating-them-minimal-redundancy/21982)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 2\
**Last updated:** [July 11, 2016, 5:41pm UTC](https://forum.ansible.com/t/on-off-playooks-for-lots-of-resources-w-o-repeating-them-minimal-redundancy/21982 "2016-07-11T17:41:36Z")

</div>

Hi, I'm currently evaluating ansible as a candidate for our future CM tool. I'm stuck with the issue, that we have "blocks" of resources (e.g. a list of around 30 NFS mounts) which we'd like to be able to switch on an…

---

## [Error while deploying open source bitcoin exchange platform that uses ansimble](https://forum.ansible.com/t/error-while-deploying-open-source-bitcoin-exchange-platform-that-uses-ansimble/21974)

<div class="topic-metadata">

**Author:** [@Oleg\_Belousov](https://forum.ansible.com/u/Oleg_Belousov)\
**Replies:** 2\
**Last updated:** [July 11, 2016, 4:05pm UTC](https://forum.ansible.com/t/error-while-deploying-open-source-bitcoin-exchange-platform-that-uses-ansimble/21974 "2016-07-11T16:05:58Z")

</div>

This is the line with the error: This is how the error looks like in the console: \` fatal: \[longcat.staging-testnet-txbits.com\] =\> Syntax Error while loading YAML script, /home/user/dev/TxBitsDeployer/playbook/group\_…

---

## [Server date in Ansible/J2?](https://forum.ansible.com/t/server-date-in-ansible-j2/21967)

<div class="topic-metadata">

**Author:** [@jp11](https://forum.ansible.com/u/jp11)\
**Replies:** 2\
**Last updated:** [July 11, 2016, 3:15pm UTC](https://forum.ansible.com/t/server-date-in-ansible-j2/21967 "2016-07-11T15:15:19Z")

</div>

I have what seems to be a simple question that I can't find on the web. How do I get the current date from the Ansible server into a J2 variable? I know how to do it with {{ ansible\_date\_time.date }} but that's from th…

---

## [Recommendations for use of "become" with roles](https://forum.ansible.com/t/recommendations-for-use-of-become-with-roles/21986)

<div class="topic-metadata">

**Author:** [@Paul\_Mackay](https://forum.ansible.com/u/Paul_Mackay)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 2:36pm UTC](https://forum.ansible.com/t/recommendations-for-use-of-become-with-roles/21986 "2016-07-11T14:36:00Z")

</div>

Is there any best practice around the use and/or documentation of sudo/become with roles? These are the questions I’m unsure about and have not seen any related guidelines: If a role requires sudo priviledges for one …

---

## [Mark playbook execution as complete when certain file is present in remote system](https://forum.ansible.com/t/mark-playbook-execution-as-complete-when-certain-file-is-present-in-remote-system/21969)

<div class="topic-metadata">

**Author:** [@Zeal\_Vora](https://forum.ansible.com/u/Zeal_Vora)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 1:58pm UTC](https://forum.ansible.com/t/mark-playbook-execution-as-complete-when-certain-file-is-present-in-remote-system/21969 "2016-07-11T13:58:04Z")

</div>

Hi We are planning to run our infrastructure on Ansible Pull Mode so all the host machines will keep on polling every few minutes. In a single outside.yml file, we will have around 8 playbooks. I want to mark a specif…

---

## [handler invoked from role is not called](https://forum.ansible.com/t/handler-invoked-from-role-is-not-called/21973)

<div class="topic-metadata">

**Author:** [@Szabolcs\_Szallar](https://forum.ansible.com/u/Szabolcs_Szallar)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 1:38pm UTC](https://forum.ansible.com/t/handler-invoked-from-role-is-not-called/21973 "2016-07-11T13:38:23Z")

</div>

hi, If I use the handler incorrectly, please let me know. I’m using Ansible a quiet while and recently migrated from 1.9 to 2.1.0.0. My target host is CentOS 6.5 I try to follow the documentation, but can’t make the …

---

## [Accessing environment variables created inside shell task](https://forum.ansible.com/t/accessing-environment-variables-created-inside-shell-task/20380)

<div class="topic-metadata">

**Author:** [@PixelDrift.NET\_Sam](https://forum.ansible.com/u/PixelDrift.NET_Sam)\
**Replies:** 5\
**Last updated:** [July 11, 2016, 11:51am UTC](https://forum.ansible.com/t/accessing-environment-variables-created-inside-shell-task/20380 "2016-07-11T11:51:48Z")

</div>

I am currently working through replacing a legacy orchestration tool with Ansible while maintaining the existing orchestration scripts in place. I have hit an interesting problem with environment variables that I haven’t…

---

## [copy each confi file on each server](https://forum.ansible.com/t/copy-each-confi-file-on-each-server/21962)

<div class="topic-metadata">

**Author:** [@alex\_podolin](https://forum.ansible.com/u/alex_podolin)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 10:34am UTC](https://forum.ansible.com/t/copy-each-confi-file-on-each-server/21962 "2016-07-11T10:34:41Z")

</div>

Hi all. I hope anybody can help me. I have a few servers called SERVER-01 SERVER-02…SERVER-N and \*.conf files for this servers tree roles/put\_cameras/files/nginx/ roles/put\_cameras/files/nginx/ ├──SERVER-01 │ ├── co…

---

## [Login Credentials were rejected for Computers Attached to Active Directory](https://forum.ansible.com/t/login-credentials-were-rejected-for-computers-attached-to-active-directory/21979)

<div class="topic-metadata">

**Author:** [@Rajagopal\_Subramania](https://forum.ansible.com/u/Rajagopal_Subramania)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 9:54am UTC](https://forum.ansible.com/t/login-credentials-were-rejected-for-computers-attached-to-active-directory/21979 "2016-07-11T09:54:58Z")

</div>

I have three 3 Windows computers. One is Windows server 2012, Other two are Windows 7 Desktop. Through Ansible I can individually manage all 3 windows machine through their local login account. Ansible Work Perfectly. N…

---

## [docker-py\` doesn't seem to be installed, but is required for the Ansible Docker module](https://forum.ansible.com/t/docker-py-doesnt-seem-to-be-installed-but-is-required-for-the-ansible-docker-module/21983)

<div class="topic-metadata">

**Author:** [@utp\_mahesh](https://forum.ansible.com/u/utp_mahesh)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 9:04am UTC](https://forum.ansible.com/t/docker-py-doesnt-seem-to-be-installed-but-is-required-for-the-ansible-docker-module/21983 "2016-07-11T09:04:49Z")

</div>

I already installed the docker-py module.I Dont know why it is failing to find this module. Anyway this happens only for this Jenkins job.Other Jenkins jobs picks the docker-py module and do the docker deployment. For …

---

## [Nested looping with with\_dict and with\_file, in Ansible v 1.7.2](https://forum.ansible.com/t/nested-looping-with-with-dict-and-with-file-in-ansible-v-1-7-2/21949)

<div class="topic-metadata">

**Author:** [@Junaid\_Naseer](https://forum.ansible.com/u/Junaid_Naseer)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 6:39am UTC](https://forum.ansible.com/t/nested-looping-with-with-dict-and-with-file-in-ansible-v-1-7-2/21949 "2016-07-11T06:39:42Z")

</div>

I am almost certain this is not possible in Ansible (at least not in version 1.7.2), but just to be thorough in my investigation, after exhausting all lookups on google, stackoverflow, serverfault, etc. I am posting it …

---

## [Remove stderr/stdout from json output on failure as plugin handles already pretty printing](https://forum.ansible.com/t/remove-stderr-stdout-from-json-output-on-failure-as-plugin-handles-already-pretty-printing/21981)

<div class="topic-metadata">

**Author:** [@Kamil\_Demecki](https://forum.ansible.com/u/Kamil_Demecki)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 6:32am UTC](https://forum.ansible.com/t/remove-stderr-stdout-from-json-output-on-failure-as-plugin-handles-already-pretty-printing/21981 "2016-07-11T06:32:21Z")

</div>

Hi All, I’m using plugin described here to display pretty printed output. It is working very well on successful execution. However on failure ansible also displays json with keys “stdout”, “stderr” duplicating my outpu…

---

## [Help - transform .keys() output with regex\_replace](https://forum.ansible.com/t/help-transform-keys-output-with-regex-replace/21977)

<div class="topic-metadata">

**Author:** [@Nico](https://forum.ansible.com/u/Nico)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:47am UTC](https://forum.ansible.com/t/help-transform-keys-output-with-regex-replace/21977 "2016-07-11T00:47:09Z")

</div>

Hello I’am using the .keys function to get the key name out of a dict. {{ item.keys() }} which output: \["MyKeysName"\] Now, I’am trying to remove the \[" and "\] so that only MyKeysName is left. I have been looking at…

---

## [ansible installation fails with LOCALE error](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975)

<div class="topic-metadata">

**Author:** [@Oleg\_Belousov](https://forum.ansible.com/u/Oleg_Belousov)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:40am UTC](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975 "2016-07-11T00:40:34Z")

</div>

Error: \` msg: 'apt-get install ‘runit’ ’ failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC\_ALL = (unset), LC\_TIME = “de\_DE.UTF-8”, LC\_MONET…

---

## [How to check if any package is installed on remote system ?](https://forum.ansible.com/t/how-to-check-if-any-package-is-installed-on-remote-system/21968)

<div class="topic-metadata">

**Author:** [@Pratik\_Bandarkar](https://forum.ansible.com/u/Pratik_Bandarkar)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:09am UTC](https://forum.ansible.com/t/how-to-check-if-any-package-is-installed-on-remote-system/21968 "2016-07-11T00:09:09Z")

</div>

Hi, I am looking for some option in yum module to check if any specific package is installed or not ? Can anyone help me on the same. Regards, Pratik.

---

## [Ansible-play reference a local hosts file](https://forum.ansible.com/t/ansible-play-reference-a-local-hosts-file/21980)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 2\
**Last updated:** [July 10, 2016, 6:40pm UTC](https://forum.ansible.com/t/ansible-play-reference-a-local-hosts-file/21980 "2016-07-10T18:40:37Z")

</div>

How do I get Ansible-play to reference a local hosts files? I created a hosts file in the same directly with my site.yaml file but it doesn’t seem to reference it. Is there a way to get it to use a local vs the /etc/Ansi…

---

## [Useful Ansible snippets for Sublime and filter plugins](https://forum.ansible.com/t/useful-ansible-snippets-for-sublime-and-filter-plugins/21978)

<div class="topic-metadata">

**Author:** [@Alexander\_Jager](https://forum.ansible.com/u/Alexander_Jager)\
**Replies:** 0\
**Last updated:** [July 10, 2016, 2:17pm UTC](https://forum.ansible.com/t/useful-ansible-snippets-for-sublime-and-filter-plugins/21978 "2016-07-10T14:17:55Z")

</div>

Hi there, i wanted to shared some work i did: I wrote a shell script which writes auto completion snippets for Sublime text: https://github.com/lxhunter/ansible-sublime-text-snippets I wrote and documented filter plug…

---

## [subsequent jobs](https://forum.ansible.com/t/subsequent-jobs/21972)

<div class="topic-metadata">

**Author:** [@Ryan\_R](https://forum.ansible.com/u/Ryan_R)\
**Replies:** 0\
**Last updated:** [July 9, 2016, 9:42pm UTC](https://forum.ansible.com/t/subsequent-jobs/21972 "2016-07-09T21:42:04Z")

</div>

Hello! I like how SCM update can be run just before a job, by selecting “Update on launch”. I would like for a job to run the same way, just before a job. Is it possible that Job-Two can be set to automatically run whe…

---

## [Route Table or Default Gateway in Azure](https://forum.ansible.com/t/route-table-or-default-gateway-in-azure/21970)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 0\
**Last updated:** [July 9, 2016, 8:32pm UTC](https://forum.ansible.com/t/route-table-or-default-gateway-in-azure/21970 "2016-07-09T20:32:31Z")

</div>

Is there a way to either create a route table for a subnet or to specify the default gateway to be another instance? I can do this with a template, but not the native functions. Am I missing something? Thanks, Steven.

---

## [ANSIBLE : NO MORE HOSTS LEFT  v2.1.1.0-0.2.rc2? Or am I failing to build the right RPM?](https://forum.ansible.com/t/ansible-no-more-hosts-left-v2-1-1-0-0-2-rc2-or-am-i-failing-to-build-the-right-rpm/21966)

<div class="topic-metadata">

**Author:** [@Gavin\_Jones](https://forum.ansible.com/u/Gavin_Jones)\
**Replies:** 1\
**Last updated:** [July 9, 2016, 12:51am UTC](https://forum.ansible.com/t/ansible-no-more-hosts-left-v2-1-1-0-0-2-rc2-or-am-i-failing-to-build-the-right-rpm/21966 "2016-07-09T00:51:36Z")

</div>

Hi All, New to ANSIBLE and I have been getting the dreaded: NO MORE HOSTS LEFT , when I run playbooks. I read here: https://github.com/ansible/ansible/issues/16364 That it would be resolved in v2.1.1.0-0.2.rc2. So I c…

---

## [vsphere\_guest with\_items or with\_dict not working](https://forum.ansible.com/t/vsphere-guest-with-items-or-with-dict-not-working/21964)

<div class="topic-metadata">

**Author:** [@Rory\_Schramm](https://forum.ansible.com/u/Rory_Schramm)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 7:15pm UTC](https://forum.ansible.com/t/vsphere-guest-with-items-or-with-dict-not-working/21964 "2016-07-08T19:15:39Z")

</div>

I’m trying to make a playbook to provision some vsphere vm’s using the vsphere\_guest module. However, I cant seem to figure out how to iterate through multiple vm disks using either with\_items or with\_dict defined in hos…

---

## [copy module not idempotent](https://forum.ansible.com/t/copy-module-not-idempotent/21963)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem](https://forum.ansible.com/u/Amjad_Saleem)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 6:19pm UTC](https://forum.ansible.com/t/copy-module-not-idempotent/21963 "2016-07-08T18:19:45Z")

</div>

While using copy module, it always copies the entire directory structure. ansible version is 2.0.2.0.

---

## [Invalid interface clause error with ufw module and log param](https://forum.ansible.com/t/invalid-interface-clause-error-with-ufw-module-and-log-param/21919)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [July 8, 2016, 5:30pm UTC](https://forum.ansible.com/t/invalid-interface-clause-error-with-ufw-module-and-log-param/21919 "2016-07-08T17:30:18Z")

</div>

I have some tasks that use the ufw module to add firewall rules, which up until now have been working fine. Today however, I added the ‘log’ parameter to the ufw task and I got the following error: “ERROR: Invalid interf…

---

## [module (copy) is missing interpreter line](https://forum.ansible.com/t/module-copy-is-missing-interpreter-line/21933)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 9\
**Last updated:** [July 8, 2016, 5:28pm UTC](https://forum.ansible.com/t/module-copy-is-missing-interpreter-line/21933 "2016-07-08T17:28:20Z")

</div>

Hello everyone, It seems quite difficult to perform a very simple task: save the content of a variable to a file. This variable content is not just a string, but several lines as shown by the debug module: “out.stdout…

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

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