# Latest

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

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

**Page:** 1080

---

## [(module developers) making it easier to call the file module after your module](https://forum.ansible.com/t/module-developers-making-it-easier-to-call-the-file-module-after-your-module/11705)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 20, 2012, 11:33am UTC](https://forum.ansible.com/t/module-developers-making-it-easier-to-call-the-file-module-after-your-module/11705 "2012-07-20T11:33:29Z")

</div>

Recently I was asked how while the code for the copy module doesn't have anything about file ownership in it, how it still works. The answer is there is code in Runner that calls the file module automatically after the …

---

## [remote-copy module?](https://forum.ansible.com/t/remote-copy-module/11701)

<div class="topic-metadata">

**Author:** [@Chamberlain\_Darren](https://forum.ansible.com/u/Chamberlain_Darren)\
**Replies:** 19\
**Last updated:** [July 20, 2012, 11:15am UTC](https://forum.ansible.com/t/remote-copy-module/11701 "2012-07-20T11:15:30Z")

</div>

Is there an existing module that works similar to copy but allows one to use http resources instead of local files? Something like $ ansible all -m remote-copy -a 'src=http://internal.host/status-dashboard.txt dest=/…

---

## [stunnel4 service started through ansible hangs](https://forum.ansible.com/t/stunnel4-service-started-through-ansible-hangs/11702)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [July 19, 2012, 7:28pm UTC](https://forum.ansible.com/t/stunnel4-service-started-through-ansible-hangs/11702 "2012-07-19T19:28:20Z")

</div>

The init script is probably returning something unexpected. Can you include output of the actual ansible command executing the service module? I don't see that below. Also, latest ansible on development branch? Wha…

---

## [ansible node variables](https://forum.ansible.com/t/ansible-node-variables/11688)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 8\
**Last updated:** [July 18, 2012, 6:49pm UTC](https://forum.ansible.com/t/ansible-node-variables/11688 "2012-07-18T18:49:03Z")

</div>

It is -- it's pretty simple. Basically you should just write a module that returns an ansible\_facts dictionary in JSON\* like so: { ansible\_facts: { 'lein' : "path\_to\_lein\_goes\_here", } } And call …

---

## [Reusing code in modules](https://forum.ansible.com/t/reusing-code-in-modules/11656)

<div class="topic-metadata">

**Author:** [@John\_Kleint](https://forum.ansible.com/u/John_Kleint)\
**Replies:** 10\
**Last updated:** [July 18, 2012, 6:20pm UTC](https://forum.ansible.com/t/reusing-code-in-modules/11656 "2012-07-18T18:20:03Z")

</div>

Currently, modules are independent, standalone Python scripts. This is good because we transfer them to remote nodes and can run them without dependencies. However, it leads to a lot of copy-and-pasted code between modul…

---

## [only\_if with task includes ?](https://forum.ansible.com/t/only-if-with-task-includes/11699)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 1\
**Last updated:** [July 18, 2012, 3:12pm UTC](https://forum.ansible.com/t/only-if-with-task-includes/11699 "2012-07-18T15:12:58Z")

</div>

Is there a plan to have 'only\_if' at includes within tasks ? I am passing the --extra-vars="product=theproduct" to the playbook. So it makes it resuable for each product. My tasks i have broken up completely into mult…

---

## [Running a local task in a playbook for remotes.](https://forum.ansible.com/t/running-a-local-task-in-a-playbook-for-remotes/11690)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 11\
**Last updated:** [July 18, 2012, 3:06pm UTC](https://forum.ansible.com/t/running-a-local-task-in-a-playbook-for-remotes/11690 "2012-07-18T15:06:31Z")

</div>

I’m trying to write a playbook that needs to generate some files on the local server Ansible is running and then go out to the remote doing things. I was under the impression that you could run something locally in a pla…

---

## [How does ansible execute modules remotely?](https://forum.ansible.com/t/how-does-ansible-execute-modules-remotely/11698)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 18, 2012, 11:32am UTC](https://forum.ansible.com/t/how-does-ansible-execute-modules-remotely/11698 "2012-07-18T11:32:23Z")

</div>

This may be a stupid question but how does Ansible run modules remotely? I was going through the code a bit and I saw that it uses the Runner library to do so. It first transfers the module to the remote host and then e…

---

## [(devel) Playbooks and tasks now check themselves for typos a bit better](https://forum.ansible.com/t/devel-playbooks-and-tasks-now-check-themselves-for-typos-a-bit-better/11697)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 17, 2012, 11:23pm UTC](https://forum.ansible.com/t/devel-playbooks-and-tasks-now-check-themselves-for-typos-a-bit-better/11697 "2012-07-17T23:23:40Z")

</div>

If you type "var" for "vars", or try to use a keyword that Ansible doesn't know about, it will now yell at you. If you were doing things like: "comment: this is a comment" You should switch to YAML comments # YAML c…

---

## [ansible as an upgrade/migration tool](https://forum.ansible.com/t/ansible-as-an-upgrade-migration-tool/11696)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 17, 2012, 6:57pm UTC](https://forum.ansible.com/t/ansible-as-an-upgrade-migration-tool/11696 "2012-07-17T18:57:09Z")

</div>

Ansible is for managing a system throughout it’s entire life cycle, not just provisioning – that’s the whole point of the idempotent configuration management resource model. And yes, that’s why I wrote it, specifically. …

---

## [Really poor-man's external inventory with staging and reporting 165 LOC.](https://forum.ansible.com/t/really-poor-mans-external-inventory-with-staging-and-reporting-165-loc/11695)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 0\
**Last updated:** [July 17, 2012, 6:47pm UTC](https://forum.ansible.com/t/really-poor-mans-external-inventory-with-staging-and-reporting-165-loc/11695 "2012-07-17T18:47:53Z")

</div>

This started as a way to handle some configuration and reporting needs. Peter Sankauskas’ ec2.py module may let me back off from this path, except I need to manage some nodes under VMWare and Rackspace as well. I needed…

---

## [new mount module](https://forum.ansible.com/t/new-mount-module/11689)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 17, 2012, 6:13pm UTC](https://forum.ansible.com/t/new-mount-module/11689 "2012-07-17T18:13:36Z")

</div>

I pushed Seth Vidal's very nice new mount module here: https://github.com/ansible/ansible/blob/devel/library/mount It both edits fstab and ensures things are actually mounted. --Michael

---

## [Very basic initial tags support (long) and future plans around tags](https://forum.ansible.com/t/very-basic-initial-tags-support-long-and-future-plans-around-tags/11666)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [July 17, 2012, 5:36pm UTC](https://forum.ansible.com/t/very-basic-initial-tags-support-long-and-future-plans-around-tags/11666 "2012-07-17T17:36:24Z")

</div>

Pushed some code to support "tags" on resources, which are an optional thing you can use only if you want them. Long email as I attempt to explain the concept and my thinking behind it…which is not new in configuration …

---

## [Not transferring the setup file](https://forum.ansible.com/t/not-transferring-the-setup-file/11663)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [July 17, 2012, 5:30pm UTC](https://forum.ansible.com/t/not-transferring-the-setup-file/11663 "2012-07-17T17:30:05Z")

</div>

There is no need for the setup file (/etc/ansible/setup) (other than those who have found use for it) to be transferred to remote hosts, if we remove the ability for the /usr/bin/ansible command line to call the template…

---

## [Cobbler, Cloud, and Ansible. Drawing (dotted) boundaries.](https://forum.ansible.com/t/cobbler-cloud-and-ansible-drawing-dotted-boundaries/11693)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 2\
**Last updated:** [July 17, 2012, 5:00pm UTC](https://forum.ansible.com/t/cobbler-cloud-and-ansible-drawing-dotted-boundaries/11693 "2012-07-17T17:00:01Z")

</div>

With all the provisioning, bootstrapping, configuration, and compliance tools I’ve used, there’s always fuzzy areas about which tool best to do which job. I’m looking to Cobbler users (I’m not one) to comment on Fairly …

---

## [Working With Amazon AWS / EC2](https://forum.ansible.com/t/working-with-amazon-aws-ec2/11480)

<div class="topic-metadata">

**Author:** [@CK1](https://forum.ansible.com/u/CK1)\
**Replies:** 7\
**Last updated:** [July 17, 2012, 4:52pm UTC](https://forum.ansible.com/t/working-with-amazon-aws-ec2/11480 "2012-07-17T16:52:03Z")

</div>

Hi all, I’m curious as to how you guys handle the issue with dynamic hosts such as the instances started up on AWS? This is a similar issue I have with using Puppet. Chef tends to work better since there’s a way to des…

---

## [Key exchange approaches, drawbacks.](https://forum.ansible.com/t/key-exchange-approaches-drawbacks/11694)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 0\
**Last updated:** [July 17, 2012, 4:13pm UTC](https://forum.ansible.com/t/key-exchange-approaches-drawbacks/11694 "2012-07-17T16:13:40Z")

</div>

SSH key pairs are great, as we all know. Besides using them to control Ansible connections, I also use them with git for certain software deployments and with rsync and other sync tools to get production data to my QA an…

---

## [Include with tasks](https://forum.ansible.com/t/include-with-tasks/11691)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 5\
**Last updated:** [July 17, 2012, 2:42pm UTC](https://forum.ansible.com/t/include-with-tasks/11691 "2012-07-17T14:42:18Z")

</div>

Inclusion works fine with vars\_files. But not with tasks when a variable is used within a filename ? var: product: abc vars\_files: - vars/${product}.yml tasks: - include: tasks/${product}.yml W…

---

## [Finally fixed, vars\_files and with\_items now 100% compatible](https://forum.ansible.com/t/finally-fixed-vars-files-and-with-items-now-100-compatible/11683)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 11\
**Last updated:** [July 17, 2012, 1:06am UTC](https://forum.ansible.com/t/finally-fixed-vars-files-and-with-items-now-100-compatible/11683 "2012-07-17T01:06:42Z")

</div>

Devel branch update. I've finally fixed with\_items (better) such that there should be no more confusion about not being able to use vars\_files to conditionally load host specific files, and use those later in with\_ite…

---

## [Inventory variables and fact variables fixed up -- I think](https://forum.ansible.com/t/inventory-variables-and-fact-variables-fixed-up-i-think/11687)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 16, 2012, 11:34pm UTC](https://forum.ansible.com/t/inventory-variables-and-fact-variables-fixed-up-i-think/11687 "2012-07-16T23:34:35Z")

</div>

I have confirmed that: \* playbooks now substitute inventory variables \* playbook templates can see facts In fixing this -- I'm actually pretty happy about this -- all the stupid ways we figure out what template dictio…

---

## [ansible\_facts broken?](https://forum.ansible.com/t/ansible-facts-broken/11686)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 3\
**Last updated:** [July 16, 2012, 9:13pm UTC](https://forum.ansible.com/t/ansible-facts-broken/11686 "2012-07-16T21:13:16Z")

</div>

Hello, up until yesterday evening CET, I had a module returning ansible\_facts which worked, but that seems to be broken now: facts aren't passed on to templates: Can somebody confirm this? -JP ANSIBLE\_SSH\_A…

---

## [facter in non-standard location](https://forum.ansible.com/t/facter-in-non-standard-location/11674)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 16, 2012, 1:38pm UTC](https://forum.ansible.com/t/facter-in-non-standard-location/11674 "2012-07-16T13:38:43Z")

</div>

We look in /usr/bin/facter, so you could do something as simple as making a symlink with /usr/bin/ansible on all of your hosts. –Michael

---

## [Lost in user permissions and playbooks](https://forum.ansible.com/t/lost-in-user-permissions-and-playbooks/11685)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 16, 2012, 12:23pm UTC](https://forum.ansible.com/t/lost-in-user-permissions-and-playbooks/11685 "2012-07-16T12:23:17Z")

</div>

You have a typo. The key in the playbook is "sudo\_user", not "sudo-user". So, basically bad input, and it's just using defaults. (In thinking of how to prevent this in the future, it's probably time to have play book…

---

## [Doc example of using list variable with with\_items?](https://forum.ansible.com/t/doc-example-of-using-list-variable-with-with-items/11682)

<div class="topic-metadata">

**Author:** [@John\_Callender](https://forum.ansible.com/u/John_Callender)\
**Replies:** 8\
**Last updated:** [July 15, 2012, 12:16pm UTC](https://forum.ansible.com/t/doc-example-of-using-list-variable-with-with-items/11682 "2012-07-15T12:16:15Z")

</div>

As one of the steps in a provisioning playbook, I want to have a host-specific list of data directories that are copied from a backup to the host being provisioned. One possible approach to doing that would be to have my…

---

## [Now it's possible to disable the fact gathering (setup) step if you don't need it](https://forum.ansible.com/t/now-its-possible-to-disable-the-fact-gathering-setup-step-if-you-dont-need-it/11684)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 14, 2012, 11:53pm UTC](https://forum.ansible.com/t/now-its-possible-to-disable-the-fact-gathering-setup-step-if-you-dont-need-it/11684 "2012-07-14T23:53:56Z")

</div>

If you know you are never going to use host specific variables, like you already know what the hostnames of your machines are, don't need to dynamically figure out their IP addresses for use in templates, and already kno…

---

## [(developery/technical) with\_items + vars\_files improvements, internals of SETUP\_CACHE](https://forum.ansible.com/t/developery-technical-with-items-vars-files-improvements-internals-of-setup-cache/11681)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 14, 2012, 6:02pm UTC](https://forum.ansible.com/t/developery-technical-with-items-vars-files-improvements-internals-of-setup-cache/11681 "2012-07-14T18:02:30Z")

</div>

Sorry, this is way too filled with jargon, so I'm only going to mention it here once, and it's not something I even need to put in the docs. However, I know people on IRC used to help people with this, so I wanted to s…

---

## [playbooks and setup module made a lot more efficient](https://forum.ansible.com/t/playbooks-and-setup-module-made-a-lot-more-efficient/11680)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 14, 2012, 4:54pm UTC](https://forum.ansible.com/t/playbooks-and-setup-module-made-a-lot-more-efficient/11680 "2012-07-14T16:54:32Z")

</div>

A few changes to the way the setup module works, which are pretty transparent to everyone, unless you wrote some code that was reading that file. (A) Ansible no longer writes a setup file to the remote system. This m…

---

## [I've pushed Mark's MySQL modules to the devel branch, please help test](https://forum.ansible.com/t/ive-pushed-marks-mysql-modules-to-the-devel-branch-please-help-test/11679)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [July 14, 2012, 4:46pm UTC](https://forum.ansible.com/t/ive-pushed-marks-mysql-modules-to-the-devel-branch-please-help-test/11679 "2012-07-14T16:46:00Z")

</div>

I'm more of a PostgreSQL guy lately so I'm probably not the best person to test these, but Mark Theunissen has created some MySQL user and database modules which look pretty awesome to me. mysql\_user and mysql\_db are he…

---

## [Update on tagging feature; Tagging a play == tagging all tasks in the play](https://forum.ansible.com/t/update-on-tagging-feature-tagging-a-play-tagging-all-tasks-in-the-play/11678)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 14, 2012, 2:39pm UTC](https://forum.ansible.com/t/update-on-tagging-feature-tagging-a-play-tagging-all-tasks-in-the-play/11678 "2012-07-14T14:39:57Z")

</div>

Basic demo here: https://github.com/ansible/ansible/blob/devel/examples/playbooks/tags.yml --Michael

---

## [Playbooks can now import playbooks](https://forum.ansible.com/t/playbooks-can-now-import-playbooks/11677)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 14, 2012, 2:07pm UTC](https://forum.ansible.com/t/playbooks-can-now-import-playbooks/11677 "2012-07-14T14:07:32Z")

</div>

Ansible prefers when you use plays to map a group to a specific series of roles. For instance, assume a webservers.yml playbook:

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

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