# Ansible Developer

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

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

**Page:** 64

---

## [Enhance ec2\_eip to optionally prevent reassociation](https://forum.ansible.com/t/enhance-ec2-eip-to-optionally-prevent-reassociation/20310)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [January 22, 2016, 11:11am UTC](https://forum.ansible.com/t/enhance-ec2-eip-to-optionally-prevent-reassociation/20310 "2016-01-22T11:11:15Z")

</div>

We want to use the ec2\_eip module to associate an EIP with the instance that should have it (a proxy server, say), but only if the EIP is currently unassociated; if we accidentally bring up another instance that looks…

---

## [Hacking on extras modules](https://forum.ansible.com/t/hacking-on-extras-modules/20298)

<div class="topic-metadata">

**Author:** [@Cliff\_Rowley](https://forum.ansible.com/u/Cliff_Rowley)\
**Replies:** 1\
**Last updated:** [January 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/hacking-on-extras-modules/20298 "2016-01-20T23:16:06Z")

</div>

Hello there, I’d really like to start hacking on some extras modules (specifically some of the missing libvirt functionality that I’ve been plugging with duct tape, e.g. volumes etc) with the intent to later submit them…

---

## [Writing Modules without AnsibleModule](https://forum.ansible.com/t/writing-modules-without-ansiblemodule/20299)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 2\
**Last updated:** [January 20, 2016, 11:10pm UTC](https://forum.ansible.com/t/writing-modules-without-ansiblemodule/20299 "2016-01-20T23:10:14Z")

</div>

Hi, does anyone have sample code on how to write a module not using the AnsibleModule object? I’m trying to see how to access the params in a custom module in Python without AnsibleModule as preparation for writing modu…

---

## [Ansible 2.0.0.2 forwarding LANG and LC\_ALL and modules failing](https://forum.ansible.com/t/ansible-2-0-0-2-forwarding-lang-and-lc-all-and-modules-failing/20277)

<div class="topic-metadata">

**Author:** [@Alejandro\_Guirao\_Rod](https://forum.ansible.com/u/Alejandro_Guirao_Rod)\
**Replies:** 10\
**Last updated:** [January 20, 2016, 7:55pm UTC](https://forum.ansible.com/t/ansible-2-0-0-2-forwarding-lang-and-lc-all-and-modules-failing/20277 "2016-01-20T19:55:45Z")

</div>

Hi, I have experienced that Ansible 2.0.0.2 forwards the LANG and LC\_ALL variables from the controller machine to the hosts. I hadn’t experienced this behaviour with versions 1.9.X, and this results in modules dependin…

---

## ["rescue" not being executed if failed inside an "include" in development branch](https://forum.ansible.com/t/rescue-not-being-executed-if-failed-inside-an-include-in-development-branch/20287)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 0\
**Last updated:** [January 20, 2016, 10:15am UTC](https://forum.ansible.com/t/rescue-not-being-executed-if-failed-inside-an-include-in-development-branch/20287 "2016-01-20T10:15:41Z")

</div>

Hi there, I am not sure if it changed as a feature or if it is a bug so I am not opening an issue on github. The thing is: main.yml \` name: deploy hosts: all gather\_facts: True tasks: block: include: file\_to\_fai…

---

## [slow startup with many groups in inventory](https://forum.ansible.com/t/slow-startup-with-many-groups-in-inventory/16604)

<div class="topic-metadata">

**Author:** [@Harald\_Laabs](https://forum.ansible.com/u/Harald_Laabs)\
**Replies:** 19\
**Last updated:** [January 20, 2016, 8:36am UTC](https://forum.ansible.com/t/slow-startup-with-many-groups-in-inventory/16604 "2016-01-20T08:36:40Z")

</div>

Hi everyone, with the update to 1.7 ansible startup times went up to 25 seconds for me. After some debugging I found not really optimized functions in the inventory parsing. With more than 1000 servers and 10.000 grou…

---

## [Bounty for moving simple lookup plugin to API V2!](https://forum.ansible.com/t/bounty-for-moving-simple-lookup-plugin-to-api-v2/20281)

<div class="topic-metadata">

**Author:** [@Marcus\_Morris](https://forum.ansible.com/u/Marcus_Morris)\
**Replies:** 0\
**Last updated:** [January 19, 2016, 7:16pm UTC](https://forum.ansible.com/t/bounty-for-moving-simple-lookup-plugin-to-api-v2/20281 "2016-01-19T19:16:22Z")

</div>

https://www.bountysource.com/issues/30020306-modify-to-use-ansible-api-v2

---

## [included tasks do not execute when running playbook with ansible api](https://forum.ansible.com/t/included-tasks-do-not-execute-when-running-playbook-with-ansible-api/20261)

<div class="topic-metadata">

**Author:** [@Shengwu\_Jiang](https://forum.ansible.com/u/Shengwu_Jiang)\
**Replies:** 3\
**Last updated:** [January 19, 2016, 4:55pm UTC](https://forum.ansible.com/t/included-tasks-do-not-execute-when-running-playbook-with-ansible-api/20261 "2016-01-19T16:55:22Z")

</div>

I have a simple test role located in /etc/ansible/roles/test/tasks/main.yml like this: --- - roles/common/tasks/facts.yml - include: test.yml And I use the example code of Python API 2.0 found in Documentation. Then I…

---

## [How to get a list of existing variables from custom action plugin?](https://forum.ansible.com/t/how-to-get-a-list-of-existing-variables-from-custom-action-plugin/20255)

<div class="topic-metadata">

**Author:** [@Alexey\_Wasilyev](https://forum.ansible.com/u/Alexey_Wasilyev)\
**Replies:** 0\
**Last updated:** [January 18, 2016, 4:15pm UTC](https://forum.ansible.com/t/how-to-get-a-list-of-existing-variables-from-custom-action-plugin/20255 "2016-01-18T16:15:01Z")

</div>

Hello everybody. I am trying to update include\_vars\_merged (https://gist.github.com/udondan/b730206056a018cf9838) custom plugin to support ansible 2.0 I can’t find a right way to get a dict of already defined or loaded…

---

## [ansible-playbook --start-at-task="task in some role" still broken in v2 despite #11692 closed](https://forum.ansible.com/t/ansible-playbook-start-at-task-task-in-some-role-still-broken-in-v2-despite-11692-closed/20249)

<div class="topic-metadata">

**Author:** [@David\_Gregory](https://forum.ansible.com/u/David_Gregory)\
**Replies:** 0\
**Last updated:** [January 18, 2016, 10:02am UTC](https://forum.ansible.com/t/ansible-playbook-start-at-task-task-in-some-role-still-broken-in-v2-despite-11692-closed/20249 "2016-01-18T10:02:58Z")

</div>

Hi all, Great news on v2 release, it’s looking awesome! I’ve snagged from PyPI, which gave me v2.0.0.2, and switched over for day to day work, but I now don’t seem to be able to use --start-at-task to start at a task in…

---

## [bin/ansible callbacks; equivalent of on\_stats?](https://forum.ansible.com/t/bin-ansible-callbacks-equivalent-of-on-stats/20226)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 1\
**Last updated:** [January 15, 2016, 10:28am UTC](https://forum.ansible.com/t/bin-ansible-callbacks-equivalent-of-on-stats/20226 "2016-01-15T10:28:18Z")

</div>

I’d like to use my callbacks in bin/ansible as well as bin/ansible-playbook I have bin\_ansible\_callbacks = True and events are firing, but when I run bin/ansible on\_stats doesn’t seem to fire. Is there another callba…

---

## [v2 callbacks for handlers inside a role](https://forum.ansible.com/t/v2-callbacks-for-handlers-inside-a-role/20224)

<div class="topic-metadata">

**Author:** [@Ash\_Caire](https://forum.ansible.com/u/Ash_Caire)\
**Replies:** 0\
**Last updated:** [January 15, 2016, 4:29am UTC](https://forum.ansible.com/t/v2-callbacks-for-handlers-inside-a-role/20224 "2016-01-15T04:29:08Z")

</div>

Hi, I’m using callbacks to hack up an AMI helper, which allows us to create AMIs in a chroot environment and tag template tasks with ‘retemplate’ that need to be run again on AMI launch - The callback handler copies any …

---

## [How to use variables from ansible.cfg in custom module](https://forum.ansible.com/t/how-to-use-variables-from-ansible-cfg-in-custom-module/20203)

<div class="topic-metadata">

**Author:** [@CyberCyber](https://forum.ansible.com/u/CyberCyber)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 11:59pm UTC](https://forum.ansible.com/t/how-to-use-variables-from-ansible-cfg-in-custom-module/20203 "2016-01-14T23:59:06Z")

</div>

Hi, I am working on a custom module and would like to use variables from ansible.cfg in the python script. Specifically, I need to use DEFAULT\_REMOTE\_TMP. How can I access this from within my module ?

---

## [Buggy PPA release](https://forum.ansible.com/t/buggy-ppa-release/20205)

<div class="topic-metadata">

**Author:** [@dmitri.toubelis](https://forum.ansible.com/u/dmitri.toubelis)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 9:27pm UTC](https://forum.ansible.com/t/buggy-ppa-release/20205 "2016-01-14T21:27:33Z")

</div>

Hi, I’m using Ansible on Ubuntu-14.04 and the 2.0.0.1 release of ansible pushed to PPA last night introduces bugs relater to 'with\_itemswithlocal\` connector (likely https://github.com/ansible/ansible/issues/13624). Howe…

---

## [Using powershell module in task: "no action detected"](https://forum.ansible.com/t/using-powershell-module-in-task-no-action-detected/20146)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 7\
**Last updated:** [January 14, 2016, 5:57pm UTC](https://forum.ansible.com/t/using-powershell-module-in-task-no-action-detected/20146 "2016-01-14T17:57:06Z")

</div>

Hi, I am working with a custom Windows module, to get a very specific piece of information living in my Windows machines. I followed the docs, wrote a powershell module and put it in library/windows/module.ps1. However…

---

## [Is there any config to define the windows remote\_tmp directory in ansible.cfg file?](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185)

<div class="topic-metadata">

**Author:** [@Robin\_Rocky](https://forum.ansible.com/u/Robin_Rocky)\
**Replies:** 3\
**Last updated:** [January 14, 2016, 5:54pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185 "2016-01-14T17:54:48Z")

</div>

Hi All, I have a question regarding the ansible.cfg file entry for remote\_tmp Is there any config to define the windows remote\_tmp directory in ansible.cfg file? thanks Robin

---

## [Enable Passwordless Sudo w/out template](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 1\
**Last updated:** [January 13, 2016, 10:40pm UTC](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204 "2016-01-13T22:40:06Z")

</div>

So I came across the issue of trying to enable passwordless sudo for a group, but didn’t find any particularly simple (I was looking for a one-task solution) solution. I did solve my issue short term with a template, but…

---

## [I made a string split filter - best place to contribute?](https://forum.ansible.com/t/i-made-a-string-split-filter-best-place-to-contribute/20151)

<div class="topic-metadata">

**Author:** [@Tim\_Raasveld](https://forum.ansible.com/u/Tim_Raasveld)\
**Replies:** 2\
**Last updated:** [January 12, 2016, 11:24am UTC](https://forum.ansible.com/t/i-made-a-string-split-filter-best-place-to-contribute/20151 "2016-01-12T11:24:10Z")

</div>

I made a string split filter for Ansible( https://github.com/timraasveld/ansible-string-split-filter/blob/master/split.py ) and would like to contribute it to the main project. Because Ansible’s “Community Information” …

---

## [New AWS Modules: botocore and boto3 are now production ready.](https://forum.ansible.com/t/new-aws-modules-botocore-and-boto3-are-now-production-ready/18636)

<div class="topic-metadata">

**Author:** [@Jonathan\_Davila](https://forum.ansible.com/u/Jonathan_Davila)\
**Replies:** 8\
**Last updated:** [January 12, 2016, 5:31am UTC](https://forum.ansible.com/t/new-aws-modules-botocore-and-boto3-are-now-production-ready/18636 "2016-01-12T05:31:37Z")

</div>

This is a follow up to a prior RFC: https://groups.google.com/forum/#!searchin/ansible-devel/boto3/ansible-devel/BlruiipCVxk/KdvQI-wSSYUJ I am advocating for a standard that new AWS module pull requests should be writte…

---

## [Understanding how roles, dependencies, and tags work together.](https://forum.ansible.com/t/understanding-how-roles-dependencies-and-tags-work-together/20149)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 1\
**Last updated:** [January 11, 2016, 9:57pm UTC](https://forum.ansible.com/t/understanding-how-roles-dependencies-and-tags-work-together/20149 "2016-01-11T21:57:58Z")

</div>

I’m trying to understand how roles, dependencies, and tags work together. I’m seeing “wrong” behavior when I use meta/main.yml dependencies: and tags -or- I do not understand how all these things work together. I apolo…

---

## [How to apply ansible tower licence from using command line options?](https://forum.ansible.com/t/how-to-apply-ansible-tower-licence-from-using-command-line-options/20168)

<div class="topic-metadata">

**Author:** [@Makarand\_Maslekar](https://forum.ansible.com/u/Makarand_Maslekar)\
**Replies:** 1\
**Last updated:** [January 11, 2016, 12:58pm UTC](https://forum.ansible.com/t/how-to-apply-ansible-tower-licence-from-using-command-line-options/20168 "2016-01-11T12:58:51Z")

</div>

I would like to apply ansible tower licence from command line? Can we do this using command line options?

---

## [ansible-vault, and only ansible-vault - could it run on windows?](https://forum.ansible.com/t/ansible-vault-and-only-ansible-vault-could-it-run-on-windows/20152)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 0\
**Last updated:** [January 8, 2016, 12:49pm UTC](https://forum.ansible.com/t/ansible-vault-and-only-ansible-vault-could-it-run-on-windows/20152 "2016-01-08T12:49:03Z")

</div>

Hello, Just wondering if anyone has explored running ansible-vault on Windows? We have a lot of devs who work on Windows here and now we are keeping some settings in vault it would be good to be able to enable develope…

---

## [RFC: Requiring latest stable version of boto for AWS module refactoring/additions](https://forum.ansible.com/t/rfc-requiring-latest-stable-version-of-boto-for-aws-module-refactoring-additions/17711)

<div class="topic-metadata">

**Author:** [@Jonathan\_Davila](https://forum.ansible.com/u/Jonathan_Davila)\
**Replies:** 1\
**Last updated:** [January 8, 2016, 5:09am UTC](https://forum.ansible.com/t/rfc-requiring-latest-stable-version-of-boto-for-aws-module-refactoring-additions/17711 "2016-01-08T05:09:35Z")

</div>

I’ve been sifting through some of the tickets on GitHub related to AWS modules and feel that some of the pains with maintaining them could be eliminated by making it acceptable to require the latest stable version when r…

---

## [Extending get\_url module with 'backup' parameter](https://forum.ansible.com/t/extending-get-url-module-with-backup-parameter/20148)

<div class="topic-metadata">

**Author:** [@techraf](https://forum.ansible.com/u/techraf)\
**Replies:** 0\
**Last updated:** [January 8, 2016, 4:28am UTC](https://forum.ansible.com/t/extending-get-url-module-with-backup-parameter/20148 "2016-01-08T04:28:34Z")

</div>

I miss the ‘backup’ parameter in the ‘get\_url’ (working in the same manner as ‘backup’ in the ‘copy’ module) so I wanted to extend the module myself. I checked the code of get\_url.py and copy.py and before changing I ad…

---

## [concatenating variables to get nested dictionary items](https://forum.ansible.com/t/concatenating-variables-to-get-nested-dictionary-items/20139)

<div class="topic-metadata">

**Author:** [@Arthur\_Reyes](https://forum.ansible.com/u/Arthur_Reyes)\
**Replies:** 2\
**Last updated:** [January 7, 2016, 4:10pm UTC](https://forum.ansible.com/t/concatenating-variables-to-get-nested-dictionary-items/20139 "2016-01-07T16:10:29Z")

</div>

I’m hung up on syntax at the moment and was wondering if someone could point out what I’m doing incorrectly. I’m trying to create an ntp.j2 template and populate peers based on the value of ansible\_local.datacenter. Thi…

---

## [AWS Lambda support in AWS module?](https://forum.ansible.com/t/aws-lambda-support-in-aws-module/19730)

<div class="topic-metadata">

**Author:** [@Avi\_Flax](https://forum.ansible.com/u/Avi_Flax)\
**Replies:** 3\
**Last updated:** [January 7, 2016, 2:12am UTC](https://forum.ansible.com/t/aws-lambda-support-in-aws-module/19730 "2016-01-07T02:12:32Z")

</div>

Hi, is anyone working on Lambda support? If not, I think I’ll need to get started on it. Thanks! Avi

---

## [inconsistent bug, how can i help report this?](https://forum.ansible.com/t/inconsistent-bug-how-can-i-help-report-this/19985)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [January 1, 2016, 7:14am UTC](https://forum.ansible.com/t/inconsistent-bug-how-can-i-help-report-this/19985 "2016-01-01T07:14:23Z")

</div>

using 2.0rc2 on osx 10.11, and getting this, sometimes. i can usually repeat the command (up arrow, enter) and it works fine. fatal: \[lxctest\]: FAILED! =\> {“failed”: true, “msg”: “ERROR! failed to resolve remote tempora…

---

## [Suggest : inventory variables should have more weight](https://forum.ansible.com/t/suggest-inventory-variables-should-have-more-weight/19879)

<div class="topic-metadata">

**Author:** [@Rainer\_Weinhold](https://forum.ansible.com/u/Rainer_Weinhold)\
**Replies:** 1\
**Last updated:** [January 1, 2016, 7:01am UTC](https://forum.ansible.com/t/suggest-inventory-variables-should-have-more-weight/19879 "2016-01-01T07:01:29Z")

</div>

Hello, i would like to propose a behavoiur change for variable overwrite order: When running a playbook, variables defined in the inventory ( or inventory groups) should have a higher weight then playbook group\_vars. T…

---

## [Adding link to source code of any extras module in documentation](https://forum.ansible.com/t/adding-link-to-source-code-of-any-extras-module-in-documentation/20079)

<div class="topic-metadata">

**Author:** [@srujan\_akumarthi](https://forum.ansible.com/u/srujan_akumarthi)\
**Replies:** 1\
**Last updated:** [January 1, 2016, 6:57am UTC](https://forum.ansible.com/t/adding-link-to-source-code-of-any-extras-module-in-documentation/20079 "2016-01-01T06:57:36Z")

</div>

For extras modules documentation, we ain’t adding sources of that module currently. How about adding it with a category: “Source Code: https://github.com/pgolm/ansible-playbook-monit.git” ? Using this, we can easily fin…

---

## [PlaybookExecutor example](https://forum.ansible.com/t/playbookexecutor-example/20076)

<div class="topic-metadata">

**Author:** [@Goran\_Mekic](https://forum.ansible.com/u/Goran_Mekic)\
**Replies:** 5\
**Last updated:** [January 1, 2016, 5:48am UTC](https://forum.ansible.com/t/playbookexecutor-example/20076 "2016-01-01T05:48:40Z")

</div>

Hello, I'm trying to figure out how to use PlaybookExecutor. In short, I'd like to run my playbook from the Python code using Ansible 2. I tried poking the code but I'm just not smart enough, so a code snippet would b…

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

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