# Latest

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

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

**Page:** 1051

---

## [Regression in variables when including playbooks](https://forum.ansible.com/t/regression-in-variables-when-including-playbooks/12648)

<div class="topic-metadata">

**Author:** [@GW1](https://forum.ansible.com/u/GW1)\
**Replies:** 2\
**Last updated:** [April 8, 2013, 3:48pm UTC](https://forum.ansible.com/t/regression-in-variables-when-including-playbooks/12648 "2013-04-08T15:48:12Z")

</div>

Hi, I think I found a regression in Ansible 1.2 develop branch. Afaik the following worked in the 1.1 develop branch around 1 week ago. # \_test\_site.yml

---

## [override "changed:" variable from within a shell?](https://forum.ansible.com/t/override-changed-variable-from-within-a-shell/12647)

<div class="topic-metadata">

**Author:** [@PJ1](https://forum.ansible.com/u/PJ1)\
**Replies:** 1\
**Last updated:** [April 8, 2013, 3:46pm UTC](https://forum.ansible.com/t/override-changed-variable-from-within-a-shell/12647 "2013-04-08T15:46:12Z")

</div>

Hi, It’s possible to change the outcome (RC) of a shell command with the exit command, but is there a way to override the changed-variable? command: sh -c “\[ ! -h /etc/ldap.conf -a -e /etc/ldap.conf \] && mv /etc/ldap.c…

---

## [host\_vars/group\_vars issue with ansible 1.1+](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12649)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 8, 2013, 3:34pm UTC](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12649 "2013-04-08T15:34:05Z")

</div>

When you say environment, do you mean the “environment:” keyword on a task? Can I see an example playbook? As far as “way to see how”, you are asking code questions. Precedence orders are documented on the “Advanced Pl…

---

## [Can a developed Ansible module include or extend an Ansible Core module?](https://forum.ansible.com/t/can-a-developed-ansible-module-include-or-extend-an-ansible-core-module/12634)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 6\
**Last updated:** [April 8, 2013, 3:16pm UTC](https://forum.ansible.com/t/can-a-developed-ansible-module-include-or-extend-an-ansible-core-module/12634 "2013-04-08T15:16:19Z")

</div>

Generally speaking, ansible allows sharing code through “lib/ansible/module\_common.py” to make writing functionality easier. It does not, however, make it possible for one module to call another, which has not, to date,…

---

## [hard failure or 'checkpoint' type task](https://forum.ansible.com/t/hard-failure-or-checkpoint-type-task/12645)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 2\
**Last updated:** [April 8, 2013, 4:56am UTC](https://forum.ansible.com/t/hard-failure-or-checkpoint-type-task/12645 "2013-04-08T04:56:55Z")

</div>

I’m running a deployment playbook (stop, rollout, start, post-deploy tasks). There are times when the whole playbook should abort if any tasks fail (e.g. not all hosts stop). Is there an easy way to achieve this - what…

---

## [Lineinfile in v1.1](https://forum.ansible.com/t/lineinfile-in-v1-1/12625)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 21\
**Last updated:** [April 7, 2013, 11:34pm UTC](https://forum.ansible.com/t/lineinfile-in-v1-1/12625 "2013-04-07T23:34:24Z")

</div>

Hi, I followed lineinfile for sometime till will we had backrefs, but latest code seems to have changed so wanted to understand will this still work if i want to comment a line out ? lineinfile dest=/tmp/grub.conf st…

---

## [stop and start an upstart service in a handler](https://forum.ansible.com/t/stop-and-start-an-upstart-service-in-a-handler/12632)

<div class="topic-metadata">

**Author:** [@seb.stark](https://forum.ansible.com/u/seb.stark)\
**Replies:** 11\
**Last updated:** [April 7, 2013, 3:41pm UTC](https://forum.ansible.com/t/stop-and-start-an-upstart-service-in-a-handler/12632 "2013-04-07T15:41:13Z")

</div>

With upstart, after you changed an option in /etc/init/.conf, it is not enough to run “restart ”. You would have to stop and start the service for the change to take effect, as documented in initctl(8) on Ubuntu 12.04. H…

---

## [Using Vagrant for testing Ansible](https://forum.ansible.com/t/using-vagrant-for-testing-ansible/12642)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [April 6, 2013, 10:03pm UTC](https://forum.ansible.com/t/using-vagrant-for-testing-ansible/12642 "2013-04-06T22:03:25Z")

</div>

There’s no reason anyone needs to use Vagrant to run the ansible tests, and anyone who wishes to use Vagrant can use Vagrant to do so. Further, there’s no reason to particularly pick Ubuntu either. Your decision to not…

---

## [Proposal to change how the module library is installed (distutils)](https://forum.ansible.com/t/proposal-to-change-how-the-module-library-is-installed-distutils/12558)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [April 6, 2013, 6:15pm UTC](https://forum.ansible.com/t/proposal-to-change-how-the-module-library-is-installed-distutils/12558 "2013-04-06T18:15:41Z")

</div>

Very tempting. I think I could consider a pull request to change this around for the 1.2 release if it doesn't cause any other hiccups.

---

## [Trigger task sequences in handlers](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12638)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [April 5, 2013, 9:26pm UTC](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12638 "2013-04-05T21:26:04Z")

</div>

I've been wondering what's the best way to trigger a series of actions when a handler is notified. A good example for the need for this is deploying a web service from a local checkout. What I do in this case: 1. Pr…

---

## [Custom facts modules and tags](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633)

<div class="topic-metadata">

**Author:** [@Dale](https://forum.ansible.com/u/Dale)\
**Replies:** 2\
**Last updated:** [April 5, 2013, 9:11pm UTC](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633 "2013-04-05T21:11:16Z")

</div>

Hi, I've made a site\_facts module that adds some facts I use in my playbooks. I'm also using tags to sometimes run subsets of my playbooks, which I believe is the primary motivation for tags. My problem comes in wh…

---

## [build environment variable from group variables](https://forum.ansible.com/t/build-environment-variable-from-group-variables/12637)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 5, 2013, 9:03pm UTC](https://forum.ansible.com/t/build-environment-variable-from-group-variables/12637 "2013-04-05T21:03:40Z")

</div>

Variables are lazily evaluated when needed so it is ok to reference group variables in $vars\_files and then use them later, like in an environment keyword, without any issue.

---

## [Using setup facts in the following callback](https://forum.ansible.com/t/using-setup-facts-in-the-following-callback/12467)

<div class="topic-metadata">

**Author:** [@Tom\_Laredo](https://forum.ansible.com/u/Tom_Laredo)\
**Replies:** 8\
**Last updated:** [April 5, 2013, 9:02pm UTC](https://forum.ansible.com/t/using-setup-facts-in-the-following-callback/12467 "2013-04-05T21:02:40Z")

</div>

Hi everyone, I’m writing several callbacks and modules for my ansible set and I’m wondering if there is a preexisting/simple way to use ansible facts given by setup module in a following callback (different from the fir…

---

## [Trigger task sequences in handlers](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12635)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 5, 2013, 8:58pm UTC](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12635 "2013-04-05T20:58:07Z")

</div>

You can notify multiple things with one task, or you can apply the same “when\_changed” conditional on multiple successive tasks. Up to you.

---

## [ansible playlets/included plays?](https://forum.ansible.com/t/ansible-playlets-included-plays/12628)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 5\
**Last updated:** [April 5, 2013, 8:57pm UTC](https://forum.ansible.com/t/ansible-playlets-included-plays/12628 "2013-04-05T20:57:15Z")

</div>

What I want in ansible: Essentially, it is a simple way to let me port a bunch of puppet modules directly to ansible. right now I can include tasks - which is great and I can include handlers - which is great Ideall…

---

## [combining register: with with\_items: fails](https://forum.ansible.com/t/combining-register-with-with-items-fails/12631)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [April 5, 2013, 12:56pm UTC](https://forum.ansible.com/t/combining-register-with-with-items-fails/12631 "2013-04-05T12:56:58Z")

</div>

Hi List, I’m trying this (Simplified version): - name: Oracle | Figure out the paths that exist here action: shell ls /opt/oracle/product/ register: oracle\_versions - name: Oracle | Now find the specific admin paths …

---

## [Deployment playbooks, tasks, and the best way to build this?](https://forum.ansible.com/t/deployment-playbooks-tasks-and-the-best-way-to-build-this/12627)

<div class="topic-metadata">

**Author:** [@Ashley\_Penney](https://forum.ansible.com/u/Ashley_Penney)\
**Replies:** 1\
**Last updated:** [April 4, 2013, 8:12pm UTC](https://forum.ansible.com/t/deployment-playbooks-tasks-and-the-best-way-to-build-this/12627 "2013-04-04T20:12:14Z")

</div>

Hi all, I have a use case that I’m trialing ansible for and I’m having trouble building it in a clean way without duplication. I thought I’d come to the list and ask for advice. I have some generic stuff that happens f…

---

## [Raleigh/Durham/Chapel-Hill area ansible-users meetup?](https://forum.ansible.com/t/raleigh-durham-chapel-hill-area-ansible-users-meetup/12626)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 4, 2013, 6:02pm UTC](https://forum.ansible.com/t/raleigh-durham-chapel-hill-area-ansible-users-meetup/12626 "2013-04-04T18:02:21Z")

</div>

I'm thinking of doing something (very very informal) tentatively around the week of 4/17 or possibly thereafter. Basically just to talk shop, 1.1, 1.2 roadmap, what we're all managing, Q&A, etc. Let me know if you ar…

---

## [some questions related to vars\_plugins](https://forum.ansible.com/t/some-questions-related-to-vars-plugins/12623)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 2\
**Last updated:** [April 3, 2013, 9:27pm UTC](https://forum.ansible.com/t/some-questions-related-to-vars-plugins/12623 "2013-04-03T21:27:00Z")

</div>

Hi, I have been reading some ansible code, and am trying to understand some inner workings. I have some questions, to check if I understand certain things correctly: 1 Am i correct when stating that the the result of …

---

## [Ansible 1.1 Released](https://forum.ansible.com/t/ansible-1-1-released/12618)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [April 3, 2013, 4:22pm UTC](https://forum.ansible.com/t/ansible-1-1-released/12618 "2013-04-03T16:22:06Z")

</div>

The time has come to release Ansible 1.1! http://blog.ansibleworks.com/2013/04/02/ansible-1-1-released/ It is now available via http://ansible.cc/releases, the "release1.1" branch in git, the v1.1 tag in git, or PyPi. …

---

## [Playbook action fails when template host fact host not available](https://forum.ansible.com/t/playbook-action-fails-when-template-host-fact-host-not-available/12622)

<div class="topic-metadata">

**Author:** [@TextEditor](https://forum.ansible.com/u/TextEditor)\
**Replies:** 1\
**Last updated:** [April 3, 2013, 3:43pm UTC](https://forum.ansible.com/t/playbook-action-fails-when-template-host-fact-host-not-available/12622 "2013-04-03T15:43:19Z")

</div>

I have a playbook for installing and configuring Collectd. This has a firewall script which has this jinja2 template for loop: {% for host in groups\[‘collectd-clients’\] %} {% if hostvars\[host\]\[‘ansible\_default\_ipv4’\]\[‘…

---

## [Upcoming Eucalyptus/EC2 + Ansible Webinar on April 9th](https://forum.ansible.com/t/upcoming-eucalyptus-ec2-ansible-webinar-on-april-9th/12621)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 3, 2013, 2:53pm UTC](https://forum.ansible.com/t/upcoming-eucalyptus-ec2-ansible-webinar-on-april-9th/12621 "2013-04-03T14:53:38Z")

</div>

This may be of interest to everyone. Lester Wade will be demoing the EC2 modules for deploying fully configured machines into "the cloud" all in one playbook, and we'll also have some time for Q&A. http://go.eucalypt…

---

## [Accessing Ansible inventory externally](https://forum.ansible.com/t/accessing-ansible-inventory-externally/12620)

<div class="topic-metadata">

**Author:** [@Matt\_Coddington](https://forum.ansible.com/u/Matt_Coddington)\
**Replies:** 3\
**Last updated:** [April 3, 2013, 2:40pm UTC](https://forum.ansible.com/t/accessing-ansible-inventory-externally/12620 "2013-04-03T14:40:31Z")

</div>

Hi all, I’ve got a homegrown app where I’d love to be able to use Ansible’s inventory… I could of course use an external inventory for both, but Ansible’s built-in way of doing inventory and vars is really all I need so…

---

## [execute a task or playbook once per play?](https://forum.ansible.com/t/execute-a-task-or-playbook-once-per-play/12616)

<div class="topic-metadata">

**Author:** [@PJ1](https://forum.ansible.com/u/PJ1)\
**Replies:** 13\
**Last updated:** [April 3, 2013, 12:55pm UTC](https://forum.ansible.com/t/execute-a-task-or-playbook-once-per-play/12616 "2013-04-03T12:55:06Z")

</div>

I’m trying to figure out a way of checking out a git repository only once per play on the management host. I’ve solved this by registering an variable when I checked it out in normal playbooks, but it wont work if I make…

---

## [How does 'register' behave when paired with 'with\_items' ?](https://forum.ansible.com/t/how-does-register-behave-when-paired-with-with-items/12612)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 3\
**Last updated:** [April 3, 2013, 12:48pm UTC](https://forum.ansible.com/t/how-does-register-behave-when-paired-with-with-items/12612 "2013-04-03T12:48:11Z")

</div>

I'm trying to get into Ansible and was studying some examples. One of the examples lists a task that contains both 'with\_items' and 'register'. The registered variable will be a list of its own, which you would have …

---

## [(1.2/development feature) Variable/conditional cleanup in progress](https://forum.ansible.com/t/1-2-development-feature-variable-conditional-cleanup-in-progress/12619)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 3, 2013, 5:15am UTC](https://forum.ansible.com/t/1-2-development-feature-variable-conditional-cleanup-in-progress/12619 "2013-04-03T05:15:10Z")

</div>

A common request for Ansible is that we have easier to use conditionals and variable operations, or occasionally that something like lowercasing a variable is made possible. Until now, that hasn't /really/ been poss…

---

## [Notify service restart before executing next playbook action](https://forum.ansible.com/t/notify-service-restart-before-executing-next-playbook-action/12615)

<div class="topic-metadata">

**Author:** [@TextEditor](https://forum.ansible.com/u/TextEditor)\
**Replies:** 4\
**Last updated:** [April 2, 2013, 6:00pm UTC](https://forum.ansible.com/t/notify-service-restart-before-executing-next-playbook-action/12615 "2013-04-02T18:00:49Z")

</div>

My Postfix playbook sends a test email via the mail module. However this fails because postfix has not reloaded the configuration. I now have a manual service restart action in the playbook, however I was wondering if it…

---

## [aptitude safe-upgrade](https://forum.ansible.com/t/aptitude-safe-upgrade/12608)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 9\
**Last updated:** [April 2, 2013, 11:51am UTC](https://forum.ansible.com/t/aptitude-safe-upgrade/12608 "2013-04-02T11:51:33Z")

</div>

I’d like to add support for the “aptitude safe-upgrade” command in an ansible module. I was thinking of one of two options for implementing it: Option 1: Modifying the apt module so that the “upgrade” parameter can take…

---

## [San Francisco Ansible Meetup - Monday, 4/8 at 6pm at AppDynamics](https://forum.ansible.com/t/san-francisco-ansible-meetup-monday-4-8-at-6pm-at-appdynamics/12614)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [April 2, 2013, 3:01am UTC](https://forum.ansible.com/t/san-francisco-ansible-meetup-monday-4-8-at-6pm-at-appdynamics/12614 "2013-04-02T03:01:16Z")

</div>

Hi everyone, Tim and I are going to be in San Francisco next Monday and we're going to have a meetup downtown. AppDynamics (who are awesome Ansible users BTW) have graciously agreed to host, and there should be the re…

---

## [How to specify ansible user?](https://forum.ansible.com/t/how-to-specify-ansible-user/12602)

<div class="topic-metadata">

**Author:** [@Yang\_Zhang](https://forum.ansible.com/u/Yang_Zhang)\
**Replies:** 7\
**Last updated:** [April 2, 2013, 1:32am UTC](https://forum.ansible.com/t/how-to-specify-ansible-user/12602 "2013-04-02T01:32:31Z")

</div>

ssh-agent works fine for normal ssh. For instance, being careful not to use use any ssh config (since from many prior mailing list queries inheriting the full ssh config has been identified as will-not-implement - se…

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

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