# Latest

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

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

**Page:** 1059

---

## [Syntax error in add\_host.py](https://forum.ansible.com/t/syntax-error-in-add-host-py/12379)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 3\
**Last updated:** [February 18, 2013, 9:33pm UTC](https://forum.ansible.com/t/syntax-error-in-add-host-py/12379 "2013-02-18T21:33:55Z")

</div>

I just have pulled the upstream changes, and while doing an install get this error: Anyone else getting it ? Anyways submitted a pulle request #2112 running install\_lib byte-compiling /usr/lib/python2.6/site-packages/…

---

## [coder wall](https://forum.ansible.com/t/coder-wall/12383)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [February 18, 2013, 6:23pm UTC](https://forum.ansible.com/t/coder-wall/12383 "2013-02-18T18:23:30Z")

</div>

I've added a couple of tips to the coder wall, but it has left me wanting for a FAQ, and I've been wondering why. Today I realised why: Anybody can add anything to the coder wall, even tips that are plainly wrong, or ti…

---

## [Feature freeze merging complete -- changelog updated, docs in progress](https://forum.ansible.com/t/feature-freeze-merging-complete-changelog-updated-docs-in-progress/12252)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [February 18, 2013, 6:22pm UTC](https://forum.ansible.com/t/feature-freeze-merging-complete-changelog-updated-docs-in-progress/12252 "2013-02-18T18:22:34Z")

</div>

I've merged in a ton of new things this morning and have also rebuilt the docsite to account for the new modules. Seeing the 0 pull request counter in github feels good! The mostly-organized changelog details what is …

---

## [Automatic password generation](https://forum.ansible.com/t/automatic-password-generation/12224)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 9\
**Last updated:** [February 18, 2013, 4:49pm UTC](https://forum.ansible.com/t/automatic-password-generation/12224 "2013-02-18T16:49:14Z")

</div>

Spent most of yesterday diving into Ansible and encoding much of what I do as playbooks. I was wondering if anyone had a solution for this? Say you're installing WordPress or something. You want to set up a database lik…

---

## [\-c Paramiko hangs if stdout is large?](https://forum.ansible.com/t/c-paramiko-hangs-if-stdout-is-large/12259)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 6\
**Last updated:** [February 18, 2013, 4:43pm UTC](https://forum.ansible.com/t/c-paramiko-hangs-if-stdout-is-large/12259 "2013-02-18T16:43:59Z")

</div>

Hello all, I don’t know if this is a paramiko problem, or our connection implementation for it, but the SSH connection seems to handle this okay. From running a ‘command: yum update -y’ for CentOS 5 machines on the rec…

---

## [bypass the need for ansible hosts file](https://forum.ansible.com/t/bypass-the-need-for-ansible-hosts-file/12381)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [February 18, 2013, 1:22pm UTC](https://forum.ansible.com/t/bypass-the-need-for-ansible-hosts-file/12381 "2013-02-18T13:22:27Z")

</div>

Actually, there is a way. It may not be the way you want. If you want to ignore the host file, you can, like so. ansible-playbook foo.yml -i "hostname1,hostname2" The only catch is if there is only one hostname, so…

---

## [Developers: Improvements to --check mode (pseudo dry run), now working for more module types, how to instrument the others...](https://forum.ansible.com/t/developers-improvements-to-check-mode-pseudo-dry-run-now-working-for-more-module-types-how-to-instrument-the-others/12378)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [February 17, 2013, 11:20pm UTC](https://forum.ansible.com/t/developers-improvements-to-check-mode-pseudo-dry-run-now-working-for-more-module-types-how-to-instrument-the-others/12378 "2013-02-17T23:20:01Z")

</div>

Hi everyone, I've started going through some modules and teaching the --check mode to work with them. For those not paying attention to previous threads, this means you can run a playbook or ansible command on a remo…

---

## [License on ansible module common (and only that) changed to BSD](https://forum.ansible.com/t/license-on-ansible-module-common-and-only-that-changed-to-bsd/12377)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 17, 2013, 8:53pm UTC](https://forum.ansible.com/t/license-on-ansible-module-common-and-only-that-changed-to-bsd/12377 "2013-02-17T20:53:29Z")

</div>

Hi all, Upon request, I've lessened the license on the AnsibleModuleCommon snippet (and only that) so it makes it clear that any modules for ansible you write can be redistributed under any license you want. (and if …

---

## [Lookup variable strange behaviour](https://forum.ansible.com/t/lookup-variable-strange-behaviour/12368)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 9\
**Last updated:** [February 17, 2013, 6:45pm UTC](https://forum.ansible.com/t/lookup-variable-strange-behaviour/12368 "2013-02-17T18:45:15Z")

</div>

This is fixed in Ansible's 1.1 development branch. The workaround for anyone who does not yet want to upgrade, is to upgrade, but failing that, you can use the "with\_file" or "with\_env" version instead and just refere…

---

## [supervisorctl task: why does state=restarted error out if it isn't running?](https://forum.ansible.com/t/supervisorctl-task-why-does-state-restarted-error-out-if-it-isnt-running/12373)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 2\
**Last updated:** [February 17, 2013, 1:42am UTC](https://forum.ansible.com/t/supervisorctl-task-why-does-state-restarted-error-out-if-it-isnt-running/12373 "2013-02-17T01:42:50Z")

</div>

These lines of codes caused me a lot of angst earlier today: elif not running and state == ‘restarted’: module.fail\_json(msg=‘Could not restart %s because it is not running’ % name) I’m curious as to why this decision…

---

## [file task for chown... what am I doing wrong?](https://forum.ansible.com/t/file-task-for-chown-what-am-i-doing-wrong/12374)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 1\
**Last updated:** [February 17, 2013, 12:48am UTC](https://forum.ansible.com/t/file-task-for-chown-what-am-i-doing-wrong/12374 "2013-02-17T00:48:56Z")

</div>

I figured out part of my problem. The owner was being set on the top directory, but the recurse flag is being ignored so nothing underneath it was being touched. -scott

---

## [changelog to date](https://forum.ansible.com/t/changelog-to-date/12372)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 16, 2013, 11:57pm UTC](https://forum.ansible.com/t/changelog-to-date/12372 "2013-02-16T23:57:09Z")

</div>

Last email for today, maybe :slight\_smile: I have updated the list of everything added in 1.1 so far. We released 1.0 two weeks ago, so if anything, this is kind of one of those jaw-dropping things. This basically …

---

## [Documentation glossary added -- now let's go make it better :)](https://forum.ansible.com/t/documentation-glossary-added-now-lets-go-make-it-better/12371)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 16, 2013, 11:53pm UTC](https://forum.ansible.com/t/documentation-glossary-added-now-lets-go-make-it-better/12371 "2013-02-16T23:53:15Z")

</div>

I've had a few requests for a glossary of terms to help people understand things, for when the documentation explaining things down the one golden path didn't quite succeed in explaning what it set out to explain. I…

---

## [Question about passing a list to a module](https://forum.ansible.com/t/question-about-passing-a-list-to-a-module/12369)

<div class="topic-metadata">

**Author:** [@Steve1](https://forum.ansible.com/u/Steve1)\
**Replies:** 2\
**Last updated:** [February 16, 2013, 11:05pm UTC](https://forum.ansible.com/t/question-about-passing-a-list-to-a-module/12369 "2013-02-16T23:05:06Z")

</div>

I’d like to enhance the ec2 module to support creating/attaching volumes. Updating it was rather simple, but I am having trouble passing volumes to it, due to the way vars get parsed (i think). In the playbook, I want …

---

## [Is this a known issue?](https://forum.ansible.com/t/is-this-a-known-issue/12353)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 14\
**Last updated:** [February 16, 2013, 3:35am UTC](https://forum.ansible.com/t/is-this-a-known-issue/12353 "2013-02-16T03:35:50Z")

</div>

I finally rebuilt all of my servers with Ansible with one as the central, pushing out updates. Before unleashing cron to run things automatically, I tried running the script by hand. It hung on a setup run. I ran with …

---

## [How about a flag to ignore output when using "command" or "shell" module](https://forum.ansible.com/t/how-about-a-flag-to-ignore-output-when-using-command-or-shell-module/12366)

<div class="topic-metadata">

**Author:** [@Fff\_Fff](https://forum.ansible.com/u/Fff_Fff)\
**Replies:** 4\
**Last updated:** [February 16, 2013, 3:10am UTC](https://forum.ansible.com/t/how-about-a-flag-to-ignore-output-when-using-command-or-shell-module/12366 "2013-02-16T03:10:15Z")

</div>

I found one (and only one) mention in the documentation that the way to get around errors when a console command results in output is to use the “shell” module and add “& /bin/true” after so that it ignores the output. T…

---

## [Why when\_boolean and not when\_true/when\_false?](https://forum.ansible.com/t/why-when-boolean-and-not-when-true-when-false/12367)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 1\
**Last updated:** [February 16, 2013, 2:03am UTC](https://forum.ansible.com/t/why-when-boolean-and-not-when-true-when-false/12367 "2013-02-16T02:03:40Z")

</div>

when\_true/when\_false makes a bit more sense to me than does when\_boolean. I might assume that when\_boolean applies to a boolean value, but when\_true/when\_false not only makes that explicit, it also: a) allows you to che…

---

## [Getting ssh public key as a variable](https://forum.ansible.com/t/getting-ssh-public-key-as-a-variable/12365)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 6\
**Last updated:** [February 16, 2013, 1:16am UTC](https://forum.ansible.com/t/getting-ssh-public-key-as-a-variable/12365 "2013-02-16T01:16:53Z")

</div>

Hi, So i am just trying to know the background on the reason behind having (ansible\_ssh\_host\_key\_rsa\_public) but not the $HOME/.ssh/id\_rsa.pub variable for the user trying to get the facts ?

---

## [Learning looping](https://forum.ansible.com/t/learning-looping/12359)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 14\
**Last updated:** [February 15, 2013, 11:12pm UTC](https://forum.ansible.com/t/learning-looping/12359 "2013-02-15T23:12:14Z")

</div>

So i am try to learn how to do loops in the playbook : So suppose for example i wanted to look through all hosts get their public key and add on all other nodes, So they can have password less access. This is the best e…

---

## [How to troubleshoot service module? ( incorrectly reports successful start / RHEL 6 )](https://forum.ansible.com/t/how-to-troubleshoot-service-module-incorrectly-reports-successful-start-rhel-6/12363)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 6\
**Last updated:** [February 15, 2013, 10:44pm UTC](https://forum.ansible.com/t/how-to-troubleshoot-service-module-incorrectly-reports-successful-start-rhel-6/12363 "2013-02-15T22:44:51Z")

</div>

We have a custom written init script that never gets started when I do this:

---

## [How do you validate the Yaml file before Ansible it?](https://forum.ansible.com/t/how-do-you-validate-the-yaml-file-before-ansible-it/12364)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 0\
**Last updated:** [February 15, 2013, 7:59pm UTC](https://forum.ansible.com/t/how-do-you-validate-the-yaml-file-before-ansible-it/12364 "2013-02-15T19:59:46Z")

</div>

I pass it to stdin to the following script: -- valyml.py #!/usr/bin/env python import yaml import sys print yaml.load(sys.stdin)

---

## [Jinja2 support for regex?](https://forum.ansible.com/t/jinja2-support-for-regex/12362)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 15, 2013, 7:56pm UTC](https://forum.ansible.com/t/jinja2-support-for-regex/12362 "2013-02-15T19:56:05Z")

</div>

I can work on making the re module available to Jinja2. Please file a github ticket. Super easy to add. Thought I did it already actually, but guess not. I agree with http://xkcd.org/1171/ to some extent personally…

---

## [How to purge/empty directory in Ansible?](https://forum.ansible.com/t/how-to-purge-empty-directory-in-ansible/12360)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 15, 2013, 7:54pm UTC](https://forum.ansible.com/t/how-to-purge-empty-directory-in-ansible/12360 "2013-02-15T19:54:15Z")

</div>

Shell command would be fine.

---

## [Avoiding the extra shell on remote execution](https://forum.ansible.com/t/avoiding-the-extra-shell-on-remote-execution/12348)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 13\
**Last updated:** [February 15, 2013, 1:16pm UTC](https://forum.ansible.com/t/avoiding-the-extra-shell-on-remote-execution/12348 "2013-02-15T13:16:30Z")

</div>

Hello, I am testing ansible, and I stumbled over a curiosity in the remote execution. If I run % ansible localhost -m command -a 'ps -f' I notice that ansible spawns a shell on the "remote": madduck 19221 19204…

---

## [variables with 'dashes' in them](https://forum.ansible.com/t/variables-with-dashes-in-them/12358)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 2\
**Last updated:** [February 15, 2013, 6:44am UTC](https://forum.ansible.com/t/variables-with-dashes-in-them/12358 "2013-02-15T06:44:18Z")

</div>

I’m noticing that variables names (or registers in ansible) that have ‘-’ (dashes) in their names fail to expand when later called. Here’s a simple example playbook that demonstrates: name: run1 command: whoami regi…

---

## [How about a Wiki?](https://forum.ansible.com/t/how-about-a-wiki/12352)

<div class="topic-metadata">

**Author:** [@Fff\_Fff](https://forum.ansible.com/u/Fff_Fff)\
**Replies:** 6\
**Last updated:** [February 15, 2013, 4:25am UTC](https://forum.ansible.com/t/how-about-a-wiki/12352 "2013-02-15T04:25:04Z")

</div>

Been using Ansible for a little over a week now. I’ve messed around with Chef a bit but I’m not a coder and don’t know anything about YAML so basically a beginner when it comes to this stuff. Really starting to like Ans…

---

## [Accessing Complex Variable Data](https://forum.ansible.com/t/accessing-complex-variable-data/12356)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 14, 2013, 3:35pm UTC](https://forum.ansible.com/t/accessing-complex-variable-data/12356 "2013-02-14T15:35:58Z")

</div>

Reffering to "Accessing Complex Variable Data" First of all thank you for ansible :wink: , but now I have some questions 1.) It should be possible to use a list(array). Can someone give an example for a somelist.yml…

---

## [Why does "service name=foo enabled=no" return '"changed:" false' when it disables a service?](https://forum.ansible.com/t/why-does-service-name-foo-enabled-no-return-changed-false-when-it-disables-a-service/12354)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 4\
**Last updated:** [February 14, 2013, 12:25pm UTC](https://forum.ansible.com/t/why-does-service-name-foo-enabled-no-return-changed-false-when-it-disables-a-service/12354 "2013-02-14T12:25:19Z")

</div>

Running ansible-1.0 under RHEL6. Client:

---

## [Class override not working](https://forum.ansible.com/t/class-override-not-working/12318)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [February 14, 2013, 10:36am UTC](https://forum.ansible.com/t/class-override-not-working/12318 "2013-02-14T10:36:22Z")

</div>

So the code used is the 'load\_platform\_subclass' code in lib/ansible/module\_common.py get\_platform just calls the python: return platform.system() You might wish to debug and see if that is being reported as AIX? …

---

## [Operators available for use with variables in register / with\_items](https://forum.ansible.com/t/operators-available-for-use-with-variables-in-register-with-items/12350)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 3\
**Last updated:** [February 14, 2013, 12:38am UTC](https://forum.ansible.com/t/operators-available-for-use-with-variables-in-register-with-items/12350 "2013-02-14T00:38:27Z")

</div>

I am generating a list of filenames on a client to be copied back to an admin server by parsing a file via the shell module, using 'register' to store the resulting list from stdout, then iterating through fetch using 'w…

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

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