# Ansible Developer

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

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

**Page:** 72

---

## [Unit test mock object issue?](https://forum.ansible.com/t/unit-test-mock-object-issue/18625)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [July 1, 2015, 10:26pm UTC](https://forum.ansible.com/t/unit-test-mock-object-issue/18625 "2015-07-01T22:26:28Z")

</div>

Trying to fix my issue tracked at https://github.com/ansible/ansible/issues/11320. From what I can tell v2 does not process includes properly. So I started playing around with test/playbook/test\_playbook.py, here’s a si…

---

## [with\_recursive: A lookup plugin that chains other lookups](https://forum.ansible.com/t/with-recursive-a-lookup-plugin-that-chains-other-lookups/18601)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 6\
**Last updated:** [July 1, 2015, 6:07pm UTC](https://forum.ansible.com/t/with-recursive-a-lookup-plugin-that-chains-other-lookups/18601 "2015-07-01T18:07:03Z")

</div>

Hi I wrote a lookup plugin and I’d like to hear what you think. It allows one to nest loops inside each other. Kind of like with\_nested, but with other loop types than ‘items’. The code is here: Ansible lookup plugin th…

---

## [aws s3 module - multi part files](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077)

<div class="topic-metadata">

**Author:** [@Andrew\_Craft](https://forum.ansible.com/u/Andrew_Craft)\
**Replies:** 2\
**Last updated:** [June 29, 2015, 6:11pm UTC](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077 "2015-06-29T18:11:28Z")

</div>

As discussed previously in the past on the list, the current AWS S3 module doesn’t work with files upload as multi-part (done automatically for example when using the awsCLI tools to sync a folder) https://github.com/an…

---

## [jinja2 filters for state 'present'/'absent'](https://forum.ansible.com/t/jinja2-filters-for-state-present-absent/18620)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 2\
**Last updated:** [June 26, 2015, 12:20pm UTC](https://forum.ansible.com/t/jinja2-filters-for-state-present-absent/18620 "2015-06-26T12:20:40Z")

</div>

Every once in a while I have a situation in roles where I would like to set the state of a module to ‘present’ or ‘absent’ depending if a variable is empty or not. For example if I want to set a cron with a cron module I…

---

## [v2 and dynamically setting ansible\_ssh\_host](https://forum.ansible.com/t/v2-and-dynamically-setting-ansible-ssh-host/18616)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 0\
**Last updated:** [June 26, 2015, 4:11am UTC](https://forum.ansible.com/t/v2-and-dynamically-setting-ansible-ssh-host/18616 "2015-06-26T04:11:54Z")

</div>

This seems like a bug, but I want to check first. I have a role that provisions VMs in an openstack tenancy. One of the tasks the role performs is to update the ansible\_ssh\_host variable with the ip address returned from…

---

## [New os\_server and os\_server\_actions modules](https://forum.ansible.com/t/new-os-server-and-os-server-actions-modules/18615)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 1\
**Last updated:** [June 26, 2015, 3:35am UTC](https://forum.ansible.com/t/new-os-server-and-os-server-actions-modules/18615 "2015-06-26T03:35:50Z")

</div>

Hey Guys, I was testing out the os\_server and os\_server\_actions modules when I noticed that the start and stop actions were not included. I know the pull request said that the os\_server\_actions module was an initial com…

---

## [RFC: Module conventions / check list](https://forum.ansible.com/t/rfc-module-conventions-check-list/18245)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 8\
**Last updated:** [June 26, 2015, 3:31am UTC](https://forum.ansible.com/t/rfc-module-conventions-check-list/18245 "2015-06-26T03:31:46Z")

</div>

Hi I would like to share some infos about what I look for in modules, or what I learned, what does make a module a good module. It resulted in some kind of checklist for reviewers or module developers, maybe it helps f…

---

## [iterating over data](https://forum.ansible.com/t/iterating-over-data/18575)

<div class="topic-metadata">

**Author:** [@Hank\_Beatty](https://forum.ansible.com/u/Hank_Beatty)\
**Replies:** 1\
**Last updated:** [June 24, 2015, 11:24am UTC](https://forum.ansible.com/t/iterating-over-data/18575 "2015-06-24T11:24:28Z")

</div>

Hello, Given the data below I would like to create a single task that will print the url or the filename without having to specify the hardware (PowerEdge\_xxxxx) or the firmware (bios, idrac, etc.). Any ideas would be …

---

## [What is your development workflow for Windows modules?](https://forum.ansible.com/t/what-is-your-development-workflow-for-windows-modules/17624)

<div class="topic-metadata">

**Author:** [@John-Paul\_Herold](https://forum.ansible.com/u/John-Paul_Herold)\
**Replies:** 4\
**Last updated:** [June 24, 2015, 3:14am UTC](https://forum.ansible.com/t/what-is-your-development-workflow-for-windows-modules/17624 "2015-06-24T03:14:13Z")

</div>

Greetings, tl;dr I’m curious how people are developing windows modules and specifically details about their workflow. Context: I have been leading the Ansible push in my organization and have recently been getting the …

---

## [max\_fail\_percentage as a configurable?](https://forum.ansible.com/t/max-fail-percentage-as-a-configurable/18564)

<div class="topic-metadata">

**Author:** [@Fergal\_Mc\_Carthy](https://forum.ansible.com/u/Fergal_Mc_Carthy)\
**Replies:** 0\
**Last updated:** [June 22, 2015, 4:12pm UTC](https://forum.ansible.com/t/max-fail-percentage-as-a-configurable/18564 "2015-06-22T16:12:40Z")

</div>

Just wondering if there are any thoughts/objections to the idea of making the max\_fail\_percentage a configurable option, either via the Ansible config files, or via an ANSIBLE\_MAX\_FAIL\_PERCENTAGE environment variable? I…

---

## [module verbose output](https://forum.ansible.com/t/module-verbose-output/18558)

<div class="topic-metadata">

**Author:** [@Hank\_Beatty](https://forum.ansible.com/u/Hank_Beatty)\
**Replies:** 1\
**Last updated:** [June 21, 2015, 9:03pm UTC](https://forum.ansible.com/t/module-verbose-output/18558 "2015-06-21T21:03:44Z")

</div>

Hello, Is there a way for a module to output information when ansible-playbook is running in verbose mode (-v, -vv, -vvv, or -vvvv)? Thanks, Hank

---

## [lineinfile 'new line' broken for yaml format](https://forum.ansible.com/t/lineinfile-new-line-broken-for-yaml-format/18440)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 4\
**Last updated:** [June 20, 2015, 11:43am UTC](https://forum.ansible.com/t/lineinfile-new-line-broken-for-yaml-format/18440 "2015-06-20T11:43:41Z")

</div>

I am trying to add the following to the bottom of my /etc/tower/settings.py file (note the new line): AWX\_TASK\_ENV\[‘ANSIBLE\_LIBRARY’\] = ‘/etc/ansible/library/’ So I wrote the following in my playbook: example 1 line…

---

## [diff mode in replace?](https://forum.ansible.com/t/diff-mode-in-replace/18549)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 0\
**Last updated:** [June 19, 2015, 1:44pm UTC](https://forum.ansible.com/t/diff-mode-in-replace/18549 "2015-06-19T13:44:56Z")

</div>

please add diff mode to http://docs.ansible.com/replace\_module.html

---

## [Docker modules in Ansible Extras and authentication](https://forum.ansible.com/t/docker-modules-in-ansible-extras-and-authentication/18545)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 2\
**Last updated:** [June 19, 2015, 6:54am UTC](https://forum.ansible.com/t/docker-modules-in-ansible-extras-and-authentication/18545 "2015-06-19T06:54:24Z")

</div>

Wanted to bring a conversation from a PR in Extras: Earlier I had wondered if this was the way we wanted authentication to work (as separate modules) or if we wanted it to be integrated. @bcoca mentioned that there wa…

---

## [validate if handler exists in --check mode](https://forum.ansible.com/t/validate-if-handler-exists-in-check-mode/18541)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 0\
**Last updated:** [June 18, 2015, 1:56pm UTC](https://forum.ansible.com/t/validate-if-handler-exists-in-check-mode/18541 "2015-06-18T13:56:54Z")

</div>

Hi, i don’t know if this is fixed in v2 but please validate if all handlers exists even when not using them (no change). thanks

---

## [Writing a DSC resource for Windows](https://forum.ansible.com/t/writing-a-dsc-resource-for-windows/15715)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 17\
**Last updated:** [June 18, 2015, 1:49pm UTC](https://forum.ansible.com/t/writing-a-dsc-resource-for-windows/15715 "2015-06-18T13:49:59Z")

</div>

Just some thoughts I’d like to share with the community regarding writing a DSC resource for Windows: DSC is all the rage regarding config management on Windows. It’s not a product but a technology part of the Windows M…

---

## [how to loop an arrays with inner arrays in the playbook](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535)

<div class="topic-metadata">

**Author:** [@user123](https://forum.ansible.com/u/user123)\
**Replies:** 1\
**Last updated:** [June 18, 2015, 4:01am UTC](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535 "2015-06-18T04:01:07Z")

</div>

here is the play book

---

## [Use hosts from groups within variable files](https://forum.ansible.com/t/use-hosts-from-groups-within-variable-files/18530)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 3\
**Last updated:** [June 17, 2015, 2:13pm UTC](https://forum.ansible.com/t/use-hosts-from-groups-within-variable-files/18530 "2015-06-17T14:13:49Z")

</div>

is it possible to access a host of a group from within a variable file (like Ansible does in Templates?) here is the what i am trying to do:

---

## [vsphere\_guest add Guest customization](https://forum.ansible.com/t/vsphere-guest-add-guest-customization/18527)

<div class="topic-metadata">

**Author:** [@Vyron\_Tsingaras](https://forum.ansible.com/u/Vyron_Tsingaras)\
**Replies:** 1\
**Last updated:** [June 17, 2015, 1:26pm UTC](https://forum.ansible.com/t/vsphere-guest-add-guest-customization/18527 "2015-06-17T13:26:41Z")

</div>

Hi folks, I have implemented Guest customization using pysphere in vsphere\_guest. Should I bake it in state:reconfigured on create a new state, eg customized? Kind Regards, Vyronas Tsingaras

---

## [rax\_clb](https://forum.ansible.com/t/rax-clb/18528)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 2\
**Last updated:** [June 17, 2015, 10:26am UTC](https://forum.ansible.com/t/rax-clb/18528 "2015-06-17T10:26:21Z")

</div>

Is there any interest in adding support for ssl termination to the rax\_clb module? It seems to be supported by pyrax. The only alternative I’ve found is this, which is somewhat fugly. If not, I’ll just roll my own modul…

---

## [Role dependency and search path](https://forum.ansible.com/t/role-dependency-and-search-path/18516)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 1\
**Last updated:** [June 17, 2015, 8:58am UTC](https://forum.ansible.com/t/role-dependency-and-search-path/18516 "2015-06-17T08:58:59Z")

</div>

If I have a directory structure like this: \` ├── app1\_playbooks │ └── deploy.yml ├── hosts └── roles ├── app1 └── app\_common \` app1\_playbooks/deploy.yml looks like this: \` hosts: all roles: { role: ‘…/roles/…

---

## [npm: install package from github repo](https://forum.ansible.com/t/npm-install-package-from-github-repo/18522)

<div class="topic-metadata">

**Author:** [@kharandziuk](https://forum.ansible.com/u/kharandziuk)\
**Replies:** 0\
**Last updated:** [June 16, 2015, 6:07pm UTC](https://forum.ansible.com/t/npm-install-package-from-github-repo/18522 "2015-06-16T18:07:18Z")

</div>

The description is here https://github.com/ansible/ansible-modules-extras/issues/615. Is it make sense to add PR with this feature? If yes, How should I name the parameter?

---

## [getting \`{parsed: false}\` when returning json from a module?](https://forum.ansible.com/t/getting-parsed-false-when-returning-json-from-a-module/18515)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [June 16, 2015, 12:12pm UTC](https://forum.ansible.com/t/getting-parsed-false-when-returning-json-from-a-module/18515 "2015-06-16T12:12:59Z")

</div>

What is the line the reads? \[‘’\] Also seeing the module source may help, otherwise we’d just be guessing.

---

## [Is there any reason for the core/extras submodules diff between v1 and v2?](https://forum.ansible.com/t/is-there-any-reason-for-the-core-extras-submodules-diff-between-v1-and-v2/18514)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 1\
**Last updated:** [June 16, 2015, 12:11pm UTC](https://forum.ansible.com/t/is-there-any-reason-for-the-core-extras-submodules-diff-between-v1-and-v2/18514 "2015-06-16T12:11:05Z")

</div>

(please note that I’m no git expert) I just noticed that when cloning the Ansible project that submodule commits differ between v1 and v2: Is there any reason for not having v1 up to date with the newest module repos? …

---

## [Pass module failure in windows powershell module](https://forum.ansible.com/t/pass-module-failure-in-windows-powershell-module/18434)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 3\
**Last updated:** [June 15, 2015, 12:45pm UTC](https://forum.ansible.com/t/pass-module-failure-in-windows-powershell-module/18434 "2015-06-15T12:45:13Z")

</div>

I’ve written a handful of windows modules and haven’t found a good way to tell ansible that the module failed. Does anyone have an elegant way to do this? I could use failed\_when in the task but I’d rather be able to re…

---

## [v2 transition/upgrade guide?](https://forum.ansible.com/t/v2-transition-upgrade-guide/18493)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 1\
**Last updated:** [June 14, 2015, 12:23am UTC](https://forum.ansible.com/t/v2-transition-upgrade-guide/18493 "2015-06-14T00:23:24Z")

</div>

Is there documentation on transitioning to v2? Or should my v1 plays “just work” in v2? I ask because many of my v1 playbooks are not working when using the latest git pull but work fine when I “source v1/hacking/env-s…

---

## [Suggestions for win\_copy and win\_ansible](https://forum.ansible.com/t/suggestions-for-win-copy-and-win-ansible/16495)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 36\
**Last updated:** [June 12, 2015, 10:13pm UTC](https://forum.ansible.com/t/suggestions-for-win-copy-and-win-ansible/16495 "2015-06-12T22:13:49Z")

</div>

There’s been a lot of talk about these, and its time to get them into source. As several (I can’t remember the names right now, sorry!) in this group have tested, the copy module will work (albeit with limited functiona…

---

## [Using "vars\_prompt" on MacOSX 10.9.5](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481)

<div class="topic-metadata">

**Author:** [@Adam\_Mills](https://forum.ansible.com/u/Adam_Mills)\
**Replies:** 2\
**Last updated:** [June 12, 2015, 6:15pm UTC](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481 "2015-06-12T18:15:12Z")

</div>

I have been using Ansible to manage hosts in my network for about a month and I have been trying use the “vars\_prompt” to gather usernames and password variables for later in the Playbook run. On Ubuntu and even Debian I…

---

## [Proposal with\_all\_found loop](https://forum.ansible.com/t/proposal-with-all-found-loop/18469)

<div class="topic-metadata">

**Author:** [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Replies:** 3\
**Last updated:** [June 11, 2015, 2:21pm UTC](https://forum.ansible.com/t/proposal-with-all-found-loop/18469 "2015-06-11T14:21:04Z")

</div>

Hi list, I'd like to discuss a proposal for a loop with\_all\_found. We have with\_first\_found, so implementation should be quite easy. Target: - name: Include OS specific variables with\_all\_found: - "{{ ansible…

---

## [Proposal: adding support for port numbers to known\_hosts handling (to fix hanging git operations)](https://forum.ansible.com/t/proposal-adding-support-for-port-numbers-to-known-hosts-handling-to-fix-hanging-git-operations/18466)

<div class="topic-metadata">

**Author:** [@Ben\_Timms](https://forum.ansible.com/u/Ben_Timms)\
**Replies:** 1\
**Last updated:** [June 11, 2015, 1:28pm UTC](https://forum.ansible.com/t/proposal-adding-support-for-port-numbers-to-known-hosts-handling-to-fix-hanging-git-operations/18466 "2015-06-11T13:28:28Z")

</div>

Good day! I came across a problem cloning a git repository using a SSH URL containing a different port number. e.g. ssh://git@example.domain:7999/path/to/repo.git The problem I was getting was that there was also an SS…

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

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