# Latest

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

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

**Page:** 1081

---

## [Service Module: Service state recognition](https://forum.ansible.com/t/service-module-service-state-recognition/11615)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 14\
**Last updated:** [July 14, 2012, 1:37am UTC](https://forum.ansible.com/t/service-module-service-state-recognition/11615 "2012-07-14T01:37:06Z")

</div>

running = False if status\_stdout.find(“stopped”) != -1 or rc == 3: running = False elif status\_stdout.find(“running”) != -1 or rc == 0: running = True elif name == ‘iptables’ and status\_stdout.find(“ACCEPT”) != -1…

---

## [Determine a base path and creating directories in playbooks.](https://forum.ansible.com/t/determine-a-base-path-and-creating-directories-in-playbooks/11676)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 1\
**Last updated:** [July 13, 2012, 3:34pm UTC](https://forum.ansible.com/t/determine-a-base-path-and-creating-directories-in-playbooks/11676 "2012-07-13T15:34:52Z")

</div>

I am trying to create a playbook that, depending on the host, may need to create a series of directories and symlinks. I know the file command will conditionally create directories and symlinks -- is that the best possi…

---

## [pull all managed node output from a playbook?](https://forum.ansible.com/t/pull-all-managed-node-output-from-a-playbook/11675)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 13, 2012, 2:02pm UTC](https://forum.ansible.com/t/pull-all-managed-node-output-from-a-playbook/11675 "2012-07-13T14:02:47Z")

</div>

You could make a program like /usr/bin/ansible-playbook, almost exactly like it, and pass in different callback classes. I’ve discussed making it be able to shove data into arbitrary data stores before, but there wasn’t…

---

## [Trying to fetch without success](https://forum.ansible.com/t/trying-to-fetch-without-success/11669)

<div class="topic-metadata">

**Author:** [@Andreas\_Davour](https://forum.ansible.com/u/Andreas_Davour)\
**Replies:** 5\
**Last updated:** [July 13, 2012, 9:22am UTC](https://forum.ansible.com/t/trying-to-fetch-without-success/11669 "2012-07-13T09:22:33Z")

</div>

Hi I have this situation: \[root@se1ts00 yaml\]# for i in \`cat sx1 | grep -v '\\\[sx1\\\]'\`; do ssh root@$i ls -l /tmp/repolist; done -rw-r--r-- 1 root root 267 Jul 12 06:59 /tmp/repolist -rw-r--r-- 1 root root 272 Jul 12 …

---

## [ansible on jython](https://forum.ansible.com/t/ansible-on-jython/11673)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [July 13, 2012, 12:10am UTC](https://forum.ansible.com/t/ansible-on-jython/11673 "2012-07-13T00:10:16Z")

</div>

If you want to use Ansible's "Runner" class from an API perspective from Java code, I can kind of see that. Is that the reason? I think the answer here is start trying to see what it looks like and keep us abreast of …

---

## [Why I chose Ansible for CM/CD](https://forum.ansible.com/t/why-i-chose-ansible-for-cm-cd/11672)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [July 12, 2012, 9:15pm UTC](https://forum.ansible.com/t/why-i-chose-ansible-for-cm-cd/11672 "2012-07-12T21:15:08Z")

</div>

Nice post Steve, thanks for sharing it. For those asking about our community size, I probably haven’t shared in a while here, we’re up to 450+ followers on github now, so that’s about half the size of Puppet in what, 5 …

---

## [Notify from inside task inclusions ?](https://forum.ansible.com/t/notify-from-inside-task-inclusions/11671)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 2\
**Last updated:** [July 12, 2012, 6:59pm UTC](https://forum.ansible.com/t/notify-from-inside-task-inclusions/11671 "2012-07-12T18:59:58Z")

</div>

I tested the new tags option. Works fine and only the tasks tagged are invoked :slight\_smile: Unfortunately i learned the notify doesnt seem to work when the task is within an include and the handler is in the above …

---

## [Feature request: fetch](https://forum.ansible.com/t/feature-request-fetch/11670)

<div class="topic-metadata">

**Author:** [@Andreas\_Davour](https://forum.ansible.com/u/Andreas_Davour)\
**Replies:** 2\
**Last updated:** [July 12, 2012, 2:30pm UTC](https://forum.ansible.com/t/feature-request-fetch/11670 "2012-07-12T14:30:33Z")

</div>

Hi While I have some serious problems using the fetch module right now, I have a feature request for when I hopefully get it working on all files. Right now the dest recreates the hierarchy of the src, which in my case…

---

## [Playbook vs Play](https://forum.ansible.com/t/playbook-vs-play/11668)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 2\
**Last updated:** [July 12, 2012, 12:24pm UTC](https://forum.ansible.com/t/playbook-vs-play/11668 "2012-07-12T12:24:44Z")

</div>

Is there a specific advantage to using more than one Play in a Playbook instead of multiple playbooks? Maybe I'm not understanding what a "Play" is. Is this terminology correct? "A playbook contains one or more plays…

---

## [mount/fstab editing module](https://forum.ansible.com/t/mount-fstab-editing-module/11667)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 0\
**Last updated:** [July 12, 2012, 5:19am UTC](https://forum.ansible.com/t/mount-fstab-editing-module/11667 "2012-07-12T05:19:13Z")

</div>

I needed this for my job so I put this together today/this evening. It's based more or less off of the functioning of both the salt and puppet modules that do the same. I've tested it here with bind and local mounts - s…

---

## [MySQL module for initial review](https://forum.ansible.com/t/mysql-module-for-initial-review/11665)

<div class="topic-metadata">

**Author:** [@Mark\_Theunissen](https://forum.ansible.com/u/Mark_Theunissen)\
**Replies:** 1\
**Last updated:** [July 11, 2012, 11:58pm UTC](https://forum.ansible.com/t/mysql-module-for-initial-review/11665 "2012-07-11T23:58:40Z")

</div>

I’ve opened a pull request for an idempotent MySQL module. The user management stuff is working, and I will work on databases next. At the moment I’m just looking for feedback on coding style, approach, etc. as I’d like …

---

## [Playbook: can actions be grouped to trigger a single notification?](https://forum.ansible.com/t/playbook-can-actions-be-grouped-to-trigger-a-single-notification/11662)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 5\
**Last updated:** [July 11, 2012, 9:40pm UTC](https://forum.ansible.com/t/playbook-can-actions-be-grouped-to-trigger-a-single-notification/11662 "2012-07-11T21:40:36Z")

</div>

I'd like to be able to group actions in a playbook thusly, so as to specify a single notification only:

---

## [stop where it breaks](https://forum.ansible.com/t/stop-where-it-breaks/11658)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 3\
**Last updated:** [July 10, 2012, 7:56pm UTC](https://forum.ansible.com/t/stop-where-it-breaks/11658 "2012-07-10T19:56:29Z")

</div>

For debugging purposes during developing playbooks it would make sense to stop where it breaks rather to print out all the rest each time. May be with some additional parameter to pass ?

---

## [users and variables](https://forum.ansible.com/t/users-and-variables/11660)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 10, 2012, 2:08pm UTC](https://forum.ansible.com/t/users-and-variables/11660 "2012-07-10T14:08:03Z")

</div>

Hey there, I had two questions about users (i.e. the user that ansible uses for ssh) and variables: Is it possible to specify the user as a variable in a play? I tried this in a play: hosts: all user: $deploy\_accou…

---

## [Variable in templatename ?](https://forum.ansible.com/t/variable-in-templatename/11659)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 4\
**Last updated:** [July 9, 2012, 8:35pm UTC](https://forum.ansible.com/t/variable-in-templatename/11659 "2012-07-09T20:35:52Z")

</div>

Parts of a template filename is not replaced by the variable: - action: template src=templates/$product\_settings.j2 dest= $reg\_settings\_data fatal: \[10.101.1.147\] =\> {'msg': "\[Errno 2\] No such file or directory: u'te…

---

## [vars within vs. vars passed output ?](https://forum.ansible.com/t/vars-within-vs-vars-passed-output/11657)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 1\
**Last updated:** [July 9, 2012, 7:32pm UTC](https://forum.ansible.com/t/vars-within-vs-vars-passed-output/11657 "2012-07-09T19:32:33Z")

</div>

There seam to be a difference on the stdout output somehow. If the var is passed via hosts file vars into the playbook it is not resolved to stdout though it works: hosts: \[mygroup1:vars\] product=myproduct TASK: \[c…

---

## [update to fetch module, a great way to pull in selected log files and other things.](https://forum.ansible.com/t/update-to-fetch-module-a-great-way-to-pull-in-selected-log-files-and-other-things/11420)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 19\
**Last updated:** [July 9, 2012, 5:58pm UTC](https://forum.ansible.com/t/update-to-fetch-module-a-great-way-to-pull-in-selected-log-files-and-other-things/11420 "2012-07-09T17:58:39Z")

</div>

The fetch module can be used to mirror a file structure on remote hosts locally. Ex: fetch src=/etc/motd dest=/srv/filetree This previously would create: /srv/filetree//motd I have fixed this on the integration bran…

---

## [ansible return code](https://forum.ansible.com/t/ansible-return-code/11654)

<div class="topic-metadata">

**Author:** [@Sriram\_Narayan](https://forum.ansible.com/u/Sriram_Narayan)\
**Replies:** 2\
**Last updated:** [July 9, 2012, 11:29am UTC](https://forum.ansible.com/t/ansible-return-code/11654 "2012-07-09T11:29:44Z")

</div>

ansible-playbook returns a zero return code (echo $? gives zero) even when there are failures. It would really help if this can be fixed. thanks sriram

---

## [Stab at an Suse SLES/openSUSE zypper module](https://forum.ansible.com/t/stab-at-an-suse-sles-opensuse-zypper-module/11655)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 1\
**Last updated:** [July 9, 2012, 11:27am UTC](https://forum.ansible.com/t/stab-at-an-suse-sles-opensuse-zypper-module/11655 "2012-07-09T11:27:12Z")

</div>

FWIW, here's a first attempt at an Ansible module (in bash) which is able to install/remove packages on SLES & openSUSE. https://github.com/jpmens/ansible-zypp It's primitive but it works here. -JP

---

## [initial shot at svn module](https://forum.ansible.com/t/initial-shot-at-svn-module/11653)

<div class="topic-metadata">

**Author:** [@Rob\_Tirrell](https://forum.ansible.com/u/Rob_Tirrell)\
**Replies:** 1\
**Last updated:** [July 8, 2012, 12:58pm UTC](https://forum.ansible.com/t/initial-shot-at-svn-module/11653 "2012-07-08T12:58:16Z")

</div>

In Brief Required parameters: dest Optional parameters: repo, rev, user, password Checkout / update (checkup) is relatively simple. If repo and dest are provided, a working copy will be checked out or updated. If repo…

---

## [Looping over multiple sets of values](https://forum.ansible.com/t/looping-over-multiple-sets-of-values/11651)

<div class="topic-metadata">

**Author:** [@Rob\_Tirrell](https://forum.ansible.com/u/Rob_Tirrell)\
**Replies:** 8\
**Last updated:** [July 8, 2012, 12:30pm UTC](https://forum.ansible.com/t/looping-over-multiple-sets-of-values/11651 "2012-07-08T12:30:47Z")

</div>

As far as I can tell, it’s currently impossible to loop over two sets of values in any fashion. For each user I’m creating in a play, I’d like to install customizations to the user’s remote environment or fallback to a …

---

## [Changing mode/group/owner for symbolic link](https://forum.ansible.com/t/changing-mode-group-owner-for-symbolic-link/11652)

<div class="topic-metadata">

**Author:** [@Rob\_Tirrell](https://forum.ansible.com/u/Rob_Tirrell)\
**Replies:** 1\
**Last updated:** [July 8, 2012, 12:20am UTC](https://forum.ansible.com/t/changing-mode-group-owner-for-symbolic-link/11652 "2012-07-08T00:20:02Z")

</div>

I had a use case where I wanted to change the mode/group/owner of the file pointed to by a symbolic link. This link already exists on the system, I know where the link is but don’t necessarily know where the pointed-to f…

---

## [How large is your hosts file?](https://forum.ansible.com/t/how-large-is-your-hosts-file/11643)

<div class="topic-metadata">

**Author:** [@Wes\_Johnson](https://forum.ansible.com/u/Wes_Johnson)\
**Replies:** 7\
**Last updated:** [July 7, 2012, 5:55pm UTC](https://forum.ansible.com/t/how-large-is-your-hosts-file/11643 "2012-07-07T17:55:11Z")

</div>

/etc/ansible/hosts has 700+ entires, and I can’t hope to run ansible-playbook against it without an absurd amount of memory. My plan to use Ansible was to have a ‘gold standard’ playbook for configurations I’d want on a…

---

## [By popular demand, remote md5 now occurs before copy transfer](https://forum.ansible.com/t/by-popular-demand-remote-md5-now-occurs-before-copy-transfer/11650)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 7, 2012, 1:17pm UTC](https://forum.ansible.com/t/by-popular-demand-remote-md5-now-occurs-before-copy-transfer/11650 "2012-07-07T13:17:17Z")

</div>

(0.6, devel branch) Ansible should be a lot smarter about file transfer with the copy module now. This should help folks trying to transfer ISOs or anything big, or those that get charged for bandwidth (EC2, etc). --M…

---

## [apt module to support --no-install-recommends](https://forum.ansible.com/t/apt-module-to-support-no-install-recommends/11648)

<div class="topic-metadata">

**Author:** [@Peter\_Sankauskas](https://forum.ansible.com/u/Peter_Sankauskas)\
**Replies:** 3\
**Last updated:** [July 6, 2012, 7:14pm UTC](https://forum.ansible.com/t/apt-module-to-support-no-install-recommends/11648 "2012-07-06T19:14:56Z")

</div>

Hi, I would like to add an option to the apt module so that is supports the very handy option: --no-install-recommends By default, apt automatically installs recommended packages, but not suggested packages. Usually, t…

---

## [iptables module initial stab](https://forum.ansible.com/t/iptables-module-initial-stab/11647)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://forum.ansible.com/u/Jonathan_Palley)\
**Replies:** 2\
**Last updated:** [July 6, 2012, 2:32am UTC](https://forum.ansible.com/t/iptables-module-initial-stab/11647 "2012-07-06T02:32:16Z")

</div>

All - I’ve posted an iptables module here: The module has undergone a certain amount of tests; however, I wanted to solicit any input (API, design) from the community before we modify our playbooks to use this and pr…

---

## [How to reference variables](https://forum.ansible.com/t/how-to-reference-variables/11626)

<div class="topic-metadata">

**Author:** [@Nathan\_Feger](https://forum.ansible.com/u/Nathan_Feger)\
**Replies:** 3\
**Last updated:** [July 5, 2012, 12:34pm UTC](https://forum.ansible.com/t/how-to-reference-variables/11626 "2012-07-05T12:34:31Z")

</div>

If I have a yml vars file with: category: stuff: a otherstuff: bar cat2: subcat1: true subcat2: false How do I reference these variables in a playbook?

---

## [Doc site updated for 0.5 features](https://forum.ansible.com/t/doc-site-updated-for-0-5-features/11646)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 4, 2012, 11:38pm UTC](https://forum.ansible.com/t/doc-site-updated-for-0-5-features/11646 "2012-07-04T23:38:54Z")

</div>

Hi everyone, http://ansible.github.com/ now contains numerous additions from the 0.5 release. This includes, but is not limited to: \* references to --connection=ssh \* documentation on the assemble & authorized keys m…

---

## [Ansible 0.5 ("Amsterdam") released](https://forum.ansible.com/t/ansible-0-5-amsterdam-released/11645)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 4, 2012, 8:39pm UTC](https://forum.ansible.com/t/ansible-0-5-amsterdam-released/11645 "2012-07-04T20:39:08Z")

</div>

I'm not sure how much releases matter as most everyone seems to be working off of the git branch and we tend to not have to do a lot of fixing of past versions. Anyway, I've tagged and uploaded tar balls for the latest …

---

## [Debugging 'setup' python script](https://forum.ansible.com/t/debugging-setup-python-script/11644)

<div class="topic-metadata">

**Author:** [@Harm\_Aarts](https://forum.ansible.com/u/Harm_Aarts)\
**Replies:** 1\
**Last updated:** [July 4, 2012, 12:35pm UTC](https://forum.ansible.com/t/debugging-setup-python-script/11644 "2012-07-04T12:35:19Z")

</div>

Hi, I’m trying to use Ansible to setup a Raspberry Pi. Somewhere during the “setup phase” an exception is thrown: fatal: \[192.168.x.x\] =\> failed to parse: Traceback (most recent call last): File “/home/pi/.ansible/tmp…

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

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