# Ansible Developer

**URL:** https://forum.ansible.com/c/archives/ansible-developer/29.md?page=84

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

**Page:** 85

---

## [Issue with relative paths when creating directories in Ansible 1.7.0](https://forum.ansible.com/t/issue-with-relative-paths-when-creating-directories-in-ansible-1-7-0/15891)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 2\
**Last updated:** [August 8, 2014, 11:39pm UTC](https://forum.ansible.com/t/issue-with-relative-paths-when-creating-directories-in-ansible-1-7-0/15891 "2014-08-08T23:39:55Z")

</div>

(A) This is probably a better question for ansible-project in the future. (B) So I noticed you already filed a ticket on this one and it’s on our list to look at. In general, we’ve never really specified what relativ…

---

## [passing var to a template in  a loop](https://forum.ansible.com/t/passing-var-to-a-template-in-a-loop/15878)

<div class="topic-metadata">

**Author:** [@avrman](https://forum.ansible.com/u/avrman)\
**Replies:** 2\
**Last updated:** [August 6, 2014, 10:59pm UTC](https://forum.ansible.com/t/passing-var-to-a-template-in-a-loop/15878 "2014-08-06T22:59:26Z")

</div>

I want to use a template to copy a file to a destination with a unique name, on each copy. I also want to pass a unique value for a variable used in the jinja2 template file. How can I do this? I know I can use with\_i…

---

## [Warning feature idea; interest level and feedback requested](https://forum.ansible.com/t/warning-feature-idea-interest-level-and-feedback-requested/15875)

<div class="topic-metadata">

**Author:** [@Kale\_Franz](https://forum.ansible.com/u/Kale_Franz)\
**Replies:** 1\
**Last updated:** [August 6, 2014, 10:07pm UTC](https://forum.ansible.com/t/warning-feature-idea-interest-level-and-feedback-requested/15875 "2014-08-06T22:07:19Z")

</div>

Hi everyone, If this feature has been proposed int he past, I apologize in advance. I’d like to see a generic “warning” feature in ansible, that could possibly have several components: The feature would add a warning…

---

## [\[ansible\] runner + callbacks: allow callbacks to template the delegates (#8432)](https://forum.ansible.com/t/ansible-runner-callbacks-allow-callbacks-to-template-the-delegates-8432/15856)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 3\
**Last updated:** [August 5, 2014, 6:48pm UTC](https://forum.ansible.com/t/ansible-runner-callbacks-allow-callbacks-to-template-the-delegates-8432/15856 "2014-08-05T18:48:42Z")

</div>

Hi Michael,​ In reference to your comment on my PR 8432: From: Michael DeHaan \<notifications@github.com\> Date: 4 August 2014 20:11 Subject: Re: \[ansible\] runner + callbacks: allow callbacks to template the delegates…

---

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

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [August 5, 2014, 4:23pm UTC](https://forum.ansible.com/t/icinga2-module/15859 "2014-08-05T16:23:23Z")

</div>

Hi Icinga2 was released recently https://github.com/Icinga/icinga2/releases and has a new DSL, is therefore incompatible with previous icinga/nagios configs. We plan to migrate by the end of the year and I wonder if an…

---

## [Discussing "Fail module - all" PR #8410](https://forum.ansible.com/t/discussing-fail-module-all-pr-8410/15857)

<div class="topic-metadata">

**Author:** [@Amr\_Ali](https://forum.ansible.com/u/Amr_Ali)\
**Replies:** 1\
**Last updated:** [August 5, 2014, 4:19pm UTC](https://forum.ansible.com/t/discussing-fail-module-all-pr-8410/15857 "2014-08-05T16:19:04Z")

</div>

Hi, per your comments on github, here to discuss this pr https://github.com/ansible/ansible/pull/8410 This appears to insert a situation where returning the string ‘all’ in a module will fail on all hosts. This has s…

---

## [Problems with remote unarchive on existing file](https://forum.ansible.com/t/problems-with-remote-unarchive-on-existing-file/15830)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 7\
**Last updated:** [August 5, 2014, 12:47am UTC](https://forum.ansible.com/t/problems-with-remote-unarchive-on-existing-file/15830 "2014-08-05T00:47:43Z")

</div>

I’m using unarchive with copy=no and src=/tmp/archive.tar.gz dest=/wherever/ (i.e. the src is already on the machine and I just want to extract it under /wherever) It’s currently failing on the \_remote\_md5 check - it sh…

---

## [Doing a pull request the right way](https://forum.ansible.com/t/doing-a-pull-request-the-right-way/15855)

<div class="topic-metadata">

**Author:** [@Nicolas\_Cesar](https://forum.ansible.com/u/Nicolas_Cesar)\
**Replies:** 5\
**Last updated:** [August 4, 2014, 8:42pm UTC](https://forum.ansible.com/t/doing-a-pull-request-the-right-way/15855 "2014-08-04T20:42:08Z")

</div>

Hi there, So I’m trying to contribute an small enhancement to ansible. That you can find it here: https://github.com/nicocesar/ansible/commit/f03b1ce59e2581a105e27afb4e776333ac29cb56 but my pull request isn’t the cle…

---

## [Ansible parameter "run\_once" not working](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834)

<div class="topic-metadata">

**Author:** [@elwood218](https://forum.ansible.com/u/elwood218)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 5:45pm UTC](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834 "2014-08-01T17:45:51Z")

</div>

Hello to all, according to http://docs.ansible.com/playbooks\_delegation.html#run-once there is a parameter run\_once to execute a task only on one target. For me this is not runnung! :frowning: Gettting this error messa…

---

## [\[ansible\] add doc to stat module + function to display doc (#8382)](https://forum.ansible.com/t/ansible-add-doc-to-stat-module-function-to-display-doc-8382/15831)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 0\
**Last updated:** [August 1, 2014, 7:06am UTC](https://forum.ansible.com/t/ansible-add-doc-to-stat-module-function-to-display-doc-8382/15831 "2014-08-01T07:06:49Z")

</div>

Hi, I really would not like to see a separate doc page for the stat module (the new stat.rst), and would like to see this accounted for in the inline documentation for the stat module if possible. Sorry I forgot to…

---

## [Role Composition Suggestions](https://forum.ansible.com/t/role-composition-suggestions/15808)

<div class="topic-metadata">

**Author:** [@Agrajag\_Petunia](https://forum.ansible.com/u/Agrajag_Petunia)\
**Replies:** 4\
**Last updated:** [July 31, 2014, 7:11pm UTC](https://forum.ansible.com/t/role-composition-suggestions/15808 "2014-07-31T19:11:53Z")

</div>

Hi, This could be a stupid question, but what is the best approach to nested role construction (or role composition)? Here is an example: I was needing to set up a postgres role, so rather than re-invent the wheel I we…

---

## [using gathered fact in another play in the same playbook](https://forum.ansible.com/t/using-gathered-fact-in-another-play-in-the-same-playbook/15823)

<div class="topic-metadata">

**Author:** [@Eugene\_Dementiev](https://forum.ansible.com/u/Eugene_Dementiev)\
**Replies:** 2\
**Last updated:** [July 31, 2014, 5:38pm UTC](https://forum.ansible.com/t/using-gathered-fact-in-another-play-in-the-same-playbook/15823 "2014-07-31T17:38:24Z")

</div>

Hi all! Let’s say I have a few hosts (a.local, b.local) with postgresql installed, and I want to add them to bacula system on a backup host (backup.local). Basically, each database host would have have a file named {{ …

---

## [Dockerfile for control machine](https://forum.ansible.com/t/dockerfile-for-control-machine/15795)

<div class="topic-metadata">

**Author:** [@ToBeReplaced](https://forum.ansible.com/u/ToBeReplaced)\
**Replies:** 8\
**Last updated:** [July 30, 2014, 12:31pm UTC](https://forum.ansible.com/t/dockerfile-for-control-machine/15795 "2014-07-30T12:31:50Z")

</div>

Ansible should support its own official build with the Docker Hub Registry. This was originally posted as an issue on github: https://github.com/ansible/ansible/issues/8212 The summary is copied below: Ansib…

---

## [Pull req #8283: doco fix](https://forum.ansible.com/t/pull-req-8283-doco-fix/15807)

<div class="topic-metadata">

**Author:** [@Philip\_Jay](https://forum.ansible.com/u/Philip_Jay)\
**Replies:** 1\
**Last updated:** [July 30, 2014, 12:28pm UTC](https://forum.ansible.com/t/pull-req-8283-doco-fix/15807 "2014-07-30T12:28:38Z")

</div>

Hi all, pull req #8283 was closed, but I think perhaps it was misunderstood? All I intended in the pull request was to fix the documentation for the mount module, not add any code. Can this be reviewed & reconsidered? …

---

## [ping test from linux to windows](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798)

<div class="topic-metadata">

**Author:** [@Yvonne\_Tee](https://forum.ansible.com/u/Yvonne_Tee)\
**Replies:** 2\
**Last updated:** [July 29, 2014, 1:43pm UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798 "2014-07-29T13:43:39Z")

</div>

Hi all, I am trying to setup a ping test from linux to windows. I have already setup the keypair exchange between these 2 servers. Have also setup the host in /etc/ansible/host Below is the playbook content. hosts: …

---

## [Server Side Module](https://forum.ansible.com/t/server-side-module/15755)

<div class="topic-metadata">

**Author:** [@Timothy\_Vandenbrande](https://forum.ansible.com/u/Timothy_Vandenbrande)\
**Replies:** 3\
**Last updated:** [July 28, 2014, 4:35pm UTC](https://forum.ansible.com/t/server-side-module/15755 "2014-07-28T16:35:13Z")

</div>

Hey, I tried making a win\_copy module for ansible, but misunderstood Mr De Haan a bit. (on GitHub: https://github.com/ansible/ansible/pull/8241) I thought with an action plugin he meant to convert it to a .ps1 script…

---

## [with\_items problem on https://github.com/RichardCao/logging-for-openstack](https://forum.ansible.com/t/with-items-problem-on-https-github-com-richardcao-logging-for-openstack/15785)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [July 27, 2014, 7:49pm UTC](https://forum.ansible.com/t/with-items-problem-on-https-github-com-richardcao-logging-for-openstack/15785 "2014-07-27T19:49:05Z")

</div>

This is a user-level question, can you please repost this on ansible-project instead? Thank you!

---

## [File module and prevent deletion of some path types](https://forum.ansible.com/t/file-module-and-prevent-deletion-of-some-path-types/15760)

<div class="topic-metadata">

**Author:** [@Maxim\_Odinintsev](https://forum.ansible.com/u/Maxim_Odinintsev)\
**Replies:** 4\
**Last updated:** [July 24, 2014, 10:56pm UTC](https://forum.ansible.com/t/file-module-and-prevent-deletion-of-some-path-types/15760 "2014-07-24T22:56:17Z")

</div>

Hello, I need delete directories or files, but only if they a regular directory or files (not links). I can do it with stat module, but it make playbook some heavy, because i need run stat, then register results, then …

---

## [Support for Jinja2 test plugins](https://forum.ansible.com/t/support-for-jinja2-test-plugins/15727)

<div class="topic-metadata">

**Author:** [@Brandon\_Mintern1](https://forum.ansible.com/u/Brandon_Mintern1)\
**Replies:** 11\
**Last updated:** [July 22, 2014, 2:05pm UTC](https://forum.ansible.com/t/support-for-jinja2-test-plugins/15727 "2014-07-22T14:05:05Z")

</div>

Ansible does not provide a way for users to register Jinja2 test plugins. Furthermore, many of Ansible’s filter plugins are logically tests, but they are not registered as such. I have submitted a Pull Request (there is …

---

## [Developing Windows modules: module is missing interpreter line](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 3\
**Last updated:** [July 22, 2014, 12:17pm UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730 "2014-07-22T12:17:27Z")

</div>

Hi all, From time to time I’m getting this strange error: “module is missing interpreter line”. I’m developing several windows modules which i drop into library/windows. When I execute a playbook including the newly cr…

---

## [Utilizing a template from a module](https://forum.ansible.com/t/utilizing-a-template-from-a-module/15729)

<div class="topic-metadata">

**Author:** [@John\_Dewey](https://forum.ansible.com/u/John_Dewey)\
**Replies:** 4\
**Last updated:** [July 22, 2014, 2:47am UTC](https://forum.ansible.com/t/utilizing-a-template-from-a-module/15729 "2014-07-22T02:47:25Z")

</div>

I am writing a module which builds a config file. This template requires a bit of logic to determine the proper directives to include/exclude. This is a no-brainer in jinja, but fairly complex in pure stdlib. However, mo…

---

## [New Module: ec2\_getall](https://forum.ansible.com/t/new-module-ec2-getall/15719)

<div class="topic-metadata">

**Author:** [@Brandon\_Mintern](https://forum.ansible.com/u/Brandon_Mintern)\
**Replies:** 6\
**Last updated:** [July 21, 2014, 11:19pm UTC](https://forum.ansible.com/t/new-module-ec2-getall/15719 "2014-07-21T23:19:39Z")

</div>

We want to use Ansible to create a set of volumes based on an instance’s latest snapshot. Doing this requires a few queries, and I didn’t see anything that provided the functionality I was looking for, so I wrote a new m…

---

## [module-returned 'ansible\_facts' precedence?](https://forum.ansible.com/t/module-returned-ansible-facts-precedence/15704)

<div class="topic-metadata">

**Author:** [@chwolfe2](https://forum.ansible.com/u/chwolfe2)\
**Replies:** 12\
**Last updated:** [July 20, 2014, 12:35am UTC](https://forum.ansible.com/t/module-returned-ansible-facts-precedence/15704 "2014-07-20T00:35:46Z")

</div>

All, Perhaps i’m being boneheaded, but I can’t seem to follow the exact order of application in updating the host facts that is performed by ansible on task completion. Particularly, I see the setup cache is updated wit…

---

## [.retry files clutter the user's $HOME directory](https://forum.ansible.com/t/retry-files-clutter-the-users-home-directory/14248)

<div class="topic-metadata">

**Author:** [@Tim\_Cuthbertson](https://forum.ansible.com/u/Tim_Cuthbertson)\
**Replies:** 12\
**Last updated:** [July 19, 2014, 2:02pm UTC](https://forum.ansible.com/t/retry-files-clutter-the-users-home-directory/14248 "2014-07-19T14:02:02Z")

</div>

I recently discovered a bunch of .retry files cluttering up my home directory, which is not very tidy: /home/tim $ ls -l \*.retry -rw-r–r–. 1 tim tim 15 Dec 19 10:46 all.retry -rw-r–r–. 1 tim tim 21 Dec 19 13:56 check.…

---

## [Azure module](https://forum.ansible.com/t/azure-module/15378)

<div class="topic-metadata">

**Author:** [@Martin\_Johren](https://forum.ansible.com/u/Martin_Johren)\
**Replies:** 11\
**Last updated:** [July 19, 2014, 6:08am UTC](https://forum.ansible.com/t/azure-module/15378 "2014-07-19T06:08:32Z")

</div>

Moved from ansible-project: It looks like we’ve received another contribution for this: https://github.com/ansible/ansible/pull/7593 This has not yet been merged in, but you may want to look at it and see if it meets y…

---

## [can't get Developing Dynamic Inventory working as expected...](https://forum.ansible.com/t/cant-get-developing-dynamic-inventory-working-as-expected/15692)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 1\
**Last updated:** [July 17, 2014, 12:51pm UTC](https://forum.ansible.com/t/cant-get-developing-dynamic-inventory-working-as-expected/15692 "2014-07-17T12:51:23Z")

</div>

Having an modified python script generating following json string while --list. but get some error message from ansible. not sure what went wrong… ERROR: failed to parse: {‘test’: \[‘jzk.simpletest.com.’, ‘test.simpletes…

---

## [PR review? (Bug fix for template relative path references)](https://forum.ansible.com/t/pr-review-bug-fix-for-template-relative-path-references/15669)

<div class="topic-metadata">

**Author:** [@David\_Simon](https://forum.ansible.com/u/David_Simon)\
**Replies:** 1\
**Last updated:** [July 14, 2014, 9:49pm UTC](https://forum.ansible.com/t/pr-review-bug-fix-for-template-relative-path-references/15669 "2014-07-14T21:49:11Z")

</div>

Hey all, I’ve made a small fix to correct an issue I was having with templates extending from other templates. PR: https://github.com/ansible/ansible/pull/8127 This is a pretty simple change, but I wonder if anyone was …

---

## [adding vault to lookups](https://forum.ansible.com/t/adding-vault-to-lookups/15658)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 1\
**Last updated:** [July 13, 2014, 8:05pm UTC](https://forum.ansible.com/t/adding-vault-to-lookups/15658 "2014-07-13T20:05:53Z")

</div>

So I needed file lookup with vault and here is a 1st draft: https://github.com/ansible/ansible/pull/8110 it should be easy to add vault support to other lookups using this.

---

## [Help understanding shell modules](https://forum.ansible.com/t/help-understanding-shell-modules/15605)

<div class="topic-metadata">

**Author:** [@Stuart\_Reynolds](https://forum.ansible.com/u/Stuart_Reynolds)\
**Replies:** 2\
**Last updated:** [July 12, 2014, 7:41pm UTC](https://forum.ansible.com/t/help-understanding-shell-modules/15605 "2014-07-12T19:41:26Z")

</div>

\[Moved from ansible-project\] I’m trying to understand what I can expect when writing my own modules. My hope would be to more quickly move and existing Makefile and shell script configuration to ansible. However, just …

---

## [No support for rds resource tags?](https://forum.ansible.com/t/no-support-for-rds-resource-tags/15656)

<div class="topic-metadata">

**Author:** [@Stuart\_Reynolds](https://forum.ansible.com/u/Stuart_Reynolds)\
**Replies:** 1\
**Last updated:** [July 12, 2014, 6:40pm UTC](https://forum.ansible.com/t/no-support-for-rds-resource-tags/15656 "2014-07-12T18:40:31Z")

</div>

I don’t seem to be able to find a way to tag and query by rds instances by tag in Ansible. It looks like this is only supported since the introduction of boto.rds2. NB boto.rds2 is much simplified – all the instance va…

[Previous page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=83)

[Next page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=85)
