# Ansible Developer

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

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

**Page:** 65

---

## [New module for Managed VPC NAT Gateway](https://forum.ansible.com/t/new-module-for-managed-vpc-nat-gateway/20101)

<div class="topic-metadata">

**Author:** [@jon2](https://forum.ansible.com/u/jon2)\
**Replies:** 0\
**Last updated:** [December 30, 2015, 12:13pm UTC](https://forum.ansible.com/t/new-module-for-managed-vpc-nat-gateway/20101 "2015-12-30T12:13:16Z")

</div>

Hi, AWS launched a Managed NAT Gateway service on 17th December (https://aws.amazon.com/blogs/aws/new-managed-nat-network-address-translation-gateway-for-aws/) which enables you to NAT from private subnets to an elastic…

---

## [lookup module cannot return dict, and gives confusing error](https://forum.ansible.com/t/lookup-module-cannot-return-dict-and-gives-confusing-error/20090)

<div class="topic-metadata">

**Author:** [@Eric\_Feliksik](https://forum.ansible.com/u/Eric_Feliksik)\
**Replies:** 2\
**Last updated:** [December 29, 2015, 5:21pm UTC](https://forum.ansible.com/t/lookup-module-cannot-return-dict-and-gives-confusing-error/20090 "2015-12-29T17:21:09Z")

</div>

I am creating a Lookup module that should return a dict. This seems to be not possible: fatal: \[node-01-1\]: FAILED! =\> {“changed”: false, “failed”: true, “invocation”: {“module\_args”: {“dest”: “/tmp/testconfig.json”, “…

---

## [\--limit and groups variable inconsistency](https://forum.ansible.com/t/limit-and-groups-variable-inconsistency/20081)

<div class="topic-metadata">

**Author:** [@Anatoly\_Zozlinsky](https://forum.ansible.com/u/Anatoly_Zozlinsky)\
**Replies:** 5\
**Last updated:** [December 29, 2015, 4:15pm UTC](https://forum.ansible.com/t/limit-and-groups-variable-inconsistency/20081 "2015-12-29T16:15:11Z")

</div>

Hi, I use dynamic ec2 inventory. i tag hosts with tag ENV and call ansible with --limit tag\_ENV\_staging to get only hosts of staging At the same time, i have another ENV called production in my template i use loop on…

---

## [No module named ansible.errors; cannot sudo](https://forum.ansible.com/t/no-module-named-ansible-errors-cannot-sudo/20073)

<div class="topic-metadata">

**Author:** [@Charles\_Belov](https://forum.ansible.com/u/Charles_Belov)\
**Replies:** 3\
**Last updated:** [December 29, 2015, 3:59pm UTC](https://forum.ansible.com/t/no-module-named-ansible-errors-cannot-sudo/20073 "2015-12-29T15:59:26Z")

</div>

I’ve just added Ansible to my git codebase and am attempting to run a playbook. I’m getting the message “ImportError: No module named ansible.errors” I cannot do sudo on my host, but supposedly ansible can run without i…

---

## [Want to test PR's but baffled by git submodules](https://forum.ansible.com/t/want-to-test-prs-but-baffled-by-git-submodules/20083)

<div class="topic-metadata">

**Author:** [@Jim\_Razmus\_II](https://forum.ansible.com/u/Jim_Razmus_II)\
**Replies:** 4\
**Last updated:** [December 28, 2015, 10:34pm UTC](https://forum.ansible.com/t/want-to-test-prs-but-baffled-by-git-submodules/20083 "2015-12-28T22:34:54Z")

</div>

I am attempting to test PR1401 on the ansible-modules-extras submodule. I’ve followed the directions at http://docs.ansible.com/ansible/developing\_test\_pr.html and https://help.github.com/articles/checking-out-pull-reque…

---

## [Add a query-language to ansible](https://forum.ansible.com/t/add-a-query-language-to-ansible/20082)

<div class="topic-metadata">

**Author:** [@Filipe\_Felisbino](https://forum.ansible.com/u/Filipe_Felisbino)\
**Replies:** 0\
**Last updated:** [December 28, 2015, 7:01pm UTC](https://forum.ansible.com/t/add-a-query-language-to-ansible/20082 "2015-12-28T19:01:10Z")

</div>

Hello I’ve just created a pull request that adds a lookup plugin to enable generic data querying on ansible by using a json-path based query language. It is pretty straightforward but it has a dependency with dq so I wo…

---

## [Ansible modules core release](https://forum.ansible.com/t/ansible-modules-core-release/19642)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 3\
**Last updated:** [December 27, 2015, 10:34pm UTC](https://forum.ansible.com/t/ansible-modules-core-release/19642 "2015-12-27T22:34:13Z")

</div>

How do we determine what version of the module core is released with the main ansible project? How do we determine when the devel branch has been merged into the latest release e.g. stable-1.9? Basically want to know i…

---

## [Automaticly register task results for the next task](https://forum.ansible.com/t/automaticly-register-task-results-for-the-next-task/20048)

<div class="topic-metadata">

**Author:** [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Replies:** 4\
**Last updated:** [December 19, 2015, 10:36pm UTC](https://forum.ansible.com/t/automaticly-register-task-results-for-the-next-task/20048 "2015-12-19T22:36:25Z")

</div>

Hello, Would it make sense to have task results be automatically registered for every task under a pre-defined name? This would eliminate all the “register” lines with ad-hoc names used just for the next task. Users wi…

---

## [mongodb\_document proposal](https://forum.ansible.com/t/mongodb-document-proposal/20031)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 2:04pm UTC](https://forum.ansible.com/t/mongodb-document-proposal/20031 "2015-12-16T14:04:45Z")

</div>

Curious if anyone is working on other modules for mongodb. Currently there is mongodb\_user I'd like to propose mongodb\_document to implement the following EXAMPLES = ''' # Create 'burger' document in 'menu' collectio…

---

## [Using Ansible in Python Licensing Question](https://forum.ansible.com/t/using-ansible-in-python-licensing-question/20006)

<div class="topic-metadata">

**Author:** [@Usman\_Ehtesham](https://forum.ansible.com/u/Usman_Ehtesham)\
**Replies:** 5\
**Last updated:** [December 15, 2015, 6:27pm UTC](https://forum.ansible.com/t/using-ansible-in-python-licensing-question/20006 "2015-12-15T18:27:14Z")

</div>

Hello, I wanted to import ansible in my Python code; this is for work. But i was told the following: “Any python code that you import from ansible automatically requires the code your writing to be licensed under the G…

---

## [New in community](https://forum.ansible.com/t/new-in-community/20007)

<div class="topic-metadata">

**Author:** [@mludy666](https://forum.ansible.com/u/mludy666)\
**Replies:** 1\
**Last updated:** [December 15, 2015, 3:27pm UTC](https://forum.ansible.com/t/new-in-community/20007 "2015-12-15T15:27:41Z")

</div>

Hi All, I’m using ansible for some time and I would like to help community with bug fixing and developing new features. It’s my first attempt to join such party so I need a little guiding and hooking me up. Any tips app…

---

## [odd problem with conditionals](https://forum.ansible.com/t/odd-problem-with-conditionals/19822)

<div class="topic-metadata">

**Author:** [@nueces\_dots](https://forum.ansible.com/u/nueces_dots)\
**Replies:** 1\
**Last updated:** [December 15, 2015, 5:41am UTC](https://forum.ansible.com/t/odd-problem-with-conditionals/19822 "2015-12-15T05:41:16Z")

</div>

Hí all, I have a really odd problem with a conditional evaluation in a set\_fact, this is a excerpt in where the result of the evaluation depend on the order of the variables, see it. tasks.yml

---

## [Regression of #9966?](https://forum.ansible.com/t/regression-of-9966/19979)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 5\
**Last updated:** [December 14, 2015, 2:50am UTC](https://forum.ansible.com/t/regression-of-9966/19979 "2015-12-14T02:50:11Z")

</div>

Getting what looks like a regression of https://github.com/ansible/ansible/issues/9966. Since the issue is closed posting what is there here. $ ansible --version ansible 2.1.0 (devel 30e729557f) last updated 2015/12/09…

---

## [Replace range with enumerate](https://forum.ansible.com/t/replace-range-with-enumerate/19997)

<div class="topic-metadata">

**Author:** [@Usman\_Ehtesham](https://forum.ansible.com/u/Usman_Ehtesham)\
**Replies:** 1\
**Last updated:** [December 13, 2015, 1:58pm UTC](https://forum.ansible.com/t/replace-range-with-enumerate/19997 "2015-12-13T13:58:22Z")

</div>

In the link https://github.com/ansible/ansible/blob/devel/lib/ansible/cli/\_\_init\_\_.py#L84, for i in range(0, len(self.arg)): is bit redundant, when you can just do range(len(self.arg)) But its better (and more Pythoni…

---

## [Ansible 2 - latest beta - a variable gets the value of another](https://forum.ansible.com/t/ansible-2-latest-beta-a-variable-gets-the-value-of-another/19975)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 4\
**Last updated:** [December 11, 2015, 4:50pm UTC](https://forum.ansible.com/t/ansible-2-latest-beta-a-variable-gets-the-value-of-another/19975 "2015-12-11T16:50:08Z")

</div>

Hi, I am having a variable replaced with the contents of another (which has a completely different name). This is the relevant part of my task file, which installs a new version of the application I’m supporting. This p…

---

## [suggestion to make weblogic deployment and configuration as core module for ansible](https://forum.ansible.com/t/suggestion-to-make-weblogic-deployment-and-configuration-as-core-module-for-ansible/19972)

<div class="topic-metadata">

**Author:** [@Anirban\_Roy](https://forum.ansible.com/u/Anirban_Roy)\
**Replies:** 3\
**Last updated:** [December 11, 2015, 8:01am UTC](https://forum.ansible.com/t/suggestion-to-make-weblogic-deployment-and-configuration-as-core-module-for-ansible/19972 "2015-12-11T08:01:32Z")

</div>

Hi I was wondering if there is any plan for adding weblogic deployment and configuration as a core module for ansible. We have a home made framework with perl , which has weblogic as its core module. As we plan to shi…

---

## [Git, unsupported parameter for module: refspec](https://forum.ansible.com/t/git-unsupported-parameter-for-module-refspec/19958)

<div class="topic-metadata">

**Author:** [@Paul\_Stivers](https://forum.ansible.com/u/Paul_Stivers)\
**Replies:** 2\
**Last updated:** [December 10, 2015, 9:02pm UTC](https://forum.ansible.com/t/git-unsupported-parameter-for-module-refspec/19958 "2015-12-10T21:02:35Z")

</div>

Hi all, I’m trying to use the Ansible Git module to deploy an application repository in Git using a Git tag. I’m thinking I need to use the refspec parameter to define the tag. The following task works without the refsp…

---

## [Ansible2: Included tasks not running](https://forum.ansible.com/t/ansible2-included-tasks-not-running/19554)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 1\
**Last updated:** [December 9, 2015, 9:18pm UTC](https://forum.ansible.com/t/ansible2-included-tasks-not-running/19554 "2015-12-09T21:18:28Z")

</div>

Hi to everyone! First of all, let me apologize if I’m asking for an already reported bug, I searched the web and the group but didn’t find anything. I’m having an issue with included task files + with\_items. I’m using …

---

## [windows; win\_regmerge module; extras integration tests](https://forum.ansible.com/t/windows-win-regmerge-module-extras-integration-tests/19971)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 9:12am UTC](https://forum.ansible.com/t/windows-win-regmerge-module-extras-integration-tests/19971 "2015-12-09T09:12:16Z")

</div>

Hello, I made a PR to add a module that lets you import registry files. It can compare with current registry settings so will set changed to true or false as appropriate, and lets you make bulk changes to the registry i…

---

## [Managing Mikrotik via API with Ansible](https://forum.ansible.com/t/managing-mikrotik-via-api-with-ansible/19962)

<div class="topic-metadata">

**Author:** [@Miroslav\_Hudec](https://forum.ansible.com/u/Miroslav_Hudec)\
**Replies:** 1\
**Last updated:** [December 8, 2015, 2:47pm UTC](https://forum.ansible.com/t/managing-mikrotik-via-api-with-ansible/19962 "2015-12-08T14:47:37Z")

</div>

Hi, first I would like to say I am new to Ansible, so some of my questions might not be the wisest… As a part of my bachelor’s project, I am supposed to create Ansible module that would be used to configure Mikrotik de…

---

## [Github labeling changes](https://forum.ansible.com/t/github-labeling-changes/19956)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [December 7, 2015, 8:12pm UTC](https://forum.ansible.com/t/github-labeling-changes/19956 "2015-12-07T20:12:17Z")

</div>

Hi all, per some internal discussions, we’ve decided to remove the P3/4/5 labels from Github for PRs and issues. We feel this will level things a bit better, and save us the time of having to have a “default” state (whic…

---

## [Release state and regulary state updates](https://forum.ansible.com/t/release-state-and-regulary-state-updates/19920)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 4\
**Last updated:** [December 7, 2015, 8:21am UTC](https://forum.ansible.com/t/release-state-and-regulary-state-updates/19920 "2015-12-07T08:21:12Z")

</div>

Hi Ansible release team. Writing here instead in the IRC because this might be also interesting for others. It would be nice, if you could in regularly inform about the release state. If you plan more RCs or not, and…

---

## [Clarify behavior for hosts and host variables appearing in multiple (nested) inventories](https://forum.ansible.com/t/clarify-behavior-for-hosts-and-host-variables-appearing-in-multiple-nested-inventories/19940)

<div class="topic-metadata">

**Author:** [@Tim\_Butler](https://forum.ansible.com/u/Tim_Butler)\
**Replies:** 1\
**Last updated:** [December 4, 2015, 7:57pm UTC](https://forum.ansible.com/t/clarify-behavior-for-hosts-and-host-variables-appearing-in-multiple-nested-inventories/19940 "2015-12-04T19:57:27Z")

</div>

Several recent issues have been posted concerning changed behavior between Ansible 1.9 and 2.0 (beta) for host and host variables mentioned among multiple nested inventories (i.e. static and dynamic inventories under t…

---

## [PR: ARG build-time parameter for docker 1.9](https://forum.ansible.com/t/pr-arg-build-time-parameter-for-docker-1-9/19751)

<div class="topic-metadata">

**Author:** [@Alexey\_K](https://forum.ansible.com/u/Alexey_K)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 7:15pm UTC](https://forum.ansible.com/t/pr-arg-build-time-parameter-for-docker-1-9/19751 "2015-12-04T19:15:27Z")

</div>

Hi, I’ve just pushed a PR that implements a new Dockerfile extension in Docker 1.9 - ARG command. The ansible module docker\_image now supports this! Someone please review, as soon as it’s said ok, I’m going to create …

---

## [SSH error with ansible](https://forum.ansible.com/t/ssh-error-with-ansible/19492)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 4\
**Last updated:** [December 4, 2015, 6:58pm UTC](https://forum.ansible.com/t/ssh-error-with-ansible/19492 "2015-12-04T18:58:31Z")

</div>

Hey Guys I am trying to run that playbook but for some reason it’s not running root@ip-172-16-20-180:/var/ lib/jenkins/jobs/build-cs-utils/workspace/playbooks# ansible-playbook -i inventory/prod deploy\_system\_status.ym…

---

## [SSH Connection Error Playbook Continues](https://forum.ansible.com/t/ssh-connection-error-playbook-continues/19749)

<div class="topic-metadata">

**Author:** [@Phill\_Tomlinson](https://forum.ansible.com/u/Phill_Tomlinson)\
**Replies:** 4\
**Last updated:** [December 4, 2015, 6:52pm UTC](https://forum.ansible.com/t/ssh-connection-error-playbook-continues/19749 "2015-12-04T18:52:53Z")

</div>

Hi, I’d like to clarify some functionality. When running a playbook with multiple plays and one play can’t connect to a host, ansible displays an error: PLAY \[First Play\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* T…

---

## [Ansible playbook fails on ssh in between the tasks.](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19892)

<div class="topic-metadata">

**Author:** [@Vani\_Paridhyani](https://forum.ansible.com/u/Vani_Paridhyani)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 6:31pm UTC](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19892 "2015-12-04T18:31:05Z")

</div>

Hi! After 5 out of 11 ansible tasks ran successfuly, my playbook failed throwing the below error: failed: \[\<ip\>\] =\> {"changed": true, "rc": 1} stderr: OpenSSH\_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading confi…

---

## [Get sudo/vault pass from stdin](https://forum.ansible.com/t/get-sudo-vault-pass-from-stdin/16173)

<div class="topic-metadata">

**Author:** [@Nate\_Coraor](https://forum.ansible.com/u/Nate_Coraor)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 5:48pm UTC](https://forum.ansible.com/t/get-sudo-vault-pass-from-stdin/16173 "2015-12-03T17:48:23Z")

</div>

Moving the discussion over from Twitter: https://twitter.com/natefoo/status/509540916932014080 I have my vault passwords in pass (http://www.passwordstore.org/), so to run a playbook that requires vault decryption, I’ll…

---

## [Access include\_vars variables within callback plugin](https://forum.ansible.com/t/access-include-vars-variables-within-callback-plugin/19911)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 12:11am UTC](https://forum.ansible.com/t/access-include-vars-variables-within-callback-plugin/19911 "2015-12-03T00:11:16Z")

</div>

I can access all vars within group\_vars by using the following code. \` host\_vars = self.playbook.inventory.get\_variables(hosts\[0\]) \` However, my playbook is based on the server name, so it loads the correct variable …

---

## [Suggestion: New filter for matching attributes in a list](https://forum.ansible.com/t/suggestion-new-filter-for-matching-attributes-in-a-list/19907)

<div class="topic-metadata">

**Author:** [@Luis\_Medina](https://forum.ansible.com/u/Luis_Medina)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 11:22pm UTC](https://forum.ansible.com/t/suggestion-new-filter-for-matching-attributes-in-a-list/19907 "2015-11-30T23:22:39Z")

</div>

Hello, This is my first time posting here. Recently I came across a use case while working with AWS where I needed to reduce a sequence of dictionaries into a list of string and filter out entries based on whether or no…

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

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