# Latest

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

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

**Page:** 1031

---

## [Are there any try-catch/rollback mode or error handler?](https://forum.ansible.com/t/are-there-any-try-catch-rollback-mode-or-error-handler/13300)

<div class="topic-metadata">

**Author:** [@Cristobal\_Rosa](https://forum.ansible.com/u/Cristobal_Rosa)\
**Replies:** 2\
**Last updated:** [August 14, 2013, 11:18am UTC](https://forum.ansible.com/t/are-there-any-try-catch-rollback-mode-or-error-handler/13300 "2013-08-14T11:18:03Z")

</div>

Hi guys!, I would like to know if there are any ‘try - catch / rollback’ mode, I mean, I’m running a playbook with some tasks, when a given task crashes, I would like to run an external error recovery task ¿Can I do tha…

---

## [Ansible REST API documentation ?](https://forum.ansible.com/t/ansible-rest-api-documentation/13298)

<div class="topic-metadata">

**Author:** [@Kavin\_Kankeshwar](https://forum.ansible.com/u/Kavin_Kankeshwar)\
**Replies:** 1\
**Last updated:** [August 14, 2013, 11:12am UTC](https://forum.ansible.com/t/ansible-rest-api-documentation/13298 "2013-08-14T11:12:55Z")

</div>

If i had to build something or /use Ansible REST API , How do i get started, tried to look at documentation did not find it. Maybe missing something ?

---

## [Variable interpolation problem in playbook](https://forum.ansible.com/t/variable-interpolation-problem-in-playbook/13295)

<div class="topic-metadata">

**Author:** [@Mark1](https://forum.ansible.com/u/Mark1)\
**Replies:** 6\
**Last updated:** [August 14, 2013, 12:35am UTC](https://forum.ansible.com/t/variable-interpolation-problem-in-playbook/13295 "2013-08-14T00:35:45Z")

</div>

I have the following playbook: ----------- start -------------- Launches a CF stack and provisions the instance as the specified role

---

## [Looking for feedback on content organization](https://forum.ansible.com/t/looking-for-feedback-on-content-organization/13145)

<div class="topic-metadata">

**Author:** [@Alex\_Trevino](https://forum.ansible.com/u/Alex_Trevino)\
**Replies:** 6\
**Last updated:** [August 14, 2013, 12:35am UTC](https://forum.ansible.com/t/looking-for-feedback-on-content-organization/13145 "2013-08-14T00:35:05Z")

</div>

Hi, I’ve been using ansible for a few months, and just got around to reorganizing our playbooks to follow the latest best practices. I wanted to share my project structure, hoping that someone can spot if I’m doing some…

---

## [Use of {{ }} var syntax in with\_nested](https://forum.ansible.com/t/use-of-var-syntax-in-with-nested/13287)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 2\
**Last updated:** [August 13, 2013, 8:28pm UTC](https://forum.ansible.com/t/use-of-var-syntax-in-with-nested/13287 "2013-08-13T20:28:02Z")

</div>

Is it possible to use the {{ var.stdout\_lines }} syntax in a with\_nested construct? with\_nested: - {{ var.stdout\_lines }} - \['some', 'ohter', 'data'\] seems to throw an error. However.. with\_nested: - ${var.st…

---

## [congrats to the ansible team](https://forum.ansible.com/t/congrats-to-the-ansible-team/13288)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 1\
**Last updated:** [August 13, 2013, 8:26pm UTC](https://forum.ansible.com/t/congrats-to-the-ansible-team/13288 "2013-08-13T20:26:59Z")

</div>

http://techcrunch.com/2013/08/12/ansibleworks-raises-6m-for-popular-open-source-and-easy-to-use-it-automation-framework/ I love ansible and think it is amazing. this is a very sane investment. eric

---

## [Conditional include](https://forum.ansible.com/t/conditional-include/13292)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 2\
**Last updated:** [August 13, 2013, 7:16pm UTC](https://forum.ansible.com/t/conditional-include/13292 "2013-08-13T19:16:48Z")

</div>

I want to mass include .yml files under the tasks folder when a condition is met, something like include: foo.yml bar.yml when: ansible\_os\_family == “Debian” Is it possible currently?

---

## [Extract module - looking for feedback](https://forum.ansible.com/t/extract-module-looking-for-feedback/13291)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 5:57pm UTC](https://forum.ansible.com/t/extract-module-looking-for-feedback/13291 "2013-08-13T17:57:19Z")

</div>

Hi All, Here is my first simple “extract” module https://github.com/dhorbach/ansible/blob/extract/library/files/extract I’m looking for suggestions / improvements to it (also any Python coding tips). Archive type is …

---

## [RFE: retries and multiple addresses for a host](https://forum.ansible.com/t/rfe-retries-and-multiple-addresses-for-a-host/13001)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 7\
**Last updated:** [August 13, 2013, 5:13pm UTC](https://forum.ansible.com/t/rfe-retries-and-multiple-addresses-for-a-host/13001 "2013-08-13T17:13:27Z")

</div>

Okay - I know this is awful and edgecase-y but I'm going to try to make it seem like it is not: 1. I'd like to be able to allow retries. So that if you get a failure in some task it can try again. Either due to the ta…

---

## [Trouble getting started](https://forum.ansible.com/t/trouble-getting-started/13286)

<div class="topic-metadata">

**Author:** [@Ted\_M\_Young](https://forum.ansible.com/u/Ted_M_Young)\
**Replies:** 1\
**Last updated:** [August 13, 2013, 5:09pm UTC](https://forum.ansible.com/t/trouble-getting-started/13286 "2013-08-13T17:09:20Z")

</div>

Hi, Let me preface this by saying that I’m no Linux expert, nor do I know Python, so if I’ve failed to do something obvious, please let me know. I’m running on Ubuntu 12.04 (Precise). I tried to first install Ansible o…

---

## [Looking for ideas](https://forum.ansible.com/t/looking-for-ideas/13285)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 6\
**Last updated:** [August 13, 2013, 12:32am UTC](https://forum.ansible.com/t/looking-for-ideas/13285 "2013-08-13T00:32:33Z")

</div>

I have a need… I need to run the same set of tasks across groups of hosts, however the groups of hosts are dynamic, dynamic per environment I'm running in. I'd like to not resort to a wrapper script around Ansible to di…

---

## [Using playbook with multiple remote hosts and different password for each one](https://forum.ansible.com/t/using-playbook-with-multiple-remote-hosts-and-different-password-for-each-one/13283)

<div class="topic-metadata">

**Author:** [@Oded\_Ovdat](https://forum.ansible.com/u/Oded_Ovdat)\
**Replies:** 1\
**Last updated:** [August 12, 2013, 9:11pm UTC](https://forum.ansible.com/t/using-playbook-with-multiple-remote-hosts-and-different-password-for-each-one/13283 "2013-08-12T21:11:29Z")

</div>

Hey, I am using the raw module to manage several remote hosts that cannot run python. my inventory file looks like this : \[devices\] device1 ansible\_ssh\_host=127.0.0.1 ansible\_ssh\_port=30002 ansible\_ssh\_user=‘root’ d…

---

## [Module development](https://forum.ansible.com/t/module-development/13284)

<div class="topic-metadata">

**Author:** [@ryanchan404](https://forum.ansible.com/u/ryanchan404)\
**Replies:** 1\
**Last updated:** [August 12, 2013, 9:07pm UTC](https://forum.ansible.com/t/module-development/13284 "2013-08-12T21:07:57Z")

</div>

Hi, I am in the process of creating my own module, I have two questions How to add a cron like this module: http://www.ansibleworks.com/docs/modules.html#cron, but in my own module? How to copy a file but passing thru…

---

## [mysql\_db unexpected result with priv="database.table:SELECT(collum,collum,collum)"](https://forum.ansible.com/t/mysql-db-unexpected-result-with-priv-database-table-select-collum-collum-collum/13278)

<div class="topic-metadata">

**Author:** [@jean-philippe\_zolesi](https://forum.ansible.com/u/jean-philippe_zolesi)\
**Replies:** 1\
**Last updated:** [August 12, 2013, 9:45am UTC](https://forum.ansible.com/t/mysql-db-unexpected-result-with-priv-database-table-select-collum-collum-collum/13278 "2013-08-12T09:45:22Z")

</div>

Hi, First of all, sorry for my bad english ! Secondly, for people which are interested to what I’m trying to do. And why it’s seem important to me to have ansible to do what I expect read the end of message. Here is t…

---

## ["No module named subprocess" on copy](https://forum.ansible.com/t/no-module-named-subprocess-on-copy/13277)

<div class="topic-metadata">

**Author:** [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Replies:** 2\
**Last updated:** [August 12, 2013, 6:22am UTC](https://forum.ansible.com/t/no-module-named-subprocess-on-copy/13277 "2013-08-12T06:22:49Z")

</div>

Hi, I created a playbook to copy a file to the servers. I another playbook I fetched the files. (I just started with Ansible.) Fetching the file worked well. Now I changed two files and wanted to copy them back to t…

---

## [How to make Ansible show error when using undeclared vars in template?](https://forum.ansible.com/t/how-to-make-ansible-show-error-when-using-undeclared-vars-in-template/13281)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 3\
**Last updated:** [August 11, 2013, 12:08pm UTC](https://forum.ansible.com/t/how-to-make-ansible-show-error-when-using-undeclared-vars-in-template/13281 "2013-08-11T12:08:05Z")

</div>

We want it to show error rather than silently using an empty value. Is it possible? Thanks

---

## [merging of groups](https://forum.ansible.com/t/merging-of-groups/13280)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [August 11, 2013, 12:06pm UTC](https://forum.ansible.com/t/merging-of-groups/13280 "2013-08-11T12:06:51Z")

</div>

When I have a host in two different group and apply a play against both groups, the task is repeated on that group. eg: \[krbclient\] hosta hostb \[nfsclient\] hostb hostc \[nfsserver…

---

## [Ansible "copy" module not working through Playbook](https://forum.ansible.com/t/ansible-copy-module-not-working-through-playbook/13274)

<div class="topic-metadata">

**Author:** [@Gijs\_Roeffen](https://forum.ansible.com/u/Gijs_Roeffen)\
**Replies:** 3\
**Last updated:** [August 10, 2013, 10:55am UTC](https://forum.ansible.com/t/ansible-copy-module-not-working-through-playbook/13274 "2013-08-10T10:55:55Z")

</div>

Hi, I dont know whenether im going nuts or just havent RTFM enough, but the following is my issue; When using ansibile from command-line to copy an file it works perfect; ansible test.domain.local -m copy -a “src=/mgm…

---

## [Passing vars to include: from a playbook (inside tasks:)](https://forum.ansible.com/t/passing-vars-to-include-from-a-playbook-inside-tasks/13266)

<div class="topic-metadata">

**Author:** [@Neil\_Clayton](https://forum.ansible.com/u/Neil_Clayton)\
**Replies:** 8\
**Last updated:** [August 9, 2013, 2:37pm UTC](https://forum.ansible.com/t/passing-vars-to-include-from-a-playbook-inside-tasks/13266 "2013-08-09T14:37:16Z")

</div>

I’m trying to make a general “mysql populate / dump” script, but using defined by group\_vars/all and possibly overriden by host\_vars. These vars exist when the tasks defined within roles run, but do not appear to be def…

---

## [Selecting a subset from within with\_items](https://forum.ansible.com/t/selecting-a-subset-from-within-with-items/13275)

<div class="topic-metadata">

**Author:** [@Kai\_Weber](https://forum.ansible.com/u/Kai_Weber)\
**Replies:** 5\
**Last updated:** [August 9, 2013, 1:10pm UTC](https://forum.ansible.com/t/selecting-a-subset-from-within-with-items/13275 "2013-08-09T13:10:22Z")

</div>

I have a task file to create users, add them to sudoers, enable ssh public key login. A minimal version looks like this

---

## [new module to gather facts from yml file](https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276)

<div class="topic-metadata">

**Author:** [@Yegor\_Minin](https://forum.ansible.com/u/Yegor_Minin)\
**Replies:** 1\
**Last updated:** [August 9, 2013, 12:21pm UTC](https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276 "2013-08-09T12:21:10Z")

</div>

Hi, I’ve written a module to gather facts and add them to ansible to consume later on. The module requires specifying a yaml file to get facts from and optionally a sub-dictionary in ansible\_facts to add those (default …

---

## [Help with when clause](https://forum.ansible.com/t/help-with-when-clause/13273)

<div class="topic-metadata">

**Author:** [@Rishi](https://forum.ansible.com/u/Rishi)\
**Replies:** 3\
**Last updated:** [August 8, 2013, 7:38pm UTC](https://forum.ansible.com/t/help-with-when-clause/13273 "2013-08-08T19:38:57Z")

</div>

I am trying to create a task that will only run when a certain network card is on the box. I have multiple ethernet interface per box, I am trying to basically do: for eth in eth\_interfaces: if module == ‘drivername’ …

---

## [haproxy.cfg.j2 and webservers facts values](https://forum.ansible.com/t/haproxy-cfg-j2-and-webservers-facts-values/13241)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 5\
**Last updated:** [August 8, 2013, 5:14pm UTC](https://forum.ansible.com/t/haproxy-cfg-j2-and-webservers-facts-values/13241 "2013-08-08T17:14:24Z")

</div>

Hi all, From the Ansible documentation examples I have setup my lamp deployment in an Amazon EC2 environment as bellow : hosts.txt :

---

## [RFC: A form of lazy evaluation](https://forum.ansible.com/t/rfc-a-form-of-lazy-evaluation/13268)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 12\
**Last updated:** [August 8, 2013, 4:20pm UTC](https://forum.ansible.com/t/rfc-a-form-of-lazy-evaluation/13268 "2013-08-08T16:20:14Z")

</div>

Hi, Once loaded, a playbook is completely static (includes etc. are evaluated while loading, not while executing). This has its advantages but also makes includes special, e.g. \* they don't handle tags or delegate\_to …

---

## [External Inventory Temporaly](https://forum.ansible.com/t/external-inventory-temporaly/13272)

<div class="topic-metadata">

**Author:** [@Manuel\_Jimenez](https://forum.ansible.com/u/Manuel_Jimenez)\
**Replies:** 0\
**Last updated:** [August 8, 2013, 1:18pm UTC](https://forum.ansible.com/t/external-inventory-temporaly/13272 "2013-08-08T13:18:06Z")

</div>

Hello, I’m trying to fill my haproxy getting dinamically the servers from elastichosts.com. I’ve made a python script using their API to get the server\_name and server\_ip. But I’m unable to use the add\_host module. My…

---

## [Conditional Variables](https://forum.ansible.com/t/conditional-variables/13261)

<div class="topic-metadata">

**Author:** [@Drew\_Michel](https://forum.ansible.com/u/Drew_Michel)\
**Replies:** 2\
**Last updated:** [August 8, 2013, 1:11pm UTC](https://forum.ansible.com/t/conditional-variables/13261 "2013-08-08T13:11:19Z")

</div>

Hi All, I just started using Ansible and I’m in the process of writing my first playbook. I’m trying to configure HAProxy and depending on where I’m creating the instance, Vagrant vs EC2 I want to use a different netwo…

---

## [Ansible: define variables specific to a role AND inventory file?](https://forum.ansible.com/t/ansible-define-variables-specific-to-a-role-and-inventory-file/13216)

<div class="topic-metadata">

**Author:** [@Alexandr\_Kurilin1](https://forum.ansible.com/u/Alexandr_Kurilin1)\
**Replies:** 4\
**Last updated:** [August 8, 2013, 3:51am UTC](https://forum.ansible.com/t/ansible-define-variables-specific-to-a-role-and-inventory-file/13216 "2013-08-08T03:51:55Z")

</div>

| Let’s say I have a nginx config file created from a template, which I use to configure certain hosts to redirect a server name from http to https: \<br\>server {\<br\> listen 80;\<br\> server\_nam…

---

## [Updated Ansible Quick Start video](https://forum.ansible.com/t/updated-ansible-quick-start-video/13271)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [August 8, 2013, 2:42am UTC](https://forum.ansible.com/t/updated-ansible-quick-start-video/13271 "2013-08-08T02:42:19Z")

</div>

Hi everybody, Just wanted to pass along that Tim has re-recorded our quick start, and it’s now super-quick. Just 20 minutes! This may be worth passing along to people who are just learning Ansible, even if you already …

---

## [Forcing the -l parameter in ansible-playbook](https://forum.ansible.com/t/forcing-the-l-parameter-in-ansible-playbook/13269)

<div class="topic-metadata">

**Author:** [@Rike-Benjamin\_Schupp](https://forum.ansible.com/u/Rike-Benjamin_Schupp)\
**Replies:** 4\
**Last updated:** [August 7, 2013, 2:13pm UTC](https://forum.ansible.com/t/forcing-the-l-parameter-in-ansible-playbook/13269 "2013-08-07T14:13:10Z")

</div>

Hi, we are using a few on-demand playbooks for upgrading, formatting and re-installation purposes. Currently, all of these files use a hosts: all pattern for flexibility. However, this means that we’ll have to be extrem…

---

## [Switching to inventory script: some questions](https://forum.ansible.com/t/switching-to-inventory-script-some-questions/13267)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 1\
**Last updated:** [August 7, 2013, 1:40pm UTC](https://forum.ansible.com/t/switching-to-inventory-script-some-questions/13267 "2013-08-07T13:40:21Z")

</div>

Considering switching from a static hosts file to an inventory script, specifically the new one for Digital Ocean. I had a couple questions. 1. The DO script is in the upcoming 1.3 release. Is it possible to refer to in…

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

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