# Latest

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

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

**Page:** 1057

---

## [globally include handlers](https://forum.ansible.com/t/globally-include-handlers/12449)

<div class="topic-metadata">

**Author:** [@Andreas\_Laas](https://forum.ansible.com/u/Andreas_Laas)\
**Replies:** 0\
**Last updated:** [March 4, 2013, 1:27pm UTC](https://forum.ansible.com/t/globally-include-handlers/12449 "2013-03-04T13:27:28Z")

</div>

hi, at the moment i have one handlers file where all my handlers are described. as i run them only as needed this isnt a problem. but i have to include them in every playbook. is it possible to include the handlers gl…

---

## [build-site.py](https://forum.ansible.com/t/build-site-py/12447)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 6\
**Last updated:** [March 4, 2013, 4:25am UTC](https://forum.ansible.com/t/build-site-py/12447 "2013-03-04T04:25:06Z")

</div>

Is build-site.py brocken, or am I missing something? I do: cd docsite ./build-site.py Then the modules.html does not include any of the module.... Thanks.

---

## [Obtaining a login shell for certain tasks](https://forum.ansible.com/t/obtaining-a-login-shell-for-certain-tasks/12448)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [March 3, 2013, 9:30pm UTC](https://forum.ansible.com/t/obtaining-a-login-shell-for-certain-tasks/12448 "2013-03-03T21:30:51Z")

</div>

You can use 'shell' instead of 'command' and all of these variables will expand.

---

## [Ansible hanging](https://forum.ansible.com/t/ansible-hanging/12437)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 10\
**Last updated:** [March 2, 2013, 2:58pm UTC](https://forum.ansible.com/t/ansible-hanging/12437 "2013-03-02T14:58:09Z")

</div>

Hi, I’ve been able to run my playbook using fireball and a custom inventory (that queries the ec2 API) reasonably well using 5 hosts. To completely apply a playbook from scratch takes about 160 seconds with paramiko an…

---

## [.bashrc io to stdout interferes with ansible and ansible-playbook commands](https://forum.ansible.com/t/bashrc-io-to-stdout-interferes-with-ansible-and-ansible-playbook-commands/12444)

<div class="topic-metadata">

**Author:** [@drcabana](https://forum.ansible.com/u/drcabana)\
**Replies:** 4\
**Last updated:** [March 2, 2013, 9:47am UTC](https://forum.ansible.com/t/bashrc-io-to-stdout-interferes-with-ansible-and-ansible-playbook-commands/12444 "2013-03-02T09:47:05Z")

</div>

Long story short: I was building out a system wherein the hadoop user’s .bashrc file was writing to stdout. This interfered with the functioning of the ansible and ansible-playbook commands. For instance: » ansible -u h…

---

## [boolean variable in action\_plugins](https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [March 2, 2013, 9:45am UTC](https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446 "2013-03-02T09:45:51Z")

</div>

How can I make a variable a boolean (with all the nice setup and check like in a regular module) in an action\_plugins? Thanks.

---

## [A seeming rough spot, with a workaround of sorts](https://forum.ansible.com/t/a-seeming-rough-spot-with-a-workaround-of-sorts/12435)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [March 2, 2013, 2:52am UTC](https://forum.ansible.com/t/a-seeming-rough-spot-with-a-workaround-of-sorts/12435 "2013-03-02T02:52:19Z")

</div>

Yeah it's not intended, but that's also the first I've heard of it. We should fix that, thanks for the heads up! Can you file a github ticket for this? We can modify our JSON parsing to start at the first "{" and it w…

---

## [Gems module, macports module, opkg module, and new Rabbit MQ parameter module](https://forum.ansible.com/t/gems-module-macports-module-opkg-module-and-new-rabbit-mq-parameter-module/12443)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 1, 2013, 11:12pm UTC](https://forum.ansible.com/t/gems-module-macports-module-opkg-module-and-new-rabbit-mq-parameter-module/12443 "2013-03-01T23:12:34Z")

</div>

Also merged a few more exciting modules! 1.1 is gearing up to be our biggest release ever. We have modules for managing packages with macports, opkg (OpenWRT), and gems! Thanks to all the respective authors. I know…

---

## [Fedora formulas project (using Ansible)](https://forum.ansible.com/t/fedora-formulas-project-using-ansible/12440)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 1, 2013, 8:16pm UTC](https://forum.ansible.com/t/fedora-formulas-project-using-ansible/12440 "2013-03-01T20:16:17Z")

</div>

Kevin Fenzi is organizing a project where Ansible can be used to convert a Fedora system locally to various roles using local Ansible playbooks. The thought is there would be a tool that would download them from some…

---

## [New django-manage module](https://forum.ansible.com/t/new-django-manage-module/12426)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [March 1, 2013, 3:51am UTC](https://forum.ansible.com/t/new-django-manage-module/12426 "2013-03-01T03:51:40Z")

</div>

As part of the new "batteries included" modue philosophy (and accompanying some new modules for rabbit and MongoDB users), I've merged a very nice Django module from Scott Anderson into core. Contributions and ideas f…

---

## [managing jndi credentials for tomcat server.xml](https://forum.ansible.com/t/managing-jndi-credentials-for-tomcat-server-xml/12436)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 28, 2013, 10:23pm UTC](https://forum.ansible.com/t/managing-jndi-credentials-for-tomcat-server-xml/12436 "2013-02-28T22:23:26Z")

</div>

I don't like the idea of having the db credential files in our subversion repository. Is there a better way of storing/managing the db credentials? One popular way to do it -- If you include it via "vars\_files", yo…

---

## [fetch: does not fail when the remote file does not exist](https://forum.ansible.com/t/fetch-does-not-fail-when-the-remote-file-does-not-exist/12434)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 4\
**Last updated:** [February 28, 2013, 8:12pm UTC](https://forum.ansible.com/t/fetch-does-not-fail-when-the-remote-file-does-not-exist/12434 "2013-02-28T20:12:15Z")

</div>

Does this make sense? If I try to fetch a file that does not exist, it returns status "ok". When I run it with -vvv, I see: "msg": "the remote file does not exist, not transferring, ignored" Shouldn't it fail?

---

## [Get data to MySQL database with callback](https://forum.ansible.com/t/get-data-to-mysql-database-with-callback/12431)

<div class="topic-metadata">

**Author:** [@Acyl](https://forum.ansible.com/u/Acyl)\
**Replies:** 5\
**Last updated:** [February 28, 2013, 6:43pm UTC](https://forum.ansible.com/t/get-data-to-mysql-database-with-callback/12431 "2013-02-28T18:43:39Z")

</div>

Hello, I recently developed a module called « dpkg\_custom » which return JSON result. This module allows me to list, on a particular node, the installed packages, the version which is currently installed and the availa…

---

## [Initial mysql root user setup](https://forum.ansible.com/t/initial-mysql-root-user-setup/12417)

<div class="topic-metadata">

**Author:** [@Nigel\_Metheringham](https://forum.ansible.com/u/Nigel_Metheringham)\
**Replies:** 3\
**Last updated:** [February 28, 2013, 4:41pm UTC](https://forum.ansible.com/t/initial-mysql-root-user-setup/12417 "2013-02-28T16:41:39Z")

</div>

When you install a myql server package you typically end up with a root user without a password. As a way of dealing with this in a indempotent way I was thinking of extending the mysql\_user module to add a boolean opti…

---

## [If you're going to Velocity...](https://forum.ansible.com/t/if-youre-going-to-velocity/12433)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 28, 2013, 3:27pm UTC](https://forum.ansible.com/t/if-youre-going-to-velocity/12433 "2013-02-28T15:27:34Z")

</div>

Jay Edwards from PalominoDB has what looks to be a very good Ansible tutorial about some database setups in the cloud. http://velocityconf.com/velocity2013/public/schedule/detail/28115 --Michael

---

## [Ansible connects on each task](https://forum.ansible.com/t/ansible-connects-on-each-task/12432)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 28, 2013, 12:54pm UTC](https://forum.ansible.com/t/ansible-connects-on-each-task/12432 "2013-02-28T12:54:09Z")

</div>

This is just a debug message. What ansible calls a connection is a Connection object, not the actual connection. If you use "-c ssh" and have a client that supports Control Persist, ansible will reuse connections ju…

---

## [mercurial module needs review and feedback!](https://forum.ansible.com/t/mercurial-module-needs-review-and-feedback/12200)

<div class="topic-metadata">

**Author:** [@John\_Wong](https://forum.ansible.com/u/John_Wong)\
**Replies:** 48\
**Last updated:** [February 28, 2013, 8:05am UTC](https://forum.ansible.com/t/mercurial-module-needs-review-and-feedback/12200 "2013-02-28T08:05:37Z")

</div>

https://github.com/yeukhon/ansible-mercurial The early hg module was barely usable to me so I have to write one myself. Tests: currently using it myself ssh, https, private and public repos doc is cleaned up s…

---

## [on remembering cnames instead of hostnames](https://forum.ansible.com/t/on-remembering-cnames-instead-of-hostnames/12429)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 1\
**Last updated:** [February 28, 2013, 12:57am UTC](https://forum.ansible.com/t/on-remembering-cnames-instead-of-hostnames/12429 "2013-02-28T00:57:01Z")

</div>

Hello all, I was running playbooks/commands against a few select hosts at a time: ansible-playbook update.yml -l host1:host2:host3’s\_cname: … The problem I was having here, is that the cname isn’t in the inventory, bu…

---

## [Installing via 'sudo yum install ansible' on REL 6.3 results in 'Requires: python-jinja2'](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428)

<div class="topic-metadata">

**Author:** [@Daniel\_Hokka\_Zakriss](https://forum.ansible.com/u/Daniel_Hokka_Zakriss)\
**Replies:** 5\
**Last updated:** [February 27, 2013, 10:00pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428 "2013-02-27T22:00:42Z")

</div>

John Krewson wrote: Greetings, I have looked through this group and found some questions similar to mine, but the posts I found were from some months ago and I can't quite tell if there is a problem with a reference…

---

## [looping over group\_vars in a task include results in mis-interpolation of $item](https://forum.ansible.com/t/looping-over-group-vars-in-a-task-include-results-in-mis-interpolation-of-item/12424)

<div class="topic-metadata">

**Author:** [@Nick](https://forum.ansible.com/u/Nick)\
**Replies:** 18\
**Last updated:** [February 27, 2013, 7:24pm UTC](https://forum.ansible.com/t/looping-over-group-vars-in-a-task-include-results-in-mis-interpolation-of-item/12424 "2013-02-27T19:24:40Z")

</div>

Hi, I’m trying to manage user creation with Ansible, but I am having problems getting variable interpolation, task includes and with\_items to play nicely together. This is using a recent devel checkout, but it also seem…

---

## [(developers) overview of some easy new module development features](https://forum.ansible.com/t/developers-overview-of-some-easy-new-module-development-features/12427)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 27, 2013, 2:18am UTC](https://forum.ansible.com/t/developers-overview-of-some-easy-new-module-development-features/12427 "2013-02-27T02:18:15Z")

</div>

You may notice a couple of things in module code now. It was hard previously to embed examples in the DOCUMENTATION docstring (which is YAML formatted). Rather than trying to do the old "examples" inline, you can no…

---

## [Manual tasks](https://forum.ansible.com/t/manual-tasks/12422)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 2\
**Last updated:** [February 26, 2013, 5:44pm UTC](https://forum.ansible.com/t/manual-tasks/12422 "2013-02-26T17:44:53Z")

</div>

I want to be reminded of manual tasks, that we either can’t automate or haven’t automated, at the beginning or end of a playbook. ie. Add an A record now. or add to monitoring… Should I do this with Debug? Thanks Jam…

---

## [Fire in the hole: fixing up the service module on 1.1/devel... some help/testing needed](https://forum.ansible.com/t/fire-in-the-hole-fixing-up-the-service-module-on-1-1-devel-some-help-testing-needed/12414)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 6\
**Last updated:** [February 25, 2013, 11:29pm UTC](https://forum.ansible.com/t/fire-in-the-hole-fixing-up-the-service-module-on-1-1-devel-some-help-testing-needed/12414 "2013-02-25T23:29:36Z")

</div>

The service module was making some assumptions that the presense of a particular service management tool meant the service could be controlled by that particular service management tool. The result of that was on Cent…

---

## [New "Best Practices" documentation, please help me review](https://forum.ansible.com/t/new-best-practices-documentation-please-help-me-review/12384)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 20\
**Last updated:** [February 25, 2013, 8:33pm UTC](https://forum.ansible.com/t/new-best-practices-documentation-please-help-me-review/12384 "2013-02-25T20:33:35Z")

</div>

I've had a lot of requests for a better understanding of how to organize playbook content, so I've written a lot more about how I do it. Obviously everyone is going to have their own approach, so our best practice h…

---

## [Debug printing of expressions](https://forum.ansible.com/t/debug-printing-of-expressions/12418)

<div class="topic-metadata">

**Author:** [@Asad\_Khan](https://forum.ansible.com/u/Asad_Khan)\
**Replies:** 3\
**Last updated:** [February 25, 2013, 8:13pm UTC](https://forum.ansible.com/t/debug-printing-of-expressions/12418 "2013-02-25T20:13:42Z")

</div>

Is there a way to print out expressions to facilitate debugging? For example if I wanted to do something like: debug msg=“Here is an expression: ‘$last\_result.find(‘Installed’)’ != ‘-1’ and ‘$package\_installed.changed’…

---

## [How best to implement basic horizontal scaling?](https://forum.ansible.com/t/how-best-to-implement-basic-horizontal-scaling/12423)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 25, 2013, 8:12pm UTC](https://forum.ansible.com/t/how-best-to-implement-basic-horizontal-scaling/12423 "2013-02-25T20:12:10Z")

</div>

I'm writing a playbook as a learning exercise, with a narrow scope of installing Gitorious and its dependencies on Ubuntu "Cloud" Precise amd64. As part of the learning exercise, I wish to learn how best to do tiered …

---

## [The convenience of variables - and how can I achieve something similar in tasks](https://forum.ansible.com/t/the-convenience-of-variables-and-how-can-i-achieve-something-similar-in-tasks/12409)

<div class="topic-metadata">

**Author:** [@Asad\_Khan](https://forum.ansible.com/u/Asad_Khan)\
**Replies:** 6\
**Last updated:** [February 25, 2013, 6:59pm UTC](https://forum.ansible.com/t/the-convenience-of-variables-and-how-can-i-achieve-something-similar-in-tasks/12409 "2013-02-25T18:59:20Z")

</div>

In playbooks, one can achieve brevity of expression by assigning some complex expression to a variable, then using the variable in subsequent actions. However, I can’t achieve that in a task - unless I pre-declare all v…

---

## [The service module and failures (msg: service name not recognized)](https://forum.ansible.com/t/the-service-module-and-failures-msg-service-name-not-recognized/12421)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [February 25, 2013, 4:37pm UTC](https://forum.ansible.com/t/the-service-module-and-failures-msg-service-name-not-recognized/12421 "2013-02-25T16:37:00Z")

</div>

I disagree pretty strongly actually, If you typo a service name it should raise that to your attention immediately. Same as if you typo a package, or reference a user group name that does not exist. You don't want th…

---

## [$ENV() returns array](https://forum.ansible.com/t/env-returns-array/12420)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 4\
**Last updated:** [February 25, 2013, 3:03pm UTC](https://forum.ansible.com/t/env-returns-array/12420 "2013-02-25T15:03:25Z")

</div>

Hi, By default, reading an environment variable using $ENV(NAME) appears to return an array of strings. Is there a way to coerce $ENV(NAME) into a simple string? Cheers, Ben

---

## [Making environment variables visible in the remote session](https://forum.ansible.com/t/making-environment-variables-visible-in-the-remote-session/12419)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 3\
**Last updated:** [February 25, 2013, 1:19pm UTC](https://forum.ansible.com/t/making-environment-variables-visible-in-the-remote-session/12419 "2013-02-25T13:19:52Z")

</div>

Hi, I’m trying to invoke the route53 command as part of a playbook - this requires access to the AWS\_ACCESS\_KEY\_ID and AWS\_SECRET\_ACCESS\_KEY environment variables. Is there a way to tell ansible to take the exported va…

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

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