# Latest

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

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

**Page:** 757

---

## [Fact caching](https://forum.ansible.com/t/fact-caching/21590)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 6:31pm UTC](https://forum.ansible.com/t/fact-caching/21590 "2016-06-01T18:31:40Z")

</div>

We have a use case similar to one I've seen in a couple of places, where (let's say) a web server has a template that needs to contain information about (let's say) all the app servers that are in their Ansible facts. …

---

## [Advice on best way to sync root-owned files from one remote server to a group of others?](https://forum.ansible.com/t/advice-on-best-way-to-sync-root-owned-files-from-one-remote-server-to-a-group-of-others/21631)

<div class="topic-metadata">

**Author:** [@Uditha\_Desilva](https://forum.ansible.com/u/Uditha_Desilva)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 5:33pm UTC](https://forum.ansible.com/t/advice-on-best-way-to-sync-root-owned-files-from-one-remote-server-to-a-group-of-others/21631 "2016-06-01T17:33:36Z")

</div>

Hi, I’m trying to create a Playbook to synchronize some initialization scripts and crontabs across a VCS cluster. The cluster itself is on RHEL5, so I am trying to use a RHEL7 server as a controller. The key restrictio…

---

## [Can individual variables be set to no\_log?](https://forum.ansible.com/t/can-individual-variables-be-set-to-no-log/21635)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 5:02pm UTC](https://forum.ansible.com/t/can-individual-variables-be-set-to-no-log/21635 "2016-06-01T17:02:13Z")

</div>

I thought I ran across a playbook output that indicated individual variables had been set with a no\_log parameter. Unfortunately, I cannot find the website where I saw it yesterday. Is it actually possible to specify no\_…

---

## [Is the user module idempotent?](https://forum.ansible.com/t/is-the-user-module-idempotent/21632)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 5\
**Last updated:** [June 1, 2016, 4:08pm UTC](https://forum.ansible.com/t/is-the-user-module-idempotent/21632 "2016-06-01T16:08:19Z")

</div>

Hi all, I tried the following task, but it reports 'changed' each time it runs. Is this intentional? - name: "create user" user: name="foobar" password="{{ some\_variable | password\_hash('sha512') }}" crea…

---

## [Ansible roles to docker container ?](https://forum.ansible.com/t/ansible-roles-to-docker-container/21636)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 3:36pm UTC](https://forum.ansible.com/t/ansible-roles-to-docker-container/21636 "2016-06-01T15:36:52Z")

</div>

Hi, I would apply ansible roles to my docker container, but i don’t found any simply solution :confused: Is it possible to defined Ansible container on hosts var task ?? Thx

---

## [Removing a user from a group using Ansible and the USER module](https://forum.ansible.com/t/removing-a-user-from-a-group-using-ansible-and-the-user-module/21634)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 2\
**Last updated:** [June 1, 2016, 2:50pm UTC](https://forum.ansible.com/t/removing-a-user-from-a-group-using-ansible-and-the-user-module/21634 "2016-06-01T14:50:54Z")

</div>

Good morning. I am trying to run a test case where I can edit a users groups using a playbook in Ansible on CENTOS 6.7 Ansible version 1.9.2 currently installed. After thorough research of other postes and the user mod…

---

## [raw module: where is the python source code?](https://forum.ansible.com/t/raw-module-where-is-the-python-source-code/21626)

<div class="topic-metadata">

**Author:** [@sparkvilla](https://forum.ansible.com/u/sparkvilla)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:43pm UTC](https://forum.ansible.com/t/raw-module-where-is-the-python-source-code/21626 "2016-06-01T13:43:24Z")

</div>

Hi all. I am new to Ansible. I would like to have a look at the python code for the raw module. I went under ansibe/ansible-modules-core/command/raw.py but I see only the DOCUMENTATION and EXAMPLES. So where can I find t…

---

## [global name 'ANSIBLE\_VERSION' is not defined](https://forum.ansible.com/t/global-name-ansible-version-is-not-defined/21620)

<div class="topic-metadata">

**Author:** [@Nicolas\_Rusconi](https://forum.ansible.com/u/Nicolas_Rusconi)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:27pm UTC](https://forum.ansible.com/t/global-name-ansible-version-is-not-defined/21620 "2016-06-01T13:27:19Z")

</div>

I am getting this error when running ansible 2.1.0.0 An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File “/var/folders/c7/wbkyhcfj69dcsvp3464g0knh0000gn/T/ansibl…

---

## [get\_url module failed when we download file from ftp with username and password](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627)

<div class="topic-metadata">

**Author:** [@pawan\_kumar2](https://forum.ansible.com/u/pawan_kumar2)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 12:59pm UTC](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627 "2016-06-01T12:59:31Z")

</div>

fatal: \[192.168.0.111\]: FAILED! =\> {“changed”: false, “dest”: “/root/”, “failed”: true, “gid”: 0, “group”: “root”, “mode”: “0755”, “msg”: “Request failed”, “owner”: “root”, “response”: “OK (unknown bytes)”, “secontext”: …

---

## [url requires slash at end regex\_replace filter](https://forum.ansible.com/t/url-requires-slash-at-end-regex-replace-filter/21621)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 10:57am UTC](https://forum.ansible.com/t/url-requires-slash-at-end-regex-replace-filter/21621 "2016-06-01T10:57:08Z")

</div>

I’m trying to create a template which contains a URL and must always have a / on the end. So if jenkins\_master\_url is ‘https://xyz.com’ ansible must add a / If someone could help me with the regex\_replace I’d be most gr…

---

## [No Networking Working Group IRC Meeting today](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21630)

<div class="topic-metadata">

**Author:** [@psprygada](https://forum.ansible.com/u/psprygada)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:28am UTC](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21630 "2016-06-01T10:28:05Z")

</div>

We will resume at our normal time next week

---

## [No Networking Working Group IRC Meeting today](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21629)

<div class="topic-metadata">

**Author:** [@psprygada](https://forum.ansible.com/u/psprygada)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:27am UTC](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21629 "2016-06-01T10:27:05Z")

</div>

We will resume at our regular time next week.

---

## [new option "project" in ansible-modules-core/cloud/openstack/os\_router.py](https://forum.ansible.com/t/new-option-project-in-ansible-modules-core-cloud-openstack-os-router-py/21628)

<div class="topic-metadata">

**Author:** [@Mario\_David](https://forum.ansible.com/u/Mario_David)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:22am UTC](https://forum.ansible.com/t/new-option-project-in-ansible-modules-core-cloud-openstack-os-router-py/21628 "2016-06-01T10:22:33Z")

</div>

hi all use case: I am an admin of openstack infra managed mostly by ansible in particular the admin manages the creation of new “project” that include the initial setup of the network it includes creation of router f…

---

## [fetch stdout in ansible 2.0](https://forum.ansible.com/t/fetch-stdout-in-ansible-2-0/21622)

<div class="topic-metadata">

**Author:** [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 1:16am UTC](https://forum.ansible.com/t/fetch-stdout-in-ansible-2-0/21622 "2016-06-01T01:16:52Z")

</div>

in ansible 1.x, we can do results = runner.run() to retrieve stdout. See https://github.com/networktocode/ntc-ansible/issues/108, I wonder it is possible in ansible 2.0 to do similar thing? I understand that it can be…

---

## [ansible unable to initiate SSH sessions to clients on OS X](https://forum.ansible.com/t/ansible-unable-to-initiate-ssh-sessions-to-clients-on-os-x/21619)

<div class="topic-metadata">

**Author:** [@Greg\_Chavez](https://forum.ansible.com/u/Greg_Chavez)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 9:23pm UTC](https://forum.ansible.com/t/ansible-unable-to-initiate-ssh-sessions-to-clients-on-os-x/21619 "2016-05-31T21:23:39Z")

</div>

Did you roughly follow the instructions here, particularly the part about installing Xcode: https://valdhaus.co/writings/ansible-mac-osx/

---

## [composer module | config command always returns changed](https://forum.ansible.com/t/composer-module-config-command-always-returns-changed/21616)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 7:41pm UTC](https://forum.ansible.com/t/composer-module-config-command-always-returns-changed/21616 "2016-05-31T19:41:21Z")

</div>

OS X 10.10.5 Python 2.7.11 Ansible 2.0.2.0 remote: Ubuntu 14.04.4 LTS remote: Python 2.7.6 remote: PHP 5.5.9 remote: Composer version 1.2-dev I notice in a play with the composer module that every invocation of c…

---

## [Ansible 1.8 ansible\_check\_mode](https://forum.ansible.com/t/ansible-1-8-ansible-check-mode/21614)

<div class="topic-metadata">

**Author:** [@anderson.goulart](https://forum.ansible.com/u/anderson.goulart)\
**Replies:** 2\
**Last updated:** [May 31, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-1-8-ansible-check-mode/21614 "2016-05-31T19:40:47Z")

</div>

Hi, Some remote modules doesn’t support check\_mode, which means they break every time I use them on some role. I saw \[1\] that the variable ansible\_check\_mode is only available on ansible 1.9, but we are still using 1.8.…

---

## [check for FQDN](https://forum.ansible.com/t/check-for-fqdn/21615)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 7:34pm UTC](https://forum.ansible.com/t/check-for-fqdn/21615 "2016-05-31T19:34:01Z")

</div>

I need to ensure that the /etc/sysconfig/network file contains the FQDN on a good number of hosts. I think the lineinfile module would be helpful here. But I’m sure how to write the Ansible script to do so. Any advice? T…

---

## [How to loop through blockinfile?](https://forum.ansible.com/t/how-to-loop-through-blockinfile/21613)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 5:50pm UTC](https://forum.ansible.com/t/how-to-loop-through-blockinfile/21613 "2016-05-31T17:50:29Z")

</div>

I have the following task, which appears to execute successfully, but I end up with only one block (the last), while I actually want to have a block for each item entered into my file. How do I do that? task: name: co…

---

## [Prevent YAML errors with a linter](https://forum.ansible.com/t/prevent-yaml-errors-with-a-linter/21596)

<div class="topic-metadata">

**Author:** [@Adrien\_Verge](https://forum.ansible.com/u/Adrien_Verge)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 5:13pm UTC](https://forum.ansible.com/t/prevent-yaml-errors-with-a-linter/21596 "2016-05-31T17:13:07Z")

</div>

Hi all o/ Unlike Python, YAML source is not checked and some errors like key duplicates enter the code base. For example, \`wait\_timeout\` key is repeated twice at some places (with different values). I propose the use…

---

## [New Modules Report, 31-May-2016](https://forum.ansible.com/t/new-modules-report-31-may-2016/21612)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 4:41pm UTC](https://forum.ansible.com/t/new-modules-report-31-may-2016/21612 "2016-05-31T16:41:49Z")

</div>

189 modules are waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: add fleet\_facts module which gathers information about CoreOS clusters https://github.com/ansible/an…

---

## [Trouble connecting to Windows remote node via Kerberos](https://forum.ansible.com/t/trouble-connecting-to-windows-remote-node-via-kerberos/21587)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 3\
**Last updated:** [May 31, 2016, 4:01pm UTC](https://forum.ansible.com/t/trouble-connecting-to-windows-remote-node-via-kerberos/21587 "2016-05-31T16:01:22Z")

</div>

Control Node: CentOS 7 Ansible 2.1 pywinrm version from May 19th, 2016 Remote Node: Windows 7 Powershell 3 I’m able to connect to my Windows remote node just fine with the powershell setting winrm/co…

---

## [Stop tasks from executing if any task fails?](https://forum.ansible.com/t/stop-tasks-from-executing-if-any-task-fails/21608)

<div class="topic-metadata">

**Author:** [@Jahedh\_Mahmud](https://forum.ansible.com/u/Jahedh_Mahmud)\
**Replies:** 2\
**Last updated:** [May 31, 2016, 3:21pm UTC](https://forum.ansible.com/t/stop-tasks-from-executing-if-any-task-fails/21608 "2016-05-31T15:21:27Z")

</div>

Hello I’m new to Ansible and have been researching a way to stop a task from making a change if any of the tasks in the playbook fail. Is there a way to do this? my playbook has three tasks, if the install Django fails…

---

## [Ansible lost tmp dir when run script module](https://forum.ansible.com/t/ansible-lost-tmp-dir-when-run-script-module/21603)

<div class="topic-metadata">

**Author:** [@Andy3](https://forum.ansible.com/u/Andy3)\
**Replies:** 10\
**Last updated:** [May 31, 2016, 2:03pm UTC](https://forum.ansible.com/t/ansible-lost-tmp-dir-when-run-script-module/21603 "2016-05-31T14:03:24Z")

</div>

Hi experts, In our test environment, some test cases will failed due to ansible run script moudle, this is hard to reproduce, so I write a script to reproduce this issue, below is the detail a bout this bug: ANSIBLE VE…

---

## [ansible synchronize & vagrant](https://forum.ansible.com/t/ansible-synchronize-vagrant/21609)

<div class="topic-metadata">

**Author:** [@Bendt\_Alphonse](https://forum.ansible.com/u/Bendt_Alphonse)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 12:52pm UTC](https://forum.ansible.com/t/ansible-synchronize-vagrant/21609 "2016-05-31T12:52:09Z")

</div>

Hi there, i am trying to ansible for provisioning of a vagrant box. It seems that the synchronize task does not work reliably. It seems that rsync targets the host machine instead of the vagrant target machine: Ansib…

---

## [Finding key in list of dicts in when](https://forum.ansible.com/t/finding-key-in-list-of-dicts-in-when/21579)

<div class="topic-metadata">

**Author:** [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Replies:** 3\
**Last updated:** [May 31, 2016, 7:49am UTC](https://forum.ansible.com/t/finding-key-in-list-of-dicts-in-when/21579 "2016-05-31T07:49:51Z")

</div>

Hi, Related to the recent mount deprecation thread: command: mount /srv when: “‘/srv’ not in \[x\[‘mount’\] for x in ansible\_mounts\]” But it seems that when statement is too complex. Any ideas how to express that in a …

---

## [Keeping old Ansible PPA repo versions](https://forum.ansible.com/t/keeping-old-ansible-ppa-repo-versions/17850)

<div class="topic-metadata">

**Author:** [@Rob\_Zienert](https://forum.ansible.com/u/Rob_Zienert)\
**Replies:** 11\
**Last updated:** [May 31, 2016, 7:37am UTC](https://forum.ansible.com/t/keeping-old-ansible-ppa-repo-versions/17850 "2016-05-31T07:37:16Z")

</div>

With the regressions in 1.9.0 related to the s3 module\[0\], I think the Ansible package repos really need to keep more than the HEAD stable version in its versions list. When 1.9.0 was released yesterday, all of my compan…

---

## [Ansible vars like "Current Playbook" "Current Task"](https://forum.ansible.com/t/ansible-vars-like-current-playbook-current-task/21600)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [May 30, 2016, 6:02pm UTC](https://forum.ansible.com/t/ansible-vars-like-current-playbook-current-task/21600 "2016-05-30T18:02:15Z")

</div>

Does Ansible keep track of a “current playbook name” or “current task name” as a variable? I want to build a custom email role which playbooks/tasks can invoke. This email function would print out the playbook name lik…

---

## [How ansible handle ini config file](https://forum.ansible.com/t/how-ansible-handle-ini-config-file/21606)

<div class="topic-metadata">

**Author:** [@Gang\_Xu](https://forum.ansible.com/u/Gang_Xu)\
**Replies:** 0\
**Last updated:** [May 30, 2016, 1:32pm UTC](https://forum.ansible.com/t/how-ansible-handle-ini-config-file/21606 "2016-05-30T13:32:45Z")

</div>

I have many ini format config files, below is template \[DEFAULT\] bbb=bbbbb \[CONNECTION\] ddd=ddddd I have below ansible playbooks segment name: Setup ini config file ini\_file: dest=/etc/test.conf section={{ item.0 …

---

## [openSUSE Leap: Installing rsyslog with zypper module](https://forum.ansible.com/t/opensuse-leap-installing-rsyslog-with-zypper-module/21527)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 3\
**Last updated:** [May 30, 2016, 12:49pm UTC](https://forum.ansible.com/t/opensuse-leap-installing-rsyslog-with-zypper-module/21527 "2016-05-30T12:49:03Z")

</div>

Dear all, does the zypper module combine all calls made with with\_items into on single command like the yum module does? I guess not... Target Host is a VM with openSUSE Leap 42.1 I want to install rsyslog, which con…

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

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