# Ansible Developer

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

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

**Page:** 82

---

## [module.exit\_json doesn't parse my output correctly](https://forum.ansible.com/t/module-exit-json-doesnt-parse-my-output-correctly/16400)

<div class="topic-metadata">

**Author:** [@Timothy\_Vandenbrande](https://forum.ansible.com/u/Timothy_Vandenbrande)\
**Replies:** 5\
**Last updated:** [October 17, 2014, 7:26am UTC](https://forum.ansible.com/t/module-exit-json-doesnt-parse-my-output-correctly/16400 "2014-10-17T07:26:39Z")

</div>

The gist, here you’ll be able to find the sourcecome of my module. What I’m trying to do, is make a module that uses freeipa’s api to add dns record. Now the module does everything it should, but I keep getting a faile…

---

## [Feature idea: check\_mode for callbacks](https://forum.ansible.com/t/feature-idea-check-mode-for-callbacks/16524)

<div class="topic-metadata">

**Author:** [@Jesse\_Szwedko](https://forum.ansible.com/u/Jesse_Szwedko)\
**Replies:** 3\
**Last updated:** [October 16, 2014, 2:14pm UTC](https://forum.ansible.com/t/feature-idea-check-mode-for-callbacks/16524 "2014-10-16T14:14:05Z")

</div>

Hi all, Proposing the following feature idea in the hopes that someone will tell me it’s already available. We currently run all of our playbooks through ansible-playbook -c as part of automated testing. We also have a…

---

## [Custom Windows module output problem](https://forum.ansible.com/t/custom-windows-module-output-problem/16486)

<div class="topic-metadata">

**Author:** [@Ivaylo\_Bratoev](https://forum.ansible.com/u/Ivaylo_Bratoev)\
**Replies:** 7\
**Last updated:** [October 14, 2014, 9:46pm UTC](https://forum.ansible.com/t/custom-windows-module-output-problem/16486 "2014-10-14T21:46:33Z")

</div>

I have a custom Windows module that uses DSC modules to perform some configuration (using Start-DscConfiguration commandlet). The important part is that this command output lines starting with “\[”. Ansible gets confused …

---

## [just saying 'Hi'](https://forum.ansible.com/t/just-saying-hi/16499)

<div class="topic-metadata">

**Author:** [@vineet\_daniel](https://forum.ansible.com/u/vineet_daniel)\
**Replies:** 1\
**Last updated:** [October 14, 2014, 3:15pm UTC](https://forum.ansible.com/t/just-saying-hi/16499 "2014-10-14T15:15:37Z")

</div>

Hi Everybody, I have just joined this mailing list and have been following and working upon automating our Infra requirements using Ansible. Would love to share feedback, post questions and contribute (if need arises). …

---

## [Windows copy and file modules](https://forum.ansible.com/t/windows-copy-and-file-modules/16001)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 7\
**Last updated:** [October 14, 2014, 4:06am UTC](https://forum.ansible.com/t/windows-copy-and-file-modules/16001 "2014-10-14T04:06:16Z")

</div>

I have recently been trying to get a windows copy module to work. I noticed the win\_copy pull request but it is trying to use a samba share and as some of the comments pointed out you could easily piggy back on the same …

---

## [maintain users in database](https://forum.ansible.com/t/maintain-users-in-database/16493)

<div class="topic-metadata">

**Author:** [@Ronald\_Rood](https://forum.ansible.com/u/Ronald_Rood)\
**Replies:** 1\
**Last updated:** [October 13, 2014, 8:47pm UTC](https://forum.ansible.com/t/maintain-users-in-database/16493 "2014-10-13T20:47:43Z")

</div>

Hi, I wrote a simple little oracle\_user module in bash that accepts a username and a state (present|absent) that creates or deletes a user depending on the requested state. No action when user exists and state is presen…

---

## [ControlMaster broken or defaults changed?](https://forum.ansible.com/t/controlmaster-broken-or-defaults-changed/16471)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://forum.ansible.com/u/Sam_Pierson)\
**Replies:** 6\
**Last updated:** [October 13, 2014, 8:46pm UTC](https://forum.ansible.com/t/controlmaster-broken-or-defaults-changed/16471 "2014-10-13T20:46:09Z")

</div>

Morning all, Since updating to submoduleized-ansible, my ansible-playbook runs are taking twice the time they used to. Looking at ~/.ansible/cp, I find it empty during the run. With 1.7.x, or older git ansible, for -vv…

---

## [Question on where best to implement a "--verify-failure" feature.](https://forum.ansible.com/t/question-on-where-best-to-implement-a-verify-failure-feature/16482)

<div class="topic-metadata">

**Author:** [@maxamillion](https://forum.ansible.com/u/maxamillion)\
**Replies:** 1\
**Last updated:** [October 13, 2014, 8:44pm UTC](https://forum.ansible.com/t/question-on-where-best-to-implement-a-verify-failure-feature/16482 "2014-10-13T20:44:01Z")

</div>

Hello all, I am currently poking my way through the core Ansible code trying to figure out how best to implement a "--verify-failure" feature, what I mean by that is there would be an option to run playbooks inte…

---

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

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [October 12, 2014, 12:54pm UTC](https://forum.ansible.com/t/new-ansible-cloudstack-module/16436 "2014-10-12T12:54:28Z")

</div>

Hi A few weeks ago, I wrote an Cloudstack module, which used libcloud. Due some missing features in libcloud and for simplicity, I switched to python cs library developed by Exoscale. I plan to send a PR within the nex…

---

## [UserWarning: Module ansible was already imported](https://forum.ansible.com/t/userwarning-module-ansible-was-already-imported/16484)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 0\
**Last updated:** [October 10, 2014, 8:57am UTC](https://forum.ansible.com/t/userwarning-module-ansible-was-already-imported/16484 "2014-10-10T08:57:46Z")

</div>

I just cloned the ansible repo, tried sourcing hacking/env-setup and this is the warning I get when I run ansible --version: \` $ source hacking/env-setup Setting up Ansible to run out of checkout… PATH=/home/vagrant/…

---

## [Status of a pull request.](https://forum.ansible.com/t/status-of-a-pull-request/16468)

<div class="topic-metadata">

**Author:** [@Nicolas\_Cesar](https://forum.ansible.com/u/Nicolas_Cesar)\
**Replies:** 2\
**Last updated:** [October 8, 2014, 6:16pm UTC](https://forum.ansible.com/t/status-of-a-pull-request/16468 "2014-10-08T18:16:47Z")

</div>

Hi, I bumped into https://github.com/ansible/ansible-modules-core/pull/58 that I really like to be merged. Is there anyone in the core team that could be checking this? Is there anything I could do to help speed up the …

---

## [Do import statements need to be at the bottom in modules?](https://forum.ansible.com/t/do-import-statements-need-to-be-at-the-bottom-in-modules/16460)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein](https://forum.ansible.com/u/Lorin_Hochstein)\
**Replies:** 1\
**Last updated:** [October 8, 2014, 12:47pm UTC](https://forum.ansible.com/t/do-import-statements-need-to-be-at-the-bottom-in-modules/16460 "2014-10-08T12:47:43Z")

</div>

I’ve noticed that all of the Ansible modules have their import statements near the bottom of the file instead of the top: from ansible.module\_utils.basic import \* If I’m writing a new module, do I need to put the impor…

---

## [Global variables file](https://forum.ansible.com/t/global-variables-file/16346)

<div class="topic-metadata">

**Author:** [@Ivaylo\_Bratoev](https://forum.ansible.com/u/Ivaylo_Bratoev)\
**Replies:** 12\
**Last updated:** [October 6, 2014, 8:32pm UTC](https://forum.ansible.com/t/global-variables-file/16346 "2014-10-06T20:32:31Z")

</div>

I need to define truly global variables. I know about using the ALL group\_vars but the variable there are not truly global. For example if groupname is defined in for the ALL group in group\_vars this doesn’t work: host…

---

## [Last pre-submodules commit](https://forum.ansible.com/t/last-pre-submodules-commit/16428)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://forum.ansible.com/u/Sam_Pierson)\
**Replies:** 2\
**Last updated:** [October 5, 2014, 6:06pm UTC](https://forum.ansible.com/t/last-pre-submodules-commit/16428 "2014-10-05T18:06:29Z")

</div>

I can’t really use the post-submodules devel branch right now (embedded module issues etc). Which is the last commit, pre-submodules? It would be useful if you could tag that commit, for posterity. Thanks, -Sam. Sam…

---

## [Raising AnsibleError exceptions inside the run() method of LookupModule class does not work as expected](https://forum.ansible.com/t/raising-ansibleerror-exceptions-inside-the-run-method-of-lookupmodule-class-does-not-work-as-expected/16323)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 3\
**Last updated:** [October 5, 2014, 6:05pm UTC](https://forum.ansible.com/t/raising-ansibleerror-exceptions-inside-the-run-method-of-lookupmodule-class-does-not-work-as-expected/16323 "2014-10-05T18:05:33Z")

</div>

Hi Petros, We’d need to see code about what you are referring to to know whether this was a thing or not. Thanks! –Michael

---

## [Git clone failing](https://forum.ansible.com/t/git-clone-failing/16417)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 5\
**Last updated:** [October 3, 2014, 10:32pm UTC](https://forum.ansible.com/t/git-clone-failing/16417 "2014-10-03T22:32:10Z")

</div>

Brand new clone of ansible git project: git clone --recursive https://github.com/ansible/ansible.git Fails with the following error: fatal: reference is not a tree: f624689bad24cb3a7b2ef43d5280b5f4fbabb5bd Unable t…

---

## [Modules embedding in roles is broken](https://forum.ansible.com/t/modules-embedding-in-roles-is-broken/16425)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://forum.ansible.com/u/Sam_Pierson)\
**Replies:** 1\
**Last updated:** [October 3, 2014, 10:31pm UTC](https://forum.ansible.com/t/modules-embedding-in-roles-is-broken/16425 "2014-10-03T22:31:15Z")

</div>

Since the submodule refactor, embedded modules do not work, unless they are used in the first play in a playbook. I just spent half a day narrowing this down, and I have created a simple example of this behavior at https…

---

## [Allow a more advanced serialized deploy for multiple clusters at once](https://forum.ansible.com/t/allow-a-more-advanced-serialized-deploy-for-multiple-clusters-at-once/16394)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 5\
**Last updated:** [October 2, 2014, 10:18pm UTC](https://forum.ansible.com/t/allow-a-more-advanced-serialized-deploy-for-multiple-clusters-at-once/16394 "2014-10-02T22:18:04Z")

</div>

(I’m reposting this comment, I noted within another thread (on -devel), but where it was slightly off topic and overlooked.) I would like to be able to more easily target multiple sets of clusters within the same playbo…

---

## [Fact caching (work in progress) infrastructure now on development branch](https://forum.ansible.com/t/fact-caching-work-in-progress-infrastructure-now-on-development-branch/14285)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 11\
**Last updated:** [October 1, 2014, 10:10pm UTC](https://forum.ansible.com/t/fact-caching-work-in-progress-infrastructure-now-on-development-branch/14285 "2014-10-01T22:10:29Z")

</div>

I merged Brian Coca’s branch and tweaked it a little. As a result, fact caching can now (in abstract) be configured by a “cache\_plugin” option in ansible.cfg. The default plugin is “bypass”, which is not a plugin, and …

---

## [Access to inventory groups hierarchy](https://forum.ansible.com/t/access-to-inventory-groups-hierarchy/16339)

<div class="topic-metadata">

**Author:** [@Pawel\_Rozlach](https://forum.ansible.com/u/Pawel_Rozlach)\
**Replies:** 6\
**Last updated:** [October 1, 2014, 12:45pm UTC](https://forum.ansible.com/t/access-to-inventory-groups-hierarchy/16339 "2014-10-01T12:45:32Z")

</div>

Hi! I would like to start a discussion about access to inventory groups hierarchy. I have already created an issue describing the problem. Our use case is re-creating inventory groups hierarchy in Icinga\`s configuratio…

---

## [Problems with parsing simple playbooks on latest dev version](https://forum.ansible.com/t/problems-with-parsing-simple-playbooks-on-latest-dev-version/16387)

<div class="topic-metadata">

**Author:** [@Jorge\_Herskovic](https://forum.ansible.com/u/Jorge_Herskovic)\
**Replies:** 3\
**Last updated:** [October 1, 2014, 12:39pm UTC](https://forum.ansible.com/t/problems-with-parsing-simple-playbooks-on-latest-dev-version/16387 "2014-10-01T12:39:59Z")

</div>

Hi everyone, I’m having a horrible time parsing a playbook that worked fine last week (always on HEAD). I may have an error, but I can’t find it. This breaks immediately with ERROR: group is not a legal parameter in a…

---

## [Changing the way we organize the module repos](https://forum.ansible.com/t/changing-the-way-we-organize-the-module-repos/16345)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 10\
**Last updated:** [October 1, 2014, 12:38pm UTC](https://forum.ansible.com/t/changing-the-way-we-organize-the-module-repos/16345 "2014-10-01T12:38:25Z")

</div>

Hi all! As ansible has gotten super big lately, and also because people like virtualenv, it’s time to change the way ansible modules are organized and packaged. The proposal we have is to keep them in lib/ansible/modul…

---

## [Add allow\_skipping flag to plays](https://forum.ansible.com/t/add-allow-skipping-flag-to-plays/16330)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 1\
**Last updated:** [October 1, 2014, 12:35pm UTC](https://forum.ansible.com/t/add-allow-skipping-flag-to-plays/16330 "2014-10-01T12:35:48Z")

</div>

I currently have a playbook that the first play provisions VMs and then uses set\_facts to set the ansible\_ssh\_host to the ip returned from the provisioning step. I really like the --start-at-task option, especially while…

---

## [Kallithea modules](https://forum.ansible.com/t/kallithea-modules/15970)

<div class="topic-metadata">

**Author:** [@Bernhard\_Weitzhofer](https://forum.ansible.com/u/Bernhard_Weitzhofer)\
**Replies:** 3\
**Last updated:** [September 30, 2014, 1:48pm UTC](https://forum.ansible.com/t/kallithea-modules/15970 "2014-09-30T13:48:47Z")

</div>

Hello, I’m working on a set of Ansible Modules for Kallithea \[1\], namely kallithea\_repo kalliteha\_repo\_group kallithea\_user kallithea\_user\_group kallithea\_perm (permission) These should be usable within the next few …

---

## [New ansible module for managing ssh\_known\_hosts](https://forum.ansible.com/t/new-ansible-module-for-managing-ssh-known-hosts/15482)

<div class="topic-metadata">

**Author:** [@mcv21](https://forum.ansible.com/u/mcv21)\
**Replies:** 7\
**Last updated:** [September 30, 2014, 1:16pm UTC](https://forum.ansible.com/t/new-ansible-module-for-managing-ssh-known-hosts/15482 "2014-09-30T13:16:11Z")

</div>

Hi, I wrote an ansible module to manage ssh's known\_hosts file. Unlike the existing module I found by googling, this one is written in python, and requires the user to supply a public key. It uses ssh-keygen to search …

---

## [ansible-inventory-grapher on windows - installing ansible on Windows (revisit)](https://forum.ansible.com/t/ansible-inventory-grapher-on-windows-installing-ansible-on-windows-revisit/16252)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 2\
**Last updated:** [September 30, 2014, 3:53am UTC](https://forum.ansible.com/t/ansible-inventory-grapher-on-windows-installing-ansible-on-windows-revisit/16252 "2014-09-30T03:53:56Z")

</div>

Hi, I’m trying to allow ansible-inventory-grapher to install under pip on Windows. I’m using the standard python 2.7 for Windows. As per https://github.com/ansible/ansible/issues/7049, the install fails during an impor…

---

## [Check mode by default](https://forum.ansible.com/t/check-mode-by-default/16369)

<div class="topic-metadata">

**Author:** [@Peter\_Morgan](https://forum.ansible.com/u/Peter_Morgan)\
**Replies:** 5\
**Last updated:** [September 29, 2014, 10:14pm UTC](https://forum.ansible.com/t/check-mode-by-default/16369 "2014-09-29T22:14:20Z")

</div>

I think it might be useful to have an ansible.cfg setting to enable check mode to be the default behavior of ansible/ansible-playbook. It is far too easy to accidentally forget the -C and fire off a script that does some…

---

## [dynamic inventory, group vars and role vars precedence](https://forum.ansible.com/t/dynamic-inventory-group-vars-and-role-vars-precedence/16373)

<div class="topic-metadata">

**Author:** [@Mathieu\_Guillaume](https://forum.ansible.com/u/Mathieu_Guillaume)\
**Replies:** 2\
**Last updated:** [September 29, 2014, 7:43pm UTC](https://forum.ansible.com/t/dynamic-inventory-group-vars-and-role-vars-precedence/16373 "2014-09-29T19:43:57Z")

</div>

Hello Ansiblers, This is about two different things (I know, bad!), but all about variables. This is on Ansible 1.7.2. I’ve put up my test code on https://github.com/mguillaume/ansible-vars-test for easy review/reprodu…

---

## [PROPOSAL : New inventory parameter to specify sudo command path](https://forum.ansible.com/t/proposal-new-inventory-parameter-to-specify-sudo-command-path/16364)

<div class="topic-metadata">

**Author:** [@bbasleeper2](https://forum.ansible.com/u/bbasleeper2)\
**Replies:** 1\
**Last updated:** [September 27, 2014, 6:47pm UTC](https://forum.ansible.com/t/proposal-new-inventory-parameter-to-specify-sudo-command-path/16364 "2014-09-27T18:47:07Z")

</div>

Hi everyone, I just submitted the below pull request to add a new inventory parameter, ansible\_sudo\_exe, to be able to specify the sudo command path per host. GH9182 Bruno.

---

## [Help, advice, opinion needed about a new module for a switch](https://forum.ansible.com/t/help-advice-opinion-needed-about-a-new-module-for-a-switch/16351)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 3\
**Last updated:** [September 27, 2014, 12:42pm UTC](https://forum.ansible.com/t/help-advice-opinion-needed-about-a-new-module-for-a-switch/16351 "2014-09-27T12:42:34Z")

</div>

Hi all, I had posted to this list a month or so ago about writing a module for an HP switch (HP V1910-24G Switch, Comware 5.0-based). This has been quite a learning experience! I reviewed this with my team today and t…

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

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