# Latest

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

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

**Page:** 1037

---

## [Search Path for Playbooks?](https://forum.ansible.com/t/search-path-for-playbooks/13090)

<div class="topic-metadata">

**Author:** [@Andy\_L](https://forum.ansible.com/u/Andy_L)\
**Replies:** 8\
**Last updated:** [July 11, 2013, 12:59am UTC](https://forum.ansible.com/t/search-path-for-playbooks/13090 "2013-07-11T00:59:28Z")

</div>

I’m a newbie planning to use Ansible in a multi-project / multi-developer environment. I envision creating a set of ‘system-wide’ playbooks, augmented by project-specific playbooks that extend and perhaps overlay the ‘s…

---

## [Where to put reusable playbooks?](https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097)

<div class="topic-metadata">

**Author:** [@Kai\_Weber](https://forum.ansible.com/u/Kai_Weber)\
**Replies:** 1\
**Last updated:** [July 10, 2013, 8:58pm UTC](https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097 "2013-07-10T20:58:01Z")

</div>

Where should I put reusable playbooks and how do I reference them? I started using ansible and followed the Best Practice guide to create my initial project layout. Now I have searched and found some useful playbooks …

---

## [Best Pattern for Installing RPMs](https://forum.ansible.com/t/best-pattern-for-installing-rpms/13096)

<div class="topic-metadata">

**Author:** [@Michael\_Ni](https://forum.ansible.com/u/Michael_Ni)\
**Replies:** 1\
**Last updated:** [July 10, 2013, 8:55pm UTC](https://forum.ansible.com/t/best-pattern-for-installing-rpms/13096 "2013-07-10T20:55:58Z")

</div>

I’m new to Ansible so forgive me if I sound newbish. Ansible includes a yum module that works great. If I want to hand pick my rpms and install them, what is the best pattern to do so? By the way I’m on CentOS I can …

---

## [include + with\_items](https://forum.ansible.com/t/include-with-items/13091)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 6\
**Last updated:** [July 10, 2013, 8:52pm UTC](https://forum.ansible.com/t/include-with-items/13091 "2013-07-10T20:52:14Z")

</div>

Michael, What exactly is the (technical?) problem doing include + with\_items? I know you do not recommend it, and are very vocal on that, but I never really understood exactly why. Is it a syntax problem, difficult to…

---

## [Check if computers are off before action](https://forum.ansible.com/t/check-if-computers-are-off-before-action/13095)

<div class="topic-metadata">

**Author:** [@Francois\_Legrand](https://forum.ansible.com/u/Francois_Legrand)\
**Replies:** 8\
**Last updated:** [July 10, 2013, 3:39pm UTC](https://forum.ansible.com/t/check-if-computers-are-off-before-action/13095 "2013-07-10T15:39:17Z")

</div>

Hi all, I use ansible to shutdown some computer. I need to do it in a certain order. My point is that I would like to check first if some machines are really off before stopping a second group of computers. More speci…

---

## [Ability to do nested loops now in 1.1](https://forum.ansible.com/t/ability-to-do-nested-loops-now-in-1-1/12483)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [July 10, 2013, 2:51pm UTC](https://forum.ansible.com/t/ability-to-do-nested-loops-now-in-1-1/12483 "2013-07-10T14:51:08Z")

</div>

Here's an example of a new nested loop feature I just coded up. https://github.com/ansible/ansible/blob/devel/examples/playbooks/loop\_nested.yml Notice how the "$item" returned is actually a multiple item list. Three …

---

## [Change OpenStack modules to read credentials from environment if not in parameters?](https://forum.ansible.com/t/change-openstack-modules-to-read-credentials-from-environment-if-not-in-parameters/13094)

<div class="topic-metadata">

**Author:** [@Darragh\_O\_Reilly](https://forum.ansible.com/u/Darragh_O_Reilly)\
**Replies:** 6\
**Last updated:** [July 10, 2013, 2:46pm UTC](https://forum.ansible.com/t/change-openstack-modules-to-read-credentials-from-environment-if-not-in-parameters/13094 "2013-07-10T14:46:42Z")

</div>

Today you have to specify user/password/tenant/url with every task. It would be nice if the modules could read these from the environment instead - it would make playbooks more concise. The EC2 module checks the environm…

---

## [Ansible 1.0 lookup plugin usage in with\_fileglob](https://forum.ansible.com/t/ansible-1-0-lookup-plugin-usage-in-with-fileglob/13084)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 2\
**Last updated:** [July 10, 2013, 1:19am UTC](https://forum.ansible.com/t/ansible-1-0-lookup-plugin-usage-in-with-fileglob/13084 "2013-07-10T01:19:07Z")

</div>

I’m having some trouble getting the following code in my playbook to run: name: “copy executable MX scripts out to nodes” action: copy src=$item dest=/opt/mx-scripts mode=755 with\_fileglob: $ENV(DEPLOY\_HOME)/conf/com…

---

## [compare files, both on server](https://forum.ansible.com/t/compare-files-both-on-server/13089)

<div class="topic-metadata">

**Author:** [@celine](https://forum.ansible.com/u/celine)\
**Replies:** 2\
**Last updated:** [July 10, 2013, 1:17am UTC](https://forum.ansible.com/t/compare-files-both-on-server/13089 "2013-07-10T01:17:48Z")

</div>

Hi, I wish to check whether 2 files, both on server, has the same content. tasks: -name: Compare files, both on server side shell: diff /home/celine/Desktop/folder/file1 /home/celine/Desktop/folder/inner/file2 \>\>outp…

---

## [set\_fact question](https://forum.ansible.com/t/set-fact-question/13076)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 7\
**Last updated:** [July 10, 2013, 1:16am UTC](https://forum.ansible.com/t/set-fact-question/13076 "2013-07-10T01:16:52Z")

</div>

Hi I’m trying to use set\_fact but am struggling with extracting it’s contents later in the playbook: name: set ldap\_host action: set\_fact ldap\_host=“blah” name: check ldap\_host fail: msg=“something screwed up” o…

---

## [variable expansion in -name: inconsistent?](https://forum.ansible.com/t/variable-expansion-in-name-inconsistent/13092)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 2\
**Last updated:** [July 10, 2013, 1:06am UTC](https://forum.ansible.com/t/variable-expansion-in-name-inconsistent/13092 "2013-07-10T01:06:12Z")

</div>

I have been reviewing 1.2 documentation and playing with some examples along the way. IMHO, the handling of variable expansion in --name is inconsistent so far. variables defined in a playbook, such as host, gets expande…

---

## [local\_action and register](https://forum.ansible.com/t/local-action-and-register/12804)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 8\
**Last updated:** [July 10, 2013, 1:04am UTC](https://forum.ansible.com/t/local-action-and-register/12804 "2013-07-10T01:04:49Z")

</div>

Hi there I have some troubles to get register variable from local\_action. Here is what I have:

---

## [roles and privileges confusion](https://forum.ansible.com/t/roles-and-privileges-confusion/13088)

<div class="topic-metadata">

**Author:** [@weiwei](https://forum.ansible.com/u/weiwei)\
**Replies:** 1\
**Last updated:** [July 9, 2013, 2:56pm UTC](https://forum.ansible.com/t/roles-and-privileges-confusion/13088 "2013-07-09T14:56:14Z")

</div>

Hi I just switched to Ansible 1.2, and tried using roles. But I am a bit confused about roles after reading ‘Best practices’. There are two kinds of tasks in one role, ones need super user privileges and the others don…

---

## [Firefox plugin](https://forum.ansible.com/t/firefox-plugin/13086)

<div class="topic-metadata">

**Author:** [@mujahideen.solutions](https://forum.ansible.com/u/mujahideen.solutions)\
**Replies:** 1\
**Last updated:** [July 9, 2013, 12:36am UTC](https://forum.ansible.com/t/firefox-plugin/13086 "2013-07-09T00:36:36Z")

</div>

I’m currently messing around with Firefox’s config with python, I’m going to make a standalone “CLI” program, and a ansible module. Not being able to change Firefox’s settings externally annoys me. I shouldn’t procrastin…

---

## [AnsibleFest in San Francisco - October 22nd, 2013 - CFP now open!](https://forum.ansible.com/t/ansiblefest-in-san-francisco-october-22nd-2013-cfp-now-open/13085)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [July 8, 2013, 8:29pm UTC](https://forum.ansible.com/t/ansiblefest-in-san-francisco-october-22nd-2013-cfp-now-open/13085 "2013-07-08T20:29:39Z")

</div>

Hi everyone, AnsibleFest in Boston went so well we decided to do something on the west coast this year too – this time, October 22nd in downtown San Francisco. (We plan to do something in Europe next year too.) Like Bo…

---

## [Ansible Monit module problem](https://forum.ansible.com/t/ansible-monit-module-problem/13072)

<div class="topic-metadata">

**Author:** [@Cristobal\_Rosa](https://forum.ansible.com/u/Cristobal_Rosa)\
**Replies:** 5\
**Last updated:** [July 8, 2013, 1:17pm UTC](https://forum.ansible.com/t/ansible-monit-module-problem/13072 "2013-07-08T13:17:07Z")

</div>

I’m testing the monit module, and I think the states are wrong, or maybe I’m making a mistake Whether I run summary, I get: monit summary The Monit daemon 5.1.1 uptime: 6m Process ‘nfsen’ running Process ‘mongod’ ru…

---

## [Searching for eficient way to check group of variables](https://forum.ansible.com/t/searching-for-eficient-way-to-check-group-of-variables/13071)

<div class="topic-metadata">

**Author:** [@David\_Karban](https://forum.ansible.com/u/David_Karban)\
**Replies:** 5\
**Last updated:** [July 8, 2013, 8:39am UTC](https://forum.ansible.com/t/searching-for-eficient-way-to-check-group-of-variables/13071 "2013-07-08T08:39:10Z")

</div>

Hello, I recently wrote role, that set up an openvz on centos host, including network configuration. For that purpose, I have variables ip, gateway, netmask, dns1 and dns2 in host\_vars/. Variables are mandatory, I cann…

---

## [website merging!](https://forum.ansible.com/t/website-merging/12931)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 10\
**Last updated:** [July 7, 2013, 10:00pm UTC](https://forum.ansible.com/t/website-merging/12931 "2013-07-07T22:00:03Z")

</div>

Hi everyone, You may be noticing ansible.cc will redirect to a (newly renovated) ansibleworks.com pretty soon. The previous websites were built with a combined $31 in template investments on bootstrap themes, and it was…

---

## [vars\_prompt and playbook includes in our attempt to share "clever" playbooks](https://forum.ansible.com/t/vars-prompt-and-playbook-includes-in-our-attempt-to-share-clever-playbooks/13080)

<div class="topic-metadata">

**Author:** [@Sebastien\_Pastor](https://forum.ansible.com/u/Sebastien_Pastor)\
**Replies:** 2\
**Last updated:** [July 7, 2013, 1:07pm UTC](https://forum.ansible.com/t/vars-prompt-and-playbook-includes-in-our-attempt-to-share-clever-playbooks/13080 "2013-07-07T13:07:30Z")

</div>

Well … the bug is that 2 prompts will be fired instead of one in the case where only one group is filled with hosts.

---

## [Migrating from the use of Python expressions and only\_if to the new style of variables and 'when'?](https://forum.ansible.com/t/migrating-from-the-use-of-python-expressions-and-only-if-to-the-new-style-of-variables-and-when/13078)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 13\
**Last updated:** [July 7, 2013, 12:58pm UTC](https://forum.ansible.com/t/migrating-from-the-use-of-python-expressions-and-only-if-to-the-new-style-of-variables-and-when/13078 "2013-07-07T12:58:58Z")

</div>

In an existing playbook of mine, so far I have the following: vars: is\_ubuntu: “‘$ansible\_distribution’ == ‘Ubuntu’” is\_rh: “‘$ansible\_distribution’ == ‘Fedora’ or ‘$ansible\_distribution’ == ‘Scientific’ or ‘$ansible\_…

---

## [Ansible 1.2.2: Playbook connection does not work for sudo\_user defined in group\_vars](https://forum.ansible.com/t/ansible-1-2-2-playbook-connection-does-not-work-for-sudo-user-defined-in-group-vars/13079)

<div class="topic-metadata">

**Author:** [@Michael\_Leow](https://forum.ansible.com/u/Michael_Leow)\
**Replies:** 3\
**Last updated:** [July 7, 2013, 12:26pm UTC](https://forum.ansible.com/t/ansible-1-2-2-playbook-connection-does-not-work-for-sudo-user-defined-in-group-vars/13079 "2013-07-07T12:26:31Z")

</div>

Hi, Need help to figure out if the following is a bug with Ansible 1.2.2: Scenario

---

## [vars\_prompt and playbook includes in our attempt to share "clever" playbooks](https://forum.ansible.com/t/vars-prompt-and-playbook-includes-in-our-attempt-to-share-clever-playbooks/13074)

<div class="topic-metadata">

**Author:** [@Sebastien\_Pastor](https://forum.ansible.com/u/Sebastien_Pastor)\
**Replies:** 3\
**Last updated:** [July 6, 2013, 7:49pm UTC](https://forum.ansible.com/t/vars-prompt-and-playbook-includes-in-our-attempt-to-share-clever-playbooks/13074 "2013-07-06T19:49:32Z")

</div>

Hello all, In our quest to always trying to better share our playbooks we came up with this structure: common /playbooks/ system\_update.yml /debian\_6.0.7\_x86\_64/ system\_update.yml roles/ … /redhat\_5.7\_x86\_64/ /…

---

## [After upgrading from 1.1 to 1.2, the user module no longer picks up variables defined in vars\_file if relative path is used](https://forum.ansible.com/t/after-upgrading-from-1-1-to-1-2-the-user-module-no-longer-picks-up-variables-defined-in-vars-file-if-relative-path-is-used/13077)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 5\
**Last updated:** [July 6, 2013, 2:46am UTC](https://forum.ansible.com/t/after-upgrading-from-1-1-to-1-2-the-user-module-no-longer-picks-up-variables-defined-in-vars-file-if-relative-path-is-used/13077 "2013-07-06T02:46:59Z")

</div>

I upgrade ansible from 1.1 to 1.2 a few days ago (by git clone and then make deb) on my notebook running Ubuntu 11.04 64 bit. I soon noticed that my existing playbook for adding users no longer sets a user’s password co…

---

## [capturing logs from ansible/ansible-playbook runs](https://forum.ansible.com/t/capturing-logs-from-ansible-ansible-playbook-runs/13064)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 12\
**Last updated:** [July 6, 2013, 1:09am UTC](https://forum.ansible.com/t/capturing-logs-from-ansible-ansible-playbook-runs/13064 "2013-07-06T01:09:49Z")

</div>

I wanted something like sfromm's ansible-report system but for a variety of reasons I was concerned about the single sqlite db. So I started hacking up a solution for lots of simultaneous runs of ansible and capturing…

---

## [Controlling order in which hosts are accessed](https://forum.ansible.com/t/controlling-order-in-which-hosts-are-accessed/13075)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [July 5, 2013, 10:38pm UTC](https://forum.ansible.com/t/controlling-order-in-which-hosts-are-accessed/13075 "2013-07-05T22:38:31Z")

</div>

Sorry for asking something that sounds like an FAQ, but my Google-foo is off today and I can’t find the answer to this question: using “ansible” (not “ansible-playbook”) is there a way to control the order in which hosts…

---

## [Prevent fake "changed"](https://forum.ansible.com/t/prevent-fake-changed/13073)

<div class="topic-metadata">

**Author:** [@Adrien\_Montfort](https://forum.ansible.com/u/Adrien_Montfort)\
**Replies:** 2\
**Last updated:** [July 5, 2013, 4:29pm UTC](https://forum.ansible.com/t/prevent-fake-changed/13073 "2013-07-05T16:29:37Z")

</div>

Hello, I’m performing the following tasks : name: download ElasticSearch package get\_url: url=http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-{{elasticsearch\_version}}.deb dest=/home/ubu…

---

## [1.2.1 release](https://forum.ansible.com/t/1-2-1-release/13070)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [July 5, 2013, 2:20am UTC](https://forum.ansible.com/t/1-2-1-release/13070 "2013-07-05T02:20:49Z")

</div>

1.2.1 has been released and is now available at ansibleworks.com/releases and via PyPi (pip install ansible). 1.2.1 is a limited point release, designed such that those who want to enable SSH host key checking can easil…

---

## [Secret variables / data: encryption](https://forum.ansible.com/t/secret-variables-data-encryption/13042)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 65\
**Last updated:** [July 4, 2013, 11:59pm UTC](https://forum.ansible.com/t/secret-variables-data-encryption/13042 "2013-07-04T23:59:18Z")

</div>

I believe this topic has been requested before, and we talked about it at some length this afternoon in Antwerp. People wanting to store "confidential" variables with their playbooks, say, in a repo, cannot really do …

---

## [FreeBSD portinstall module](https://forum.ansible.com/t/freebsd-portinstall-module/13069)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 0\
**Last updated:** [July 4, 2013, 9:52pm UTC](https://forum.ansible.com/t/freebsd-portinstall-module/13069 "2013-07-04T21:52:29Z")

</div>

Hi All, If you are a FreeBSD user you might be interested to look at my portinstall module: https://github.com/ansible/ansible/pull/3419 Comments most appreciated (especially around using git, struggling to make a clea…

---

## [gather further host list to run next play](https://forum.ansible.com/t/gather-further-host-list-to-run-next-play/13067)

<div class="topic-metadata">

**Author:** [@mastermind](https://forum.ansible.com/u/mastermind)\
**Replies:** 6\
**Last updated:** [July 4, 2013, 8:46pm UTC](https://forum.ansible.com/t/gather-further-host-list-to-run-next-play/13067 "2013-07-04T20:46:22Z")

</div>

Hi, i guys, is there a possibility to do stuff like the following? my playbook:

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

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