# Latest

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

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

**Page:** 1039

---

## ["ansible\_\*" variables not usable in playbook?](https://forum.ansible.com/t/ansible-variables-not-usable-in-playbook/13038)

<div class="topic-metadata">

**Author:** [@Bo1](https://forum.ansible.com/u/Bo1)\
**Replies:** 1\
**Last updated:** [June 28, 2013, 4:39pm UTC](https://forum.ansible.com/t/ansible-variables-not-usable-in-playbook/13038 "2013-06-28T16:39:36Z")

</div>

Howdy! I have been enjoying Ansible (v1.3, I believe, from GitHub) but something has really got me stumped. Question 1: Am I able to reference ansible\_\* facts within a playbook if the facts have been gathered? Specific…

---

## [problems with variables being passed to a role](https://forum.ansible.com/t/problems-with-variables-being-passed-to-a-role/13035)

<div class="topic-metadata">

**Author:** [@Jimmy\_Tang](https://forum.ansible.com/u/Jimmy_Tang)\
**Replies:** 6\
**Last updated:** [June 28, 2013, 4:28pm UTC](https://forum.ansible.com/t/problems-with-variables-being-passed-to-a-role/13035 "2013-06-28T16:28:13Z")

</div>

Hi All I’m getting an error like this… TASK: \[create user ‘{{opennebula\_db\_user}}’ with password ‘{{opennebula\_db\_pass}}’ for ‘{{opennebula\_db}}’ and grant all priveleges\] \*\*\* failed: \[192.168.206.110\] =\> {“failed”: t…

---

## [implementation error -- msg to explain the error is required](https://forum.ansible.com/t/implementation-error-msg-to-explain-the-error-is-required/13024)

<div class="topic-metadata">

**Author:** [@James\_Martin](https://forum.ansible.com/u/James_Martin)\
**Replies:** 3\
**Last updated:** [June 28, 2013, 1:08pm UTC](https://forum.ansible.com/t/implementation-error-msg-to-explain-the-error-is-required/13024 "2013-06-28T13:08:58Z")

</div>

I'm getting this golden nugget when trying to launch a stack with the cloudformation module: I found the relevant code in module\_common.py, but I'm not sure what it's trying to tell me. Any ideas? "TASK: \[launch zom…

---

## [interrupting](https://forum.ansible.com/t/interrupting/13033)

<div class="topic-metadata">

**Author:** [@Nandor\_Sivok](https://forum.ansible.com/u/Nandor_Sivok)\
**Replies:** 1\
**Last updated:** [June 28, 2013, 12:40pm UTC](https://forum.ansible.com/t/interrupting/13033 "2013-06-28T12:40:35Z")

</div>

Hey Michael, Guys, Here is a thing which concerns me: \[root@cobbler.bfc ~\]# ansible app01.bfc.kinja.com -m shell -a “ping index.hu” ^C32 ERROR: interrupted \[root@cobbler.bfc ~\]# ansible app01.bfc.kinja.com -m shell …

---

## [playing a role multiple time with variable](https://forum.ansible.com/t/playing-a-role-multiple-time-with-variable/13027)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 4\
**Last updated:** [June 28, 2013, 7:27am UTC](https://forum.ansible.com/t/playing-a-role-multiple-time-with-variable/13027 "2013-06-28T07:27:07Z")

</div>

Hi all, I created a tomcat role to create a tomcat instance. And I’m wondering what is the best way to pass the instance parameters to it ? My playbook looks like :

---

## [ansible\_pull without git](https://forum.ansible.com/t/ansible-pull-without-git/13032)

<div class="topic-metadata">

**Author:** [@Boris2](https://forum.ansible.com/u/Boris2)\
**Replies:** 1\
**Last updated:** [June 28, 2013, 2:58am UTC](https://forum.ansible.com/t/ansible-pull-without-git/13032 "2013-06-28T02:58:32Z")

</div>

Hi, Would it be possible to pull the playbooks from some other source (like s3)? For me and may be a few other ansible users, who are not using git for SCM an alternative could be pushing playbook bundle to a cloud stor…

---

## [New Adopter, Some Thoughts](https://forum.ansible.com/t/new-adopter-some-thoughts/13030)

<div class="topic-metadata">

**Author:** [@Kevin\_Montuori](https://forum.ansible.com/u/Kevin_Montuori)\
**Replies:** 1\
**Last updated:** [June 27, 2013, 10:44pm UTC](https://forum.ansible.com/t/new-adopter-some-thoughts/13030 "2013-06-27T22:44:28Z")

</div>

Hi All -- I've been leveraging Ansible for a few weeks now to provision and configure ephemeral "demo" and "development" instances on EC2, to the great delight of the dev and product management teams I support. My h…

---

## [open-iscsi module](https://forum.ansible.com/t/open-iscsi-module/13029)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [June 27, 2013, 6:33pm UTC](https://forum.ansible.com/t/open-iscsi-module/13029 "2013-06-27T18:33:14Z")

</div>

Hi, I’ve been working on a module to manage iscsi targets on the ‘client’, using the open-iscsi stack. So far this works well in my environment, though the experience is limited to some particular uses cases at $WORK. …

---

## [hopefully quick question about jinja2 for loops and variables](https://forum.ansible.com/t/hopefully-quick-question-about-jinja2-for-loops-and-variables/13028)

<div class="topic-metadata">

**Author:** [@Jonathan1](https://forum.ansible.com/u/Jonathan1)\
**Replies:** 2\
**Last updated:** [June 27, 2013, 5:28pm UTC](https://forum.ansible.com/t/hopefully-quick-question-about-jinja2-for-loops-and-variables/13028 "2013-06-27T17:28:07Z")

</div>

Hi all, I am trying to iterate over a set of hosts in a jinja2 template almost exactly like this example from the Advanced Playbooks page: {% for host in groups\['app\_servers'\] %} {{ hostvars\[host\]\['ansible\_eth0'\]\['i…

---

## [Magic with ansible modules](https://forum.ansible.com/t/magic-with-ansible-modules/13023)

<div class="topic-metadata">

**Author:** [@Mario\_Adrian\_Lopez\_A](https://forum.ansible.com/u/Mario_Adrian_Lopez_A)\
**Replies:** 2\
**Last updated:** [June 27, 2013, 2:16pm UTC](https://forum.ansible.com/t/magic-with-ansible-modules/13023 "2013-06-27T14:16:06Z")

</div>

Is there a way to include my own magic in an ansible module? I’m writing some modules that can share code between them, so I was wondering if this was possible, Other idea that I had was just copying the code in the cl…

---

## [config parameters in a inventory file](https://forum.ansible.com/t/config-parameters-in-a-inventory-file/13026)

<div class="topic-metadata">

**Author:** [@shirou](https://forum.ansible.com/u/shirou)\
**Replies:** 1\
**Last updated:** [June 27, 2013, 1:21pm UTC](https://forum.ansible.com/t/config-parameters-in-a-inventory-file/13026 "2013-06-27T13:21:22Z")

</div>

Hello, I found these config parameters from docs/patterns.html. - ansible\_ssh\_host - ansible\_ssh\_port - ansible\_ssh\_user - ansible\_connection - ansible\_python\_interpreter But from the source code, I found at least…

---

## [.bashrc not being sourced](https://forum.ansible.com/t/bashrc-not-being-sourced/13022)

<div class="topic-metadata">

**Author:** [@Shahar\_Kedar](https://forum.ansible.com/u/Shahar_Kedar)\
**Replies:** 4\
**Last updated:** [June 26, 2013, 9:33pm UTC](https://forum.ansible.com/t/bashrc-not-being-sourced/13022 "2013-06-26T21:33:44Z")

</div>

Hi, I’m running a very simple ansible command: ansible staging -m shell -a ‘echo $PATH’ -c ssh I expect this command to return the same $PATH that’s printed when I run ‘echo $PATH’ when logging directly using SSH, how…

---

## [role var\_files and variable precedence](https://forum.ansible.com/t/role-var-files-and-variable-precedence/13015)

<div class="topic-metadata">

**Author:** [@Darryl\_Stoflet](https://forum.ansible.com/u/Darryl_Stoflet)\
**Replies:** 9\
**Last updated:** [June 26, 2013, 1:21pm UTC](https://forum.ansible.com/t/role-var-files-and-variable-precedence/13015 "2013-06-26T13:21:37Z")

</div>

The new roles feature in 1.2 provides a very interesting level of modularity and re-usability. While ansible is ‘batteries included’ because of its rich set of modules, roles seem like higher level service definitions (b…

---

## [Getting facts from hosts that are not the target of a playbook](https://forum.ansible.com/t/getting-facts-from-hosts-that-are-not-the-target-of-a-playbook/13010)

<div class="topic-metadata">

**Author:** [@Paulo\_Tioseco](https://forum.ansible.com/u/Paulo_Tioseco)\
**Replies:** 3\
**Last updated:** [June 26, 2013, 1:20pm UTC](https://forum.ansible.com/t/getting-facts-from-hosts-that-are-not-the-target-of-a-playbook/13010 "2013-06-26T13:20:08Z")

</div>

Hello Ansible Experts, How would I get a fact/variable from a host that is not the target of my playbook? I know that hostvars exist for this reason but since the hosts that I want to get variables from are not the tar…

---

## [Google Compute Engine users (GCE)](https://forum.ansible.com/t/google-compute-engine-users-gce/13019)

<div class="topic-metadata">

**Author:** [@Dave\_Cottlehuber](https://forum.ansible.com/u/Dave_Cottlehuber)\
**Replies:** 0\
**Last updated:** [June 26, 2013, 7:15am UTC](https://forum.ansible.com/t/google-compute-engine-users-gce/13019 "2013-06-26T07:15:23Z")

</div>

Hi there, Are there any other GCE users here? I’m interested in working together on integrating ansible & gce, despite my current lack of python skills. A+ Dave

---

## [sudo ssh password reading from command line](https://forum.ansible.com/t/sudo-ssh-password-reading-from-command-line/13018)

<div class="topic-metadata">

**Author:** [@jean-marc\_pouchoulon](https://forum.ansible.com/u/jean-marc_pouchoulon)\
**Replies:** 2\
**Last updated:** [June 26, 2013, 12:18am UTC](https://forum.ansible.com/t/sudo-ssh-password-reading-from-command-line/13018 "2013-06-26T00:18:07Z")

</div>

Helo ansible list, is there is a way to set sudo password from cli or variable in a playbook to permit batch mode without prompting? thanks in advance jean-marc

---

## [Simplify naming conventions: use item key instead of pkg/src/uri/etc](https://forum.ansible.com/t/simplify-naming-conventions-use-item-key-instead-of-pkg-src-uri-etc/13002)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 6\
**Last updated:** [June 25, 2013, 6:40am UTC](https://forum.ansible.com/t/simplify-naming-conventions-use-item-key-instead-of-pkg-src-uri-etc/13002 "2013-06-25T06:40:00Z")

</div>

Hi All, I’ve noticed that ansible is slightly harder to use than it can be: every command has its own idea of what the name of the main parameter is. i.e. “pkg”, “src”, “uri”. May I suggest this gets all changed to ite…

---

## [Ansible variables in when](https://forum.ansible.com/t/ansible-variables-in-when/12998)

<div class="topic-metadata">

**Author:** [@Mario\_Adrian\_Lopez\_A](https://forum.ansible.com/u/Mario_Adrian_Lopez_A)\
**Replies:** 6\
**Last updated:** [June 24, 2013, 3:39pm UTC](https://forum.ansible.com/t/ansible-variables-in-when/12998 "2013-06-24T15:39:35Z")

</div>

Hi Everyone. Currently I’m working in a script that should be capable of install software in different distros. But my problem is that I want to simplify my role conditions putting them in a file. For example: My com…

---

## [ansible best practices repo](https://forum.ansible.com/t/ansible-best-practices-repo/13014)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 0\
**Last updated:** [June 24, 2013, 4:36am UTC](https://forum.ansible.com/t/ansible-best-practices-repo/13014 "2013-06-24T04:36:15Z")

</div>

Hello, TL;DR; I came up on a Google search and I don’t want to mislead anyone. I just noticed that my repo I came up for a Google search of “ansible best practices” (To those of you who tried to search that, please cl…

---

## [Better way to check if file exists?](https://forum.ansible.com/t/better-way-to-check-if-file-exists/13009)

<div class="topic-metadata">

**Author:** [@Mark\_Mandel](https://forum.ansible.com/u/Mark_Mandel)\
**Replies:** 10\
**Last updated:** [June 24, 2013, 3:27am UTC](https://forum.ansible.com/t/better-way-to-check-if-file-exists/13009 "2013-06-24T03:27:56Z")

</div>

Hi all, I’m setting up my local machine provisioning on Ubuntu, and I find myself doing this pattern a lot for software that’s not managed by APT/PPA. E.g. Google Chrome. chrome name: See if chrome is installed comm…

---

## [User permissions issue.](https://forum.ansible.com/t/user-permissions-issue/13013)

<div class="topic-metadata">

**Author:** [@Jonathan\_Barronvill1](https://forum.ansible.com/u/Jonathan_Barronvill1)\
**Replies:** 6\
**Last updated:** [June 23, 2013, 8:59pm UTC](https://forum.ansible.com/t/user-permissions-issue/13013 "2013-06-23T20:59:02Z")

</div>

Hey all. I have a very simple VM that I’m attempting to do some basic provisioning on with Ansible through Vagrant: http://github.com/jonathanmarvens/working-vm. I’ve been having issues getting it to work. I know that …

---

## [Support for task timeouts with stdout/stderr](https://forum.ansible.com/t/support-for-task-timeouts-with-stdout-stderr/12984)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 4\
**Last updated:** [June 23, 2013, 6:18pm UTC](https://forum.ansible.com/t/support-for-task-timeouts-with-stdout-stderr/12984 "2013-06-23T18:18:18Z")

</div>

It would be tremendously useful if ansible supported timeouts for tasks, and if the task times out, then ansible outputs whatever was on stdout/stderr in the fail message. I got bitten today because a django “manage.py …

---

## [Google search for ansible](https://forum.ansible.com/t/google-search-for-ansible/13011)

<div class="topic-metadata">

**Author:** [@Rafal\_Sniezynski](https://forum.ansible.com/u/Rafal_Sniezynski)\
**Replies:** 1\
**Last updated:** [June 23, 2013, 5:33pm UTC](https://forum.ansible.com/t/google-search-for-ansible/13011 "2013-06-23T17:33:49Z")

</div>

Hi, For the last few days I’m observing ansible homepage and documentation dropping from Google search results (I used to find documentation sections this way). A search for “ansible.cc” returns the homepage with descri…

---

## [Roles syntax vs. actions or includes](https://forum.ansible.com/t/roles-syntax-vs-actions-or-includes/13004)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 9\
**Last updated:** [June 23, 2013, 4:34pm UTC](https://forum.ansible.com/t/roles-syntax-vs-actions-or-includes/13004 "2013-06-23T16:34:17Z")

</div>

Hello, is there a reason that a role needs to be parametrised like this:

---

## [Preserving list objects with Jinja2-style variables](https://forum.ansible.com/t/preserving-list-objects-with-jinja2-style-variables/13012)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 2\
**Last updated:** [June 23, 2013, 4:33pm UTC](https://forum.ansible.com/t/preserving-list-objects-with-jinja2-style-variables/13012 "2013-06-23T16:33:11Z")

</div>

Dear list, please consider this playbook: - name: test playbook hosts: localhost gather\_facts: no vars: mylist: - 1 - 2 - 3 othervar: '{{mylist}}' escape…

---

## [Idea: playing roles directly, implicit playbooks](https://forum.ansible.com/t/idea-playing-roles-directly-implicit-playbooks/12995)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 14\
**Last updated:** [June 23, 2013, 8:10am UTC](https://forum.ansible.com/t/idea-playing-roles-directly-implicit-playbooks/12995 "2013-06-23T08:10:06Z")

</div>

Dear list, have you ever wanted to "play" a role directly and found yourself in the position that you needed to whip up a playbook with mostly derived contents just in order to do that? For instance, I have a 'motd' …

---

## [multi-role organization and re-use](https://forum.ansible.com/t/multi-role-organization-and-re-use/12990)

<div class="topic-metadata">

**Author:** [@James\_Martin](https://forum.ansible.com/u/James_Martin)\
**Replies:** 27\
**Last updated:** [June 23, 2013, 8:04am UTC](https://forum.ansible.com/t/multi-role-organization-and-re-use/12990 "2013-06-23T08:04:47Z")

</div>

The purpose of this message is to come up with a best practices for role/playbook/library layout that encourages re-use and logically separates projects & roles into their own repositories. Just as an aside, I'm not …

---

## [Roles and playbooks in subdirectories](https://forum.ansible.com/t/roles-and-playbooks-in-subdirectories/13005)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 4\
**Last updated:** [June 22, 2013, 6:13pm UTC](https://forum.ansible.com/t/roles-and-playbooks-in-subdirectories/13005 "2013-06-22T18:13:59Z")

</div>

Dear list, one thing that is really nice about Ansible is how the playbook becomes the centre of execution, and if you run ansible-playbook /path/to/my/playbook then that directory is where Ansible will also look f…

---

## [using {{item}} inside template](https://forum.ansible.com/t/using-item-inside-template/12967)

<div class="topic-metadata">

**Author:** [@javawebdeveloper](https://forum.ansible.com/u/javawebdeveloper)\
**Replies:** 5\
**Last updated:** [June 22, 2013, 5:37pm UTC](https://forum.ansible.com/t/using-item-inside-template/12967 "2013-06-22T17:37:22Z")

</div>

Hello, I have a template statement: name: Setup apache config for site template: src=generic\_site.j2 dest=/etc/apache2/sites-available/{{ item }} group=root owner=root with\_items: ${sites} #where sites are: sites: …

---

## [Reminder: be sure to share what version of Ansible you are using](https://forum.ansible.com/t/reminder-be-sure-to-share-what-version-of-ansible-you-are-using/13008)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 22, 2013, 5:26pm UTC](https://forum.ansible.com/t/reminder-be-sure-to-share-what-version-of-ansible-you-are-using/13008 "2013-06-22T17:26:30Z")

</div>

At this point we have a lot of folks on the list running about 4 different versions of Ansible. When asking a question (especially about a bug) it helps to share the output of “ansible --version” Also, if you see a que…

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

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