# Latest

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

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

**Page:** 1048

---

## ["copy" fails when overwriting existing file](https://forum.ansible.com/t/copy-fails-when-overwriting-existing-file/12741)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [May 1, 2013, 11:28am UTC](https://forum.ansible.com/t/copy-fails-when-overwriting-existing-file/12741 "2013-05-01T11:28:11Z")

</div>

Hi Kevin, it sounds like you have a mixed install where you have updated and have something in ./library which is not the latest, or it’s picking up something in the system installed path. Can you try from a clean check…

---

## [Ignoring $old\_variable\_syntax in 1.2](https://forum.ansible.com/t/ignoring-old-variable-syntax-in-1-2/12743)

<div class="topic-metadata">

**Author:** [@Matt\_Coddington](https://forum.ansible.com/u/Matt_Coddington)\
**Replies:** 2\
**Last updated:** [May 1, 2013, 3:20am UTC](https://forum.ansible.com/t/ignoring-old-variable-syntax-in-1-2/12743 "2013-05-01T03:20:33Z")

</div>

Now that the Jinja2 syntax is standard in 1.2, is there a way for me to tell Ansible not to honor to the $old\_variable way of doing things in templates? I keep running into issues (mostly in Perl and Shell scripts being …

---

## [group variables](https://forum.ansible.com/t/group-variables/12736)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 7\
**Last updated:** [May 1, 2013, 3:06am UTC](https://forum.ansible.com/t/group-variables/12736 "2013-05-01T03:06:42Z")

</div>

If I have a separate host file for production and testing, can I do something like: \[all:vars\] dbpassword=blah Right now we set an environment variable with our env (prod/testing), then import a var file wit…

---

## [Is it possible to provide async time out value on the command line?](https://forum.ansible.com/t/is-it-possible-to-provide-async-time-out-value-on-the-command-line/12745)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 2\
**Last updated:** [May 1, 2013, 1:06am UTC](https://forum.ansible.com/t/is-it-possible-to-provide-async-time-out-value-on-the-command-line/12745 "2013-05-01T01:06:32Z")

</div>

In the http://ansible.cc/docs/playbooks2.html#passing-variables-on-the-command-line there is a couple of examples about passing variables on the command line. I wish to run tcpdump on a set of hosts for different durati…

---

## [file Module behaviour with directories in check mode](https://forum.ansible.com/t/file-module-behaviour-with-directories-in-check-mode/12721)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [April 30, 2013, 7:44pm UTC](https://forum.ansible.com/t/file-module-behaviour-with-directories-in-check-mode/12721 "2013-04-30T19:44:35Z")

</div>

So if I may summarize, check mode doesn’t work on directories? Or is it something more specific? Yes, this sounds like a minor bug to me and should not be the case.

---

## [cleaned up variables in 1.2](https://forum.ansible.com/t/cleaned-up-variables-in-1-2/12739)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 5\
**Last updated:** [April 30, 2013, 7:36pm UTC](https://forum.ansible.com/t/cleaned-up-variables-in-1-2/12739 "2013-04-30T19:36:36Z")

</div>

Can somebody explain the new cleaned up variables? Maybe add something to the docs... The new docs only mention when:, and I have a case that works with: when\_string: sometask.rc != 0 but I cannot figure out the right…

---

## [exec vs. notify - An improvement proposal](https://forum.ansible.com/t/exec-vs-notify-an-improvement-proposal/12734)

<div class="topic-metadata">

**Author:** [@James\_Mills](https://forum.ansible.com/u/James_Mills)\
**Replies:** 10\
**Last updated:** [April 30, 2013, 12:36pm UTC](https://forum.ansible.com/t/exec-vs-notify-an-improvement-proposal/12734 "2013-04-30T12:36:11Z")

</div>

Hi all, I’ve run into a situation that for me demands an improvement to “notify” or an additional parameter that you can attach to tasks. e.g: name: Build/Install foo action: command make install exec: refresh ld…

---

## [Packagers: Packaging changes may be required for 1.2](https://forum.ansible.com/t/packagers-packaging-changes-may-be-required-for-1-2/12738)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [April 30, 2013, 12:22pm UTC](https://forum.ansible.com/t/packagers-packaging-changes-may-be-required-for-1-2/12738 "2013-04-30T12:22:05Z")

</div>

Note that per my previous email library files are now stored in the main tree under subdirectories. It seems at least the RPM needs to be updated to handle this, though likely other packaging (BSD, macports, Debian, etc…

---

## [LinkedIn & mailing list group reminder](https://forum.ansible.com/t/linkedin-mailing-list-group-reminder/12737)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 29, 2013, 2:47pm UTC](https://forum.ansible.com/t/linkedin-mailing-list-group-reminder/12737 "2013-04-29T14:47:10Z")

</div>

Just wanted to share this for new users: The Linkedin Ansible group is a good place for major announcements or sharing interesting content or blog posts about Ansible – I don’t know if many people know about it, but it …

---

## [proxmox module?](https://forum.ansible.com/t/proxmox-module/12733)

<div class="topic-metadata">

**Author:** [@James\_Mills](https://forum.ansible.com/u/James_Mills)\
**Replies:** 0\
**Last updated:** [April 29, 2013, 6:19am UTC](https://forum.ansible.com/t/proxmox-module/12733 "2013-04-29T06:19:28Z")

</div>

Good :slight\_smile: Using “virt” to spin up proxmox ve kvm/openvz machines is a possibility which I’ve looked into but one that’s possibly a bit complex when proxmox itself has a nicer set of apis and don’t require …

---

## [proxmox module?](https://forum.ansible.com/t/proxmox-module/12732)

<div class="topic-metadata">

**Author:** [@James\_Mills](https://forum.ansible.com/u/James_Mills)\
**Replies:** 1\
**Last updated:** [April 29, 2013, 1:19am UTC](https://forum.ansible.com/t/proxmox-module/12732 "2013-04-29T01:19:19Z")

</div>

Excellent. I’ll get started on this. I’ll post back here when I have a working module. cheers James

---

## [newbie question - can I clone a custom CentoOS configuration (under OpenVZ?)](https://forum.ansible.com/t/newbie-question-can-i-clone-a-custom-centoos-configuration-under-openvz/12731)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 29, 2013, 12:35am UTC](https://forum.ansible.com/t/newbie-question-can-i-clone-a-custom-centoos-configuration-under-openvz/12731 "2013-04-29T00:35:52Z")

</div>

Ansible doesn’t mirror existing systems you have out in the field. Before you go further, I’ll try to convince you that you don’t actually want what you are asking for. What files do you consider important? What SELinux…

---

## [(1.2) skipped tasks now work with register](https://forum.ansible.com/t/1-2-skipped-tasks-now-work-with-register/12728)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 28, 2013, 1:56pm UTC](https://forum.ansible.com/t/1-2-skipped-tasks-now-work-with-register/12728 "2013-04-28T13:56:25Z")

</div>

It’s been frequently requested that we needed a better way do this: action: service name=foo state=running register: some\_result when: x == 3 action: shell echo ‘some random example’ when: some\_result.changed …

---

## [(1.2) added a log file for ansible and ansible-playbook](https://forum.ansible.com/t/1-2-added-a-log-file-for-ansible-and-ansible-playbook/12727)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [April 27, 2013, 5:30pm UTC](https://forum.ansible.com/t/1-2-added-a-log-file-for-ansible-and-ansible-playbook/12727 "2013-04-27T17:30:37Z")

</div>

I’ve just pushed some upgrades that allow for optional logging of all ansible and ansible-playbook output. To configure this, set ‘log\_path’ in your configuration file or ANSIBLE\_LOG\_PATH as an environment variable. Da…

---

## [role library support](https://forum.ansible.com/t/role-library-support/12726)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [April 27, 2013, 1:32pm UTC](https://forum.ansible.com/t/role-library-support/12726 "2013-04-27T13:32:04Z")

</div>

Please send a pull request along!

---

## [proxmox module?](https://forum.ansible.com/t/proxmox-module/12724)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 1\
**Last updated:** [April 26, 2013, 4:25pm UTC](https://forum.ansible.com/t/proxmox-module/12724 "2013-04-26T16:25:52Z")

</div>

Would anyone be interested in a proxmox module in the same vein as ec2 and friends? Yesss! -JP

---

## [Order of search when looking for roles directory](https://forum.ansible.com/t/order-of-search-when-looking-for-roles-directory/12717)

<div class="topic-metadata">

**Author:** [@Matt\_Coddington](https://forum.ansible.com/u/Matt_Coddington)\
**Replies:** 4\
**Last updated:** [April 26, 2013, 12:18pm UTC](https://forum.ansible.com/t/order-of-search-when-looking-for-roles-directory/12717 "2013-04-26T12:18:29Z")

</div>

Hi all, I’ve just started experimenting with roles and noticed that play.py looks for the role in the current playbook’s directory first as opposed to under ./roles/ (e.g. looks for ./myrole/tasks/main.yml first before …

---

## ["Ansible for Rubyists"](https://forum.ansible.com/t/ansible-for-rubyists/12718)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [April 26, 2013, 12:13pm UTC](https://forum.ansible.com/t/ansible-for-rubyists/12718 "2013-04-26T12:13:43Z")

</div>

This is rather rough and could use some feedback (and even upgrades to my Ruby) but I was talking to someone today who wanted to know how to write modules, even fact modules that take parameters, in Ruby. So I made an e…

---

## [Executing tasks before and after roles now possible - set\_up, tear\_down](https://forum.ansible.com/t/executing-tasks-before-and-after-roles-now-possible-set-up-tear-down/12705)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [April 25, 2013, 11:11pm UTC](https://forum.ansible.com/t/executing-tasks-before-and-after-roles-now-possible-set-up-tear-down/12705 "2013-04-25T23:11:26Z")

</div>

As you may remember, roles are a 1.2 feature that allow for easy modularity and reuse of playbook steps. I encountered something today where I wanted to do some tasks before a role was invoked and then after a role was …

---

## [All about Roles in 1.2 -- a great way to organize best-practices content](https://forum.ansible.com/t/all-about-roles-in-1-2-a-great-way-to-organize-best-practices-content/12641)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 25\
**Last updated:** [April 25, 2013, 9:13pm UTC](https://forum.ansible.com/t/all-about-roles-in-1-2-a-great-way-to-organize-best-practices-content/12641 "2013-04-25T21:13:30Z")

</div>

Folks have been asking how to reuse pieces of playbooks easily, and I have also been wanting to squash the need to use relative or absolute paths all over the place. Done! Presenting roles! (in 1.2 devel) Roles are mos…

---

## [Any MongoDB + Ansible users?](https://forum.ansible.com/t/any-mongodb-ansible-users/12691)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 2\
**Last updated:** [April 25, 2013, 11:41am UTC](https://forum.ansible.com/t/any-mongodb-ansible-users/12691 "2013-04-25T11:41:50Z")

</div>

I have a question or two to ask you. Can you please contact me off list? Thanks! –Michael

---

## [roles](https://forum.ansible.com/t/roles/12720)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [April 25, 2013, 9:00am UTC](https://forum.ansible.com/t/roles/12720 "2013-04-25T09:00:03Z")

</div>

Do all files in a task role directory get included automatically, or only the main.yml? If I have: roles/base/tasks/swappiness.yaml /ntpd.yaml Would they both get included when I add the rol…

---

## [question about group\_vars](https://forum.ansible.com/t/question-about-group-vars/12719)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [April 25, 2013, 7:02am UTC](https://forum.ansible.com/t/question-about-group-vars/12719 "2013-04-25T07:02:08Z")

</div>

I've been busy and out of the loop, looking through the documentation I see a lot of new functionalities have been added to ansible! The one I am most exited about is the group\_vars, we have already implemented somethin…

---

## [ec2\_vol error: problem with instance object](https://forum.ansible.com/t/ec2-vol-error-problem-with-instance-object/12715)

<div class="topic-metadata">

**Author:** [@Robert\_Parrott](https://forum.ansible.com/u/Robert_Parrott)\
**Replies:** 5\
**Last updated:** [April 24, 2013, 4:46pm UTC](https://forum.ansible.com/t/ec2-vol-error-problem-with-instance-object/12715 "2013-04-24T16:46:47Z")

</div>

Folks, Trying a recently working playbook on the “devel” branch of ansible, I’m getting an error in the ec2\_vol module. This playbook starts an instance in EC2 using the “ec2” modules, then attaches a volume using the …

---

## [ansible-vars tool POC](https://forum.ansible.com/t/ansible-vars-tool-poc/12714)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [April 23, 2013, 7:43pm UTC](https://forum.ansible.com/t/ansible-vars-tool-poc/12714 "2013-04-23T19:43:39Z")

</div>

Hi, I was playing with the Inventory class, and hacked together a small script that returns all inventory variables for a given host/limit pattern: Basically some POC, but others might find it usefull. Comments for imp…

---

## [Variable for loop in playbook](https://forum.ansible.com/t/variable-for-loop-in-playbook/12704)

<div class="topic-metadata">

**Author:** [@TextEditor](https://forum.ansible.com/u/TextEditor)\
**Replies:** 10\
**Last updated:** [April 23, 2013, 6:32pm UTC](https://forum.ansible.com/t/variable-for-loop-in-playbook/12704 "2013-04-23T18:32:07Z")

</div>

I’m using a playbook to create users and add pubkeys on a server, it does it sequentially and the usernames, groups and keys are all in order. I’m wondering if there is a better way to do this, follow me on some pseudo p…

---

## [Understanding variable precedence](https://forum.ansible.com/t/understanding-variable-precedence/12706)

<div class="topic-metadata">

**Author:** [@GW1](https://forum.ansible.com/u/GW1)\
**Replies:** 18\
**Last updated:** [April 23, 2013, 12:23pm UTC](https://forum.ansible.com/t/understanding-variable-precedence/12706 "2013-04-23T12:23:23Z")

</div>

Hi, Can somebody please explain to me why the variable precedence (http://ansible.cc/docs/playbooks2.html#understanding-variable-precedence) is the way it is? Especially why \`vars\` and \`vars\_files\` are in that order an…

---

## [New 1.2 feature, retrying only hosts with failures](https://forum.ansible.com/t/new-1-2-feature-retrying-only-hosts-with-failures/12646)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [April 23, 2013, 8:18am UTC](https://forum.ansible.com/t/new-1-2-feature-retrying-only-hosts-with-failures/12646 "2013-04-23T08:18:12Z")

</div>

It is sometimes nice to be able to run actions on hosts that previously encountered failures. Now, in 1.2 (just now), you get a message like this when you have failures: PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Vagrant module in library directory...](https://forum.ansible.com/t/vagrant-module-in-library-directory/12712)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 23, 2013, 4:33am UTC](https://forum.ansible.com/t/vagrant-module-in-library-directory/12712 "2013-04-23T04:33:01Z")

</div>

There was a module in core that was using vagrant to bring up virtualbox guests (or others). To me, this feels weird, as you could use the underlying virt technology if you wanted to do that, and if you were using vagra…

---

## [Further variable usage improvements in 1.2](https://forum.ansible.com/t/further-variable-usage-improvements-in-1-2/12711)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [April 23, 2013, 2:22am UTC](https://forum.ansible.com/t/further-variable-usage-improvements-in-1-2/12711 "2013-04-23T02:22:57Z")

</div>

I pushed a set of fixes that allow some things like: include: path.yml a={{ foo }} b={{ bar }} where as before, the spacing would confuse Ansible I also made several fixes that allow things like: with\_nested: lis…

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

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