# Ansible Developer

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

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

**Page:** 86

---

## [Documentation process improvement ideas?](https://forum.ansible.com/t/documentation-process-improvement-ideas/15652)

<div class="topic-metadata">

**Author:** [@Stuart\_Reynolds](https://forum.ansible.com/u/Stuart_Reynolds)\
**Replies:** 3\
**Last updated:** [July 11, 2014, 10:42pm UTC](https://forum.ansible.com/t/documentation-process-improvement-ideas/15652 "2014-07-11T22:42:55Z")

</div>

As I read through the Ansible docs, I’m constantly finding there are many small details missing. Some examples: how is the current directory of the command module decided what are the all the possible parameters to a t…

---

## [Contributing to Ansible by helping move issues / pull requests along](https://forum.ansible.com/t/contributing-to-ansible-by-helping-move-issues-pull-requests-along/15650)

<div class="topic-metadata">

**Author:** [@Jonathan\_Mainguy](https://forum.ansible.com/u/Jonathan_Mainguy)\
**Replies:** 1\
**Last updated:** [July 11, 2014, 10:37pm UTC](https://forum.ansible.com/t/contributing-to-ansible-by-helping-move-issues-pull-requests-along/15650 "2014-07-11T22:37:52Z")

</div>

I noticed some labels were out of date on the github issues / pull requests and that no comments had been made in some for months. Would it be beneficial at all if I made comments in them to say the label needed updating…

---

## [No changed plugin callback](https://forum.ansible.com/t/no-changed-plugin-callback/15634)

<div class="topic-metadata">

**Author:** [@shaol](https://forum.ansible.com/u/shaol)\
**Replies:** 5\
**Last updated:** [July 9, 2014, 10:52pm UTC](https://forum.ansible.com/t/no-changed-plugin-callback/15634 "2014-07-09T22:52:24Z")

</div>

Hi Guys I was going over the noop.py plugin callbacks on github (see https://github.com/ansible/ansible/blob/devel/lib/ansible/callback\_plugins/noop.py) and noticed there is no callback for a task’s changed status. Any …

---

## [How the network operation happens in a module?](https://forum.ansible.com/t/how-the-network-operation-happens-in-a-module/15597)

<div class="topic-metadata">

**Author:** [@John\_Wang](https://forum.ansible.com/u/John_Wang)\
**Replies:** 7\
**Last updated:** [July 7, 2014, 7:11pm UTC](https://forum.ansible.com/t/how-the-network-operation-happens-in-a-module/15597 "2014-07-07T19:11:41Z")

</div>

Hi, I’m a fresher in Ansible(actually all kinds of CMS), and trying to know how the modules works. I can easily understand the “time” example and even some more complex ones. However those involving operations over netw…

---

## [How to use changed\_when with user:](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15592)

<div class="topic-metadata">

**Author:** [@Kenton\_Brede](https://forum.ansible.com/u/Kenton_Brede)\
**Replies:** 1\
**Last updated:** [July 2, 2014, 5:14pm UTC](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15592 "2014-07-02T17:14:35Z")

</div>

Trying to learn more about how to use Ansible. I’ve got a situation where a mix of local and LDAP users may exist on a box. In some situations user1 may either be a local user or LDAP user. I created a task to remove ce…

---

## [New GCE Fact module](https://forum.ansible.com/t/new-gce-fact-module/15588)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 2\
**Last updated:** [July 1, 2014, 11:38pm UTC](https://forum.ansible.com/t/new-gce-fact-module/15588 "2014-07-01T23:38:17Z")

</div>

Hi, I am trying to write a fact module to read the Google Compute Engine Metadata. So far I have the following script: https://gist.github.com/pixie79/d5399bbdc9df7e68fb4e This works fine when I run it via: hacking/tes…

---

## [Shouldn't run\_command expand user on cwd ?](https://forum.ansible.com/t/shouldnt-run-command-expand-user-on-cwd/15584)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc](https://forum.ansible.com/u/Michel_Blanc)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 7:00pm UTC](https://forum.ansible.com/t/shouldnt-run-command-expand-user-on-cwd/15584 "2014-07-01T19:00:35Z")

</div>

Hi, I came across an issue today using the npm module where a path passed via the 'path' parameter wasn't being user-expanded. I tracked this down to the run\_command function in lib/ansible/module\_utils/basic.py wher…

---

## [Thoughts on Ansible as an AP](https://forum.ansible.com/t/thoughts-on-ansible-as-an-ap/15583)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 1:44pm UTC](https://forum.ansible.com/t/thoughts-on-ansible-as-an-ap/15583 "2014-07-01T13:44:49Z")

</div>

I’ve been doing a bit of work with using Ansible as an API recently, and there are a few minor gaps. For example I believe the on\_ok and on\_failed calls from \_run\_task could be passed the name of the task The completio…

---

## [Python boilerplate in modules](https://forum.ansible.com/t/python-boilerplate-in-modules/15545)

<div class="topic-metadata">

**Author:** [@Andreas\_Harpfer](https://forum.ansible.com/u/Andreas_Harpfer)\
**Replies:** 3\
**Last updated:** [June 25, 2014, 6:58pm UTC](https://forum.ansible.com/t/python-boilerplate-in-modules/15545 "2014-06-25T18:58:41Z")

</div>

Hi all, being new to Ansible development and currently trying to understand how some of the core modules work, I was wondering why modules don't use the usual good practice Python boilerplate a la from ansible.m…

---

## [Problems getting EC2 VPC information](https://forum.ansible.com/t/problems-getting-ec2-vpc-information/15528)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 6\
**Last updated:** [June 24, 2014, 7:18pm UTC](https://forum.ansible.com/t/problems-getting-ec2-vpc-information/15528 "2014-06-24T19:18:57Z")

</div>

I'm trying to use the ec2\_vpc module to get the information about an existing VPC (specifically get all of the subnets and their IDs to use later). From reading the docs, I'm not completely sure this is possible since…

---

## [More configuration options for EC2 dynamic inventories](https://forum.ansible.com/t/more-configuration-options-for-ec2-dynamic-inventories/15486)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 7\
**Last updated:** [June 24, 2014, 2:30pm UTC](https://forum.ansible.com/t/more-configuration-options-for-ec2-dynamic-inventories/15486 "2014-06-24T14:30:24Z")

</div>

All, I've recently begun using the ec2.py dynamic inventory script and I've thought of some relatively simple optional enhancements that would be driven by the ec2.ini configuration file and wanted to see if there wa…

---

## [Scoping dynamic inventory best practices](https://forum.ansible.com/t/scoping-dynamic-inventory-best-practices/15491)

<div class="topic-metadata">

**Author:** [@Loren\_Carvalho](https://forum.ansible.com/u/Loren_Carvalho)\
**Replies:** 4\
**Last updated:** [June 24, 2014, 9:36am UTC](https://forum.ansible.com/t/scoping-dynamic-inventory-best-practices/15491 "2014-06-24T09:36:59Z")

</div>

Hello, So I recently opened a PR against ansible with the intention of passing the ‘host-pattern’ command line argument to my dynamic inventory script in order to scope responses to just the set of hosts I intended to w…

---

## [Add a with\_batching feature so that any module can batch variable input](https://forum.ansible.com/t/add-a-with-batching-feature-so-that-any-module-can-batch-variable-input/15522)

<div class="topic-metadata">

**Author:** [@Gregory\_Rehm](https://forum.ansible.com/u/Gregory_Rehm)\
**Replies:** 2\
**Last updated:** [June 23, 2014, 2:30pm UTC](https://forum.ansible.com/t/add-a-with-batching-feature-so-that-any-module-can-batch-variable-input/15522 "2014-06-23T14:30:07Z")

</div>

Ansible currently handles batching items for installing packages with the apt, yum, and pkgng modules. This works well with the aforementioned packages because people do not have much reason to use with\_items for any oth…

---

## [Allow using OrderedDict when parsing the yaml files.](https://forum.ansible.com/t/allow-using-ordereddict-when-parsing-the-yaml-files/15492)

<div class="topic-metadata">

**Author:** [@Smoothify](https://forum.ansible.com/u/Smoothify)\
**Replies:** 11\
**Last updated:** [June 23, 2014, 12:12pm UTC](https://forum.ansible.com/t/allow-using-ordereddict-when-parsing-the-yaml-files/15492 "2014-06-23T12:12:49Z")

</div>

I am would like the ability to set OrderedDicts as the default dictionary class when parsing yaml files, primarily for the purposes of allowing dictionaries in vars to be automatically ordered. Using Ansible as an API, …

---

## [New Windows support for Ansible](https://forum.ansible.com/t/new-windows-support-for-ansible/15516)

<div class="topic-metadata">

**Author:** [@Ben\_Hoyt](https://forum.ansible.com/u/Ben_Hoyt)\
**Replies:** 2\
**Last updated:** [June 20, 2014, 8:51pm UTC](https://forum.ansible.com/t/new-windows-support-for-ansible/15516 "2014-06-20T20:51:13Z")

</div>

Hi Ansiblites, Great to see you’ve added Windows support: http://www.ansible.com/blog/windows-is-coming And I really like the approach you’ve taken to keep Windows like Windows. Using a lowest cross-platform denominato…

---

## [has the active path of the pipe lookup\_plugin changed](https://forum.ansible.com/t/has-the-active-path-of-the-pipe-lookup-plugin-changed/15496)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 9:47pm UTC](https://forum.ansible.com/t/has-the-active-path-of-the-pipe-lookup-plugin-changed/15496 "2014-06-19T21:47:00Z")

</div>

Hey all, I might have missed a changelog but I can’t seem to find this change documented: When setting a variable to the value “{{ lookup(‘pipe’, ‘pwd’) }}” in the root of a playbook, and then using that variable insid…

---

## [Making S3 get overwrite behavior match get\_url](https://forum.ansible.com/t/making-s3-get-overwrite-behavior-match-get-url/15434)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 9\
**Last updated:** [June 19, 2014, 9:31pm UTC](https://forum.ansible.com/t/making-s3-get-overwrite-behavior-match-get-url/15434 "2014-06-19T21:31:13Z")

</div>

Hi, I am using S3 to store my build artifacts and I would like to copy them to hosts using the s3 module using something like the following task: s3: mode=get s3 bucket=myartifacts object=/website.zip dest=/srv/www/we…

---

## [Parallel execution of 'command' task](https://forum.ansible.com/t/parallel-execution-of-command-task/15488)

<div class="topic-metadata">

**Author:** [@Nick\_Piper](https://forum.ansible.com/u/Nick_Piper)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 12:50pm UTC](https://forum.ansible.com/t/parallel-execution-of-command-task/15488 "2014-06-19T12:50:21Z")

</div>

I’d like to be able to run a command line tool ~500 times, 4 at once, per server, to work through a (per server) list. We currently have this in our playbook: name: list existing projects shell: find /var/define/pro…

---

## [Writing modules in yaml](https://forum.ansible.com/t/writing-modules-in-yaml/15476)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 6\
**Last updated:** [June 18, 2014, 4:04pm UTC](https://forum.ansible.com/t/writing-modules-in-yaml/15476 "2014-06-18T16:04:39Z")

</div>

On more than one occasion I found myself encapsulating repeated sequences of tasks into a (parametrized) role to make them reusable. Adding nginx sites is one example. This has the disadvantage of losing the actions one …

---

## [Variable 'role' in role dependencies](https://forum.ansible.com/t/variable-role-in-role-dependencies/15449)

<div class="topic-metadata">

**Author:** [@Christian\_Thiemann](https://forum.ansible.com/u/Christian_Thiemann)\
**Replies:** 7\
**Last updated:** [June 18, 2014, 3:29pm UTC](https://forum.ansible.com/t/variable-role-in-role-dependencies/15449 "2014-06-18T15:29:27Z")

</div>

Hi all, I noticed today that when including a role using the dict form, it will also provide a variable named ‘role’ to all role tasks: roles: { role: foobar, version: 1.2.3 } However, when processing role dependenc…

---

## [Change Request: Don't modify known\_hosts file when host\_key\_checking=False](https://forum.ansible.com/t/change-request-dont-modify-known-hosts-file-when-host-key-checking-false/15464)

<div class="topic-metadata">

**Author:** [@Gilles\_Cornu](https://forum.ansible.com/u/Gilles_Cornu)\
**Replies:** 4\
**Last updated:** [June 17, 2014, 6:10am UTC](https://forum.ansible.com/t/change-request-dont-modify-known-hosts-file-when-host-key-checking-false/15464 "2014-06-17T06:10:33Z")

</div>

In a “Development or Test” context (e.g. using Vagrant to spin up temporary machines), it is usually not desired to store the host key in ~/.ssh/known\_hosts file, as the related host:port is frequently reused by other ma…

---

## [Debugging Ansible with epdb](https://forum.ansible.com/t/debugging-ansible-with-epdb/15448)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 4\
**Last updated:** [June 14, 2014, 6:38pm UTC](https://forum.ansible.com/t/debugging-ansible-with-epdb/15448 "2014-06-14T18:38:59Z")

</div>

Hello, I continue my post at Redirecting to Google Groups I have tried to insert a break point in my module, e.g. import epdb … def some\_function(): x = some\_random\_object.something\_interesting() epdb.st() And I e…

---

## [Setting a sane default for DIST\_MODULE\_PATH](https://forum.ansible.com/t/setting-a-sane-default-for-dist-module-path/15457)

<div class="topic-metadata">

**Author:** [@Kurt\_Bendl](https://forum.ansible.com/u/Kurt_Bendl)\
**Replies:** 1\
**Last updated:** [June 13, 2014, 10:46pm UTC](https://forum.ansible.com/t/setting-a-sane-default-for-dist-module-path/15457 "2014-06-13T22:46:37Z")

</div>

Hi folks, When installing the latest ansible (1.6.3) as a normal “unprivileged” user in a virtualenv via pip, this error is generated: error: could not create ‘/usr/share/ansible’: Permission denied Comments on a ti…

---

## [Tidy module](https://forum.ansible.com/t/tidy-module/15455)

<div class="topic-metadata">

**Author:** [@Ruggero\_Marchei](https://forum.ansible.com/u/Ruggero_Marchei)\
**Replies:** 5\
**Last updated:** [June 13, 2014, 4:38pm UTC](https://forum.ansible.com/t/tidy-module/15455 "2014-06-13T16:38:05Z")

</div>

Hi guys, I’ve created a “tidy” module for Ansible (module useful to remove unwanted files based on specific criteria) and I would like to have an opinion about that. Any comment or suggestion is really appreciated! Yo…

---

## [Load vars directory variables at inventory or playbook level](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15452)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 1\
**Last updated:** [June 12, 2014, 1:22pm UTC](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15452 "2014-06-12T13:22:57Z")

</div>

group\_vars/all can also be a directory (and so can be any group or host name) so you could do group\_vars/all/normalstuff.yml group\_vars/all/vaultencryptedstuff.yml

---

## [shlex.split and spaces in the value of a key=value pair](https://forum.ansible.com/t/shlex-split-and-spaces-in-the-value-of-a-key-value-pair/15436)

<div class="topic-metadata">

**Author:** [@Stanley\_Kamithi](https://forum.ansible.com/u/Stanley_Kamithi)\
**Replies:** 3\
**Last updated:** [June 10, 2014, 4:17pm UTC](https://forum.ansible.com/t/shlex-split-and-spaces-in-the-value-of-a-key-value-pair/15436 "2014-06-10T16:17:13Z")

</div>

Hello, Building new modules. Having problem when creating a key=value pair where “value” is an array. I get the following error with the below config… failed: \[sw3\] =\> (item={‘value’: {‘ipv4’: \[‘10.100.1.1/24’, ‘10.20…

---

## [Feature Addition: Argument to Dynamic Inventory Scripts for Initial Parsing](https://forum.ansible.com/t/feature-addition-argument-to-dynamic-inventory-scripts-for-initial-parsing/14305)

<div class="topic-metadata">

**Author:** [@Justin\_Seubert](https://forum.ansible.com/u/Justin_Seubert)\
**Replies:** 11\
**Last updated:** [June 10, 2014, 4:15pm UTC](https://forum.ansible.com/t/feature-addition-argument-to-dynamic-inventory-scripts-for-initial-parsing/14305 "2014-06-10T16:15:32Z")

</div>

Currently, all scripts for dynamic inventory are expected to return all hosts that are only wanted using two passed arguments: --list and --host. There is no way from ansible, ansible-playbook, the base API or others to …

---

## [tool for building roles, modules and playbooks](https://forum.ansible.com/t/tool-for-building-roles-modules-and-playbooks/15425)

<div class="topic-metadata">

**Author:** [@andrew3](https://forum.ansible.com/u/andrew3)\
**Replies:** 1\
**Last updated:** [June 9, 2014, 8:52pm UTC](https://forum.ansible.com/t/tool-for-building-roles-modules-and-playbooks/15425 "2014-06-09T20:52:19Z")

</div>

Recently released: https://pypi.python.org/pypi/ansible-role-manager ( feedback & contributions welcome! ) Thought process on developing separate tool, rather than contributing it to ansible-galaxy CLI: Encourage re…

---

## [vsphere\_guest VM from template](https://forum.ansible.com/t/vsphere-guest-vm-from-template/15229)

<div class="topic-metadata">

**Author:** [@Nigel\_Metheringham](https://forum.ansible.com/u/Nigel_Metheringham)\
**Replies:** 3\
**Last updated:** [June 9, 2014, 6:49pm UTC](https://forum.ansible.com/t/vsphere-guest-vm-from-template/15229 "2014-06-09T18:49:11Z")

</div>

Mark Phillips wrote: I was looking at the new (to 1.6) vsphere\_guest module - nice. I was wondering if there were plans to roll in the ability to spin up a VM from a /template/\[1\] in VSphere? I've been using pysphere…

---

## [vsphere\_guest: snapshots](https://forum.ansible.com/t/vsphere-guest-snapshots/15424)

<div class="topic-metadata">

**Author:** [@Dann\_Bohn](https://forum.ansible.com/u/Dann_Bohn)\
**Replies:** 2\
**Last updated:** [June 8, 2014, 11:41pm UTC](https://forum.ansible.com/t/vsphere-guest-snapshots/15424 "2014-06-08T23:41:26Z")

</div>

I did a small proof of concept this morning, and it doesn’t seem terribly hard to add the ability to take snapshots. I’m not a python developer (yet), but I’m willing to take a stab at this if it’s something the project…

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

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