# Latest

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

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

**Page:** 1077

---

## [Host file variables - correct pattern?](https://forum.ansible.com/t/host-file-variables-correct-pattern/11797)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://forum.ansible.com/u/Jonathan_Palley)\
**Replies:** 5\
**Last updated:** [August 14, 2012, 5:09pm UTC](https://forum.ansible.com/t/host-file-variables-correct-pattern/11797 "2012-08-14T17:09:33Z")

</div>

Curious the best pattern to do the following. I want to add the feature to allow host files to have variables, but it seems there should be a better way: We have a few identical clusters of machines in different physica…

---

## [New config file, please help test!](https://forum.ansible.com/t/new-config-file-please-help-test/11795)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [August 14, 2012, 4:05pm UTC](https://forum.ansible.com/t/new-config-file-please-help-test/11795 "2012-08-14T16:05:45Z")

</div>

I've taught ansible to read from ~/.ansible.cfg or /etc/ansible/ansible.cfg, whichever it finds first. If it doesn't find either, old environment variable overrides should still work for now, but I may decide to smite…

---

## [777 register](https://forum.ansible.com/t/777-register/11796)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 3\
**Last updated:** [August 14, 2012, 12:12pm UTC](https://forum.ansible.com/t/777-register/11796 "2012-08-14T12:12:44Z")

</div>

To detect the current groupid (605) i am doing the following: - action: command id -g mygroup register: groupid In $groupid then is the following then which is too much: {uchanged: True, uend: u2012-08-14 11:09:4…

---

## [Reusable fact-derived variables](https://forum.ansible.com/t/reusable-fact-derived-variables/11794)

<div class="topic-metadata">

**Author:** [@Ahmad\_Khayyat](https://forum.ansible.com/u/Ahmad_Khayyat)\
**Replies:** 12\
**Last updated:** [August 13, 2012, 12:42pm UTC](https://forum.ansible.com/t/reusable-fact-derived-variables/11794 "2012-08-13T12:42:28Z")

</div>

I need to set a variable that is derived from some facts, with a little logic. For example: default\_interface, as in, the name of the network interface to which the main IP address is assigned. It can be computed by us…

---

## [(module development feature) checking for arguments being required together, mutually exclusive, etc](https://forum.ansible.com/t/module-development-feature-checking-for-arguments-being-required-together-mutually-exclusive-etc/11793)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 11, 2012, 10:20pm UTC](https://forum.ansible.com/t/module-development-feature-checking-for-arguments-being-required-together-mutually-exclusive-etc/11793 "2012-08-11T22:20:11Z")

</div>

I've made some additions to the module common library, which makes it easier to check for complex input requirements. This makes Python modules easier to write when simply stating which arguments are required or not is …

---

## [introducing ranged patterns](https://forum.ansible.com/t/introducing-ranged-patterns/11791)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [August 11, 2012, 6:43pm UTC](https://forum.ansible.com/t/introducing-ranged-patterns/11791 "2012-08-11T18:43:39Z")

</div>

Imagine you have a lot of servers. You need to reboot them, but not all of them. Defining a group for each of them would be annoying. What do you do? You do this. ansible webservers\[0-10\] -m command -a "/sbin/rebo…

---

## [Make parsing of result \[Baby\] JSON more resilient to garbage?](https://forum.ansible.com/t/make-parsing-of-result-baby-json-more-resilient-to-garbage/11789)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 8\
**Last updated:** [August 11, 2012, 2:31pm UTC](https://forum.ansible.com/t/make-parsing-of-result-baby-json-more-resilient-to-garbage/11789 "2012-08-11T14:31:50Z")

</div>

Before we consider this, what kind of SSH daemon or setting is this that sends MOTD every single time? I have some ideas, but it seems so non-standard that it's almost not worth including the code hack. But I could be…

---

## [$variable and jinja variables](https://forum.ansible.com/t/variable-and-jinja-variables/11785)

<div class="topic-metadata">

**Author:** [@Curtis](https://forum.ansible.com/u/Curtis)\
**Replies:** 2\
**Last updated:** [August 11, 2012, 3:41am UTC](https://forum.ansible.com/t/variable-and-jinja-variables/11785 "2012-08-11T03:41:33Z")

</div>

Hi All, I have a problem I can't figure out...I have a template file which is a php config file, hence $variable. # grep pemkey templates/secrets.j2 $pemkey = '{{ pemkey }}'; # random passphrase - same as given to g…

---

## [Module composition?](https://forum.ansible.com/t/module-composition/11788)

<div class="topic-metadata">

**Author:** [@Chamberlain\_Darren](https://forum.ansible.com/u/Chamberlain_Darren)\
**Replies:** 2\
**Last updated:** [August 11, 2012, 1:55am UTC](https://forum.ansible.com/t/module-composition/11788 "2012-08-11T01:55:02Z")

</div>

Hello all. I'm looking into writing some higher-level modules that would allow my group to do something like the following in a playbook: tasks: - name: Install FooApp action: foo vers=4.4 root=/srv/foo …

---

## [How do I write a playbook for this cobbler snippet?](https://forum.ansible.com/t/how-do-i-write-a-playbook-for-this-cobbler-snippet/11782)

<div class="topic-metadata">

**Author:** [@Andreas\_Davour](https://forum.ansible.com/u/Andreas_Davour)\
**Replies:** 1\
**Last updated:** [August 11, 2012, 1:46am UTC](https://forum.ansible.com/t/how-do-i-write-a-playbook-for-this-cobbler-snippet/11782 "2012-08-11T01:46:50Z")

</div>

In cobbler I have a snippet that looks like this: pushd /lvn #include $bestmatch('/var/lib/cobbler/code/') popd yum -y install software rm -f /lvn/service/config/database.yml lvc setgamecenter This is run on a bun…

---

## [New ability to access results of a previous module call !](https://forum.ansible.com/t/new-ability-to-access-results-of-a-previous-module-call/11787)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 11, 2012, 1:17am UTC](https://forum.ansible.com/t/new-ability-to-access-results-of-a-previous-module-call/11787 "2012-08-11T01:17:04Z")

</div>

As you know, Ansible intentionally doesn't have a lot of "if logic" in it. However, sometimes you need to make a decision. In the past, that meant using "only\_if" (see docs) with a custom module that defined your own f…

---

## [Summary of recent pushes to devel branch](https://forum.ansible.com/t/summary-of-recent-pushes-to-devel-branch/11786)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 11, 2012, 12:44am UTC](https://forum.ansible.com/t/summary-of-recent-pushes-to-devel-branch/11786 "2012-08-11T00:44:20Z")

</div>

Various new things to share since my last email a few days ago, from various user contributions. \*\* Prompting for Encrypted Passwords Rodney Quillo revived an old patch from Matthew Williams, resulting in the ability…

---

## [Ansible presentation to OpenStack DC user group](https://forum.ansible.com/t/ansible-presentation-to-openstack-dc-user-group/11783)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 3\
**Last updated:** [August 10, 2012, 5:47pm UTC](https://forum.ansible.com/t/ansible-presentation-to-openstack-dc-user-group/11783 "2012-08-10T17:47:47Z")

</div>

All: I did a presentation on Ansible to my local OpenStack DC user group yesterday: http://www.slideshare.net/lorinh/vagrant-ansible-and-openstack-on-your-laptop Ansible playbooks for OpenStack are here: https://githu…

---

## [Interfaces on an OpenVZ guest](https://forum.ansible.com/t/interfaces-on-an-openvz-guest/11781)

<div class="topic-metadata">

**Author:** [@Ahmad\_Khayyat](https://forum.ansible.com/u/Ahmad_Khayyat)\
**Replies:** 11\
**Last updated:** [August 10, 2012, 3:56pm UTC](https://forum.ansible.com/t/interfaces-on-an-openvz-guest/11781 "2012-08-10T15:56:30Z")

</div>

On an OpenVZ guest, the main ip is assigned to venet0:0. However, ansible facts list only lo (127.0.0.1) and venet0 (127.0.0.2). Therefore, one cannot get the machine’s actual IP address using ansible facts. Facter, ho…

---

## [host\_vars group\_vars ansible](https://forum.ansible.com/t/host-vars-group-vars-ansible/11780)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 10, 2012, 12:14am UTC](https://forum.ansible.com/t/host-vars-group-vars-ansible/11780 "2012-08-10T00:14:27Z")

</div>

Nope, but it was done by extending the vars\_files logic, and that is playbook specific. If someone wants to try to make it work for both, without breaking the way vars\_files precedence works now, be my guest. I think…

---

## [Project goals and expectations -- why "no" to various good feature requests](https://forum.ansible.com/t/project-goals-and-expectations-why-no-to-various-good-feature-requests/11664)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 9\
**Last updated:** [August 9, 2012, 11:29pm UTC](https://forum.ansible.com/t/project-goals-and-expectations-why-no-to-various-good-feature-requests/11664 "2012-08-09T23:29:15Z")

</div>

Just a note for newcomers… Ansible is a minimal system. It’s codebase desires to stay small, and be as super easy to understand as we can make it. This means saying no to a lot of features, but it’s been considered in …

---

## [Ansible 0.6 released!](https://forum.ansible.com/t/ansible-0-6-released/11769)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [August 9, 2012, 10:18pm UTC](https://forum.ansible.com/t/ansible-0-6-released/11769 "2012-08-09T22:18:13Z")

</div>

It's time! See the release announcement here: http://michaeldehaan.net/post/28871936578/ansible-0-6-released And tarballs are available: https://github.com/ansible/ansible/downloads I have switched from hav…

---

## [things I need to figure out for ansible](https://forum.ansible.com/t/things-i-need-to-figure-out-for-ansible/11779)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 0\
**Last updated:** [August 9, 2012, 9:30pm UTC](https://forum.ansible.com/t/things-i-need-to-figure-out-for-ansible/11779 "2012-08-09T21:30:45Z")

</div>

Hi all, been using ansible for a while now and I'm trying to figure out a good way to do a couple of tricky items. They are not ansible-specific - but I need a solution that allows ansible to function securely. I wor…

---

## [service doesn't exist](https://forum.ansible.com/t/service-doesnt-exist/11777)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 3\
**Last updated:** [August 9, 2012, 8:26pm UTC](https://forum.ansible.com/t/service-doesnt-exist/11777 "2012-08-09T20:26:01Z")

</div>

Hi, Target is CentOS 5.8 I'm getting this error: TASK: \[no xfs\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[cl009.test.net\] =\> {"changed": false, "failed": true, "module": "service", "msg": "failed determining the current servic…

---

## [Running a playbook with v.07](https://forum.ansible.com/t/running-a-playbook-with-v-07/11778)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 1\
**Last updated:** [August 9, 2012, 5:17pm UTC](https://forum.ansible.com/t/running-a-playbook-with-v-07/11778 "2012-08-09T17:17:36Z")

</div>

sheepchase:tasks jmarcus$ ansible-playbook --version ansible-playbook 0.7 sheepchase:tasks jmarcus$ ansible-playbook citrusleaf.yml -u jmarcus -f 2 -K sudo password: PLAY \[NewCL00\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHERING FA…

---

## [Task prerequisites](https://forum.ansible.com/t/task-prerequisites/11776)

<div class="topic-metadata">

**Author:** [@Will\_Thames](https://forum.ansible.com/u/Will_Thames)\
**Replies:** 1\
**Last updated:** [August 9, 2012, 12:17pm UTC](https://forum.ansible.com/t/task-prerequisites/11776 "2012-08-09T12:17:03Z")

</div>

Is there a way to fail nicely (rather than do nothing, which only\_if would probably provide) when certain requirements aren’t satisfied? For example, let’s say I want to install some software, but there’s no point doing…

---

## [Notify a task](https://forum.ansible.com/t/notify-a-task/11771)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 10\
**Last updated:** [August 9, 2012, 6:58am UTC](https://forum.ansible.com/t/notify-a-task/11771 "2012-08-09T06:58:58Z")

</div>

Yeah I realize it's a \*bit\* redundant to have both service name=foo state=restarted (as a handler) And also service name=foo state=started enabled=yes (as a task) However, we do not simply have tasks that are notifi…

---

## [Two new things useful for debugging, and some error handling improvements](https://forum.ansible.com/t/two-new-things-useful-for-debugging-and-some-error-handling-improvements/11775)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 9, 2012, 2:00am UTC](https://forum.ansible.com/t/two-new-things-useful-for-debugging-and-some-error-handling-improvements/11775 "2012-08-09T02:00:18Z")

</div>

(A) Awesome patch from Will Thames: ansible --version and ansible-playbook --version will now include the branch, version, and last update time / SHA if running from git. This makes it very easy to share the version o…

---

## [Preview of other features coming in 0.7](https://forum.ansible.com/t/preview-of-other-features-coming-in-0-7/11774)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 8, 2012, 11:40pm UTC](https://forum.ansible.com/t/preview-of-other-features-coming-in-0-7/11774 "2012-08-08T23:40:42Z")

</div>

Here's a highlight of some major tickets that will be included in 0.7. I didn't think there was a major theme to it before, but it seems there is starting to be one. 0.7 is about polishing ansible until we can see our…

---

## [New modules and things in 0.7](https://forum.ansible.com/t/new-modules-and-things-in-0-7/11773)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 8, 2012, 11:30pm UTC](https://forum.ansible.com/t/new-modules-and-things-in-0-7/11773 "2012-08-08T23:30:14Z")

</div>

0.6 is barely out a day and I've just merged tons of awesome into 0.7! (A) Tim Bielawa has provided a nice patch that will make the occasional YAML error an amazing experience that highlights approximately where an err…

---

## [CitrusLeaf drive Over-provisioning](https://forum.ansible.com/t/citrusleaf-drive-over-provisioning/11772)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 1\
**Last updated:** [August 8, 2012, 8:10pm UTC](https://forum.ansible.com/t/citrusleaf-drive-over-provisioning/11772 "2012-08-08T20:10:50Z")

</div>

Hi, I'm running a NoSQL database called CitrusLeaf. Our environment is growing quickly, and we have drives fail. So its important to me to Ansible CitrusLeaf deployment. Today I used my first variable, which sets …

---

## [Changing IPs on servers?](https://forum.ansible.com/t/changing-ips-on-servers/11770)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 4\
**Last updated:** [August 8, 2012, 7:43pm UTC](https://forum.ansible.com/t/changing-ips-on-servers/11770 "2012-08-08T19:43:21Z")

</div>

Hi, Is there anything cool I can do to change the IPs of 10 servers? Or should I do it by hand? Thanks, James

---

## [FYI -- Update to github notifications system (not project related)](https://forum.ansible.com/t/fyi-update-to-github-notifications-system-not-project-related/11768)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 6, 2012, 8:03pm UTC](https://forum.ansible.com/t/fyi-update-to-github-notifications-system-not-project-related/11768 "2012-08-06T20:03:26Z")

</div>

This may be relevant – https://github.com/blog/1204-notifications I think this means “follow” is being replaced by “star this repository” and watch is now a system of deciding how you get notified by the repository. I…

---

## [Getting started - notes](https://forum.ansible.com/t/getting-started-notes/11765)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [August 6, 2012, 7:19pm UTC](https://forum.ansible.com/t/getting-started-notes/11765 "2012-08-06T19:19:01Z")

</div>

Hi, Good suggetions. The docs project is itself also open source, so how about sending me a pull request for the "rst/" files in the https://github.com/ansible/ansible.github.com/tree/master/rst ? I would leave note…

---

## [Copy file to remote hosts in a module](https://forum.ansible.com/t/copy-file-to-remote-hosts-in-a-module/11760)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [August 6, 2012, 3:47pm UTC](https://forum.ansible.com/t/copy-file-to-remote-hosts-in-a-module/11760 "2012-08-06T15:47:24Z")

</div>

You could call the copy or template module earlier in your playbook, which of course is also doable if you are just using the API directly (though very very very few people do this). There is no way for a module to loop…

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

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