# Ansible Developer

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

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

**Page:** 91

---

## [Usage of python's subprocess.Popen.communicate()](https://forum.ansible.com/t/usage-of-pythons-subprocess-popen-communicate/14346)

<div class="topic-metadata">

**Author:** [@Caleb\_Spare](https://forum.ansible.com/u/Caleb_Spare)\
**Replies:** 14\
**Last updated:** [January 16, 2014, 8:29am UTC](https://forum.ansible.com/t/usage-of-pythons-subprocess-popen-communicate/14346 "2014-01-16T08:29:47Z")

</div>

Hi, I wasn’t sure whether to report this as a bug or not. The issue was this: I have an rsync task that I use for efficiently copying directory hierarchies to remote machines. The symptom is that it would sometimes hang…

---

## [Known regression in sysctl module?](https://forum.ansible.com/t/known-regression-in-sysctl-module/14354)

<div class="topic-metadata">

**Author:** [@Peter\_Gehres](https://forum.ansible.com/u/Peter_Gehres)\
**Replies:** 5\
**Last updated:** [January 15, 2014, 9:22pm UTC](https://forum.ansible.com/t/known-regression-in-sysctl-module/14354 "2014-01-15T21:22:27Z")

</div>

Was the commit “Fixes #5469 Refactor sysctl module into object oriented code,” ca055844954ac74116b606feee9a1ef498865da0 intended to not be backward compatible? A git bisect show that the commit broke the following task: …

---

## [Role lookup](https://forum.ansible.com/t/role-lookup/14344)

<div class="topic-metadata">

**Author:** [@Peter\_Gehres](https://forum.ansible.com/u/Peter_Gehres)\
**Replies:** 10\
**Last updated:** [January 15, 2014, 9:23am UTC](https://forum.ansible.com/t/role-lookup/14344 "2014-01-15T09:23:02Z")

</div>

tl;dr - Is there a reason that roles are looked for relative to the current location? We have a site.yml playbook that includes a bunch of other playbooks (one for each role), but this clutters our root directory. I was…

---

## [Request for review: mongodb\_replica\_set](https://forum.ansible.com/t/request-for-review-mongodb-replica-set/14339)

<div class="topic-metadata">

**Author:** [@George\_Miroshnykov](https://forum.ansible.com/u/George_Miroshnykov)\
**Replies:** 0\
**Last updated:** [January 14, 2014, 1:44pm UTC](https://forum.ansible.com/t/request-for-review-mongodb-replica-set/14339 "2014-01-14T13:44:42Z")

</div>

Hello everyone! I’ve just submitted a pull request for the new module - mongodb\_replica\_set: https://github.com/ansible/ansible/pull/5615 As the name implies, this module can be used to manage MongoDB replica sets. P…

---

## [ec2: Why parameter "key\_name" is mandatory required?](https://forum.ansible.com/t/ec2-why-parameter-key-name-is-mandatory-required/14324)

<div class="topic-metadata">

**Author:** [@Alex\_Lov](https://forum.ansible.com/u/Alex_Lov)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 11:20pm UTC](https://forum.ansible.com/t/ec2-why-parameter-key-name-is-mandatory-required/14324 "2014-01-13T23:20:21Z")

</div>

(copy-paste from https://github.com/ansible/ansible/issues/5579) Subj. As I can see in code, this module uses boto function run\_instance(), and in this function parameter “key\_name” is not required for creating new ins…

---

## [ansible modules unit tests](https://forum.ansible.com/t/ansible-modules-unit-tests/14330)

<div class="topic-metadata">

**Author:** [@Willem\_de\_Groot](https://forum.ansible.com/u/Willem_de_Groot)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 2:32pm UTC](https://forum.ansible.com/t/ansible-modules-unit-tests/14330 "2014-01-13T14:32:48Z")

</div>

Lots of code seems to be under test, but not all. I think function-level unit tests would benefit most of the more obscure code, such as authorized\_key.parseoptions() ( https://github.com/ansible/ansible/blob/devel/libra…

---

## [galaxy feedback](https://forum.ansible.com/t/galaxy-feedback/14190)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 4\
**Last updated:** [January 13, 2014, 10:34am UTC](https://forum.ansible.com/t/galaxy-feedback/14190 "2014-01-13T10:34:27Z")

</div>

Hi Quick feedback: First, whow, kind if like it. :slight\_smile: GREAT JOB! the role naming / github repo on galaxy was irritating: please provide some examples how to fill this forms. had to reverse engineer it …

---

## [starting facts/setup cache](https://forum.ansible.com/t/starting-facts-setup-cache/13933)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 9\
**Last updated:** [January 12, 2014, 11:12pm UTC](https://forum.ansible.com/t/starting-facts-setup-cache/13933 "2014-01-12T23:12:03Z")

</div>

started a branch to implement setup/fact cache, follows the spirit of other plugins https://github.com/bcoca/ansible/tree/setup\_cache not working yet but added most of the infrastructure and doesn’t break current funct…

---

## [Using set\_fact in conjunction with delegate\_to](https://forum.ansible.com/t/using-set-fact-in-conjunction-with-delegate-to/13944)

<div class="topic-metadata">

**Author:** [@Brad\_Crochet](https://forum.ansible.com/u/Brad_Crochet)\
**Replies:** 5\
**Last updated:** [January 12, 2014, 3:23pm UTC](https://forum.ansible.com/t/using-set-fact-in-conjunction-with-delegate-to/13944 "2014-01-12T15:23:38Z")

</div>

Here is the use case: Run playbook against localhost Playbook creates nodes on some virt type (OpenStack, libvirt, whatever) Add some additional metadata via add\_host for those nodes In order for the metadata…

---

## [Small tweaks for ease of use?](https://forum.ansible.com/t/small-tweaks-for-ease-of-use/14314)

<div class="topic-metadata">

**Author:** [@Stuart\_Herbert](https://forum.ansible.com/u/Stuart_Herbert)\
**Replies:** 10\
**Last updated:** [January 10, 2014, 2:23pm UTC](https://forum.ansible.com/t/small-tweaks-for-ease-of-use/14314 "2014-01-10T14:23:52Z")

</div>

Hi, There’s a few things in Ansible wrt playbooks which I believe would be a little easier if they were tweaked. I’m thinking of submitting pull requests for each of these, and wanted to check first to see if they’d be …

---

## [Some pending refactoring on Runner/etc](https://forum.ansible.com/t/some-pending-refactoring-on-runner-etc/14310)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [January 10, 2014, 3:30am UTC](https://forum.ansible.com/t/some-pending-refactoring-on-runner-etc/14310 "2014-01-10T03:30:01Z")

</div>

As we’ve gotten larger and attempted to keep up with tremendous volume, some things like runner/init.py have gotten a bit - eh - expedient. Not bad, just in need of some cleanup. Regular maintaince as we haven’t been abl…

---

## [How about rewrite mongodb module with js?](https://forum.ansible.com/t/how-about-rewrite-mongodb-module-with-js/14299)

<div class="topic-metadata">

**Author:** [@Aaron\_Wang](https://forum.ansible.com/u/Aaron_Wang)\
**Replies:** 0\
**Last updated:** [January 9, 2014, 3:11am UTC](https://forum.ansible.com/t/how-about-rewrite-mongodb-module-with-js/14299 "2014-01-09T03:11:33Z")

</div>

Now, there is only one mongodb related module: mongodb\_user, and it requires pymongo. When I check https://github.com/ansible/ansible-examples/tree/master/mongodb, found it use js to initialize replset and shard, so this…

---

## [long term optimization idea](https://forum.ansible.com/t/long-term-optimization-idea/14296)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 1\
**Last updated:** [January 8, 2014, 5:03pm UTC](https://forum.ansible.com/t/long-term-optimization-idea/14296 "2014-01-08T17:03:20Z")

</div>

Hello, regarding the number of ssh roundrips, ssh\_alt lowers them down for all modules that do not need files transfered (eg template, copy) the overall principle of the execution path of a module is module = render(…

---

## [Improved EC2 multiple account support](https://forum.ansible.com/t/improved-ec2-multiple-account-support/14282)

<div class="topic-metadata">

**Author:** [@Jameel\_Al-Aziz](https://forum.ansible.com/u/Jameel_Al-Aziz)\
**Replies:** 1\
**Last updated:** [January 8, 2014, 12:01am UTC](https://forum.ansible.com/t/improved-ec2-multiple-account-support/14282 "2014-01-08T00:01:56Z")

</div>

Continuing the discussion from https://github.com/ansible/ansible/pull/5156. I don’t see anything stopping users from creating directories and symlinking to a shared script. That’s basically what I’m doing using my syml…

---

## [path\_dwim assumes basedir is set](https://forum.ansible.com/t/path-dwim-assumes-basedir-is-set/14287)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 2\
**Last updated:** [January 7, 2014, 1:49pm UTC](https://forum.ansible.com/t/path-dwim-assumes-basedir-is-set/14287 "2014-01-07T13:49:34Z")

</div>

Hi, I bumped into a small bug. Easily patched, but I’m not 100% sure what I did is the best way here. Can be reproduced with this basic playbook hosts: localhost gather\_facts: false connection: local vars: my: “…

---

## [Bug: in ec2\_elb - exception being thrown for new instance registration with ELB](https://forum.ansible.com/t/bug-in-ec2-elb-exception-being-thrown-for-new-instance-registration-with-elb/14271)

<div class="topic-metadata">

**Author:** [@Mohan\_Krishnan](https://forum.ansible.com/u/Mohan_Krishnan)\
**Replies:** 1\
**Last updated:** [January 5, 2014, 6:36pm UTC](https://forum.ansible.com/t/bug-in-ec2-elb-exception-being-thrown-for-new-instance-registration-with-elb/14271 "2014-01-05T18:36:41Z")

</div>

Hello, Currently if we are trying to register an instance that has not yetbeen registered with the elb an exception is thrown as follows: Traceback (most recent call last): File “/home/ubuntu/.ansible/tmp/ansible-1388…

---

## [Help: ec2\_rds needs some love](https://forum.ansible.com/t/help-ec2-rds-needs-some-love/14272)

<div class="topic-metadata">

**Author:** [@Mohan\_Krishnan](https://forum.ansible.com/u/Mohan_Krishnan)\
**Replies:** 1\
**Last updated:** [January 5, 2014, 6:35pm UTC](https://forum.ansible.com/t/help-ec2-rds-needs-some-love/14272 "2014-01-05T18:35:35Z")

</div>

Hi folks,## I have a pull request to fix a bug in ec2\_rds## - rds module: Fix: Cannot change security group of RDS instance in VPC - https://github.com/ansible/ansible/pull/5389There is a discussion thread where Michael …

---

## [ansible galaxy improvements and bugs](https://forum.ansible.com/t/ansible-galaxy-improvements-and-bugs/14258)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 3\
**Last updated:** [January 3, 2014, 1:59pm UTC](https://forum.ansible.com/t/ansible-galaxy-improvements-and-bugs/14258 "2014-01-03T13:59:28Z")

</div>

Hi I played with galaxy the last days and want you to know few things which should be improved and fixed: Roles updates In the “My roles” view, there is no “re-index” button after a while, just “Delete” buttons. So …

---

## [Extra time spent between plays in 1.4+](https://forum.ansible.com/t/extra-time-spent-between-plays-in-1-4/14254)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 2\
**Last updated:** [January 3, 2014, 12:47am UTC](https://forum.ansible.com/t/extra-time-spent-between-plays-in-1-4/14254 "2014-01-03T00:47:14Z")

</div>

So I've got a large inventory set I'm working with, on the order of 20K entries via a plugin. I'm doing some testing with just one host in use, so a --limit down to a single host. I've created three identical plays in …

---

## [Ansible and memory usage](https://forum.ansible.com/t/ansible-and-memory-usage/14238)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 3\
**Last updated:** [December 31, 2013, 12:22am UTC](https://forum.ansible.com/t/ansible-and-memory-usage/14238 "2013-12-31T00:22:23Z")

</div>

I've been testing ansible 1.4 and devel on my larger environments and I've ran myself out of memory a few times (8 gigs on the VM). So I started watching memory consumption in various scenarios and this is what I observ…

---

## [rds: additions](https://forum.ansible.com/t/rds-additions/14212)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [December 28, 2013, 1:12am UTC](https://forum.ansible.com/t/rds-additions/14212 "2013-12-28T01:12:03Z")

</div>

I plan to add the ability to create DB snapshots and restore a database from such a snapshot. This would be done through adding the commands ‘snapshot’ and ‘restore’ and updating the appropriate docs. As best I can I’l…

---

## [Bug fix for mysql\_db module port ignored for dump/import](https://forum.ansible.com/t/bug-fix-for-mysql-db-module-port-ignored-for-dump-import/14230)

<div class="topic-metadata">

**Author:** [@Jim\_Kleckner](https://forum.ansible.com/u/Jim_Kleckner)\
**Replies:** 0\
**Last updated:** [December 27, 2013, 11:53pm UTC](https://forum.ansible.com/t/bug-fix-for-mysql-db-module-port-ignored-for-dump-import/14230 "2013-12-27T23:53:53Z")

</div>

Pull request #5435 fixes mysql\_db that was ignoring the login\_port parameter. https://github.com/ansible/ansible/pull/5435 Comments welcome. Jim

---

## [vsphere/vcenter inventory plugin](https://forum.ansible.com/t/vsphere-vcenter-inventory-plugin/14228)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 1\
**Last updated:** [December 27, 2013, 10:34pm UTC](https://forum.ansible.com/t/vsphere-vcenter-inventory-plugin/14228 "2013-12-27T22:34:07Z")

</div>

My fisrt working draft https://github.com/bcoca/ansible/tree/vsphere\_inventory, test, comment, patch, break, insult … etc

---

## [Raw tag/value pairs as host groups](https://forum.ansible.com/t/raw-tag-value-pairs-as-host-groups/14226)

<div class="topic-metadata">

**Author:** [@herby.gillot](https://forum.ansible.com/u/herby.gillot)\
**Replies:** 2\
**Last updated:** [December 27, 2013, 7:13pm UTC](https://forum.ansible.com/t/raw-tag-value-pairs-as-host-groups/14226 "2013-12-27T19:13:38Z")

</div>

RE: \[https://github.com/ansible/ansible/pull/5430\](https://github.com/ansible/ansible/pull/5430) The intent here was to make it possible for users of the ec2 inventory module to be able to directly address hosts using …

---

## [Native windows support](https://forum.ansible.com/t/native-windows-support/14198)

<div class="topic-metadata">

**Author:** [@Konstantin\_Zemlyak](https://forum.ansible.com/u/Konstantin_Zemlyak)\
**Replies:** 2\
**Last updated:** [December 21, 2013, 12:01am UTC](https://forum.ansible.com/t/native-windows-support/14198 "2013-12-21T00:01:11Z")

</div>

I have ported ansible to run under Windows, code available at https://github.com/zart/ansible/commits/native-windows-support Port consists mostly in removing unconditional dependency on unix-only modules like pwd, grp, f…

---

## [ec2\_group: rules can't reference containing group](https://forum.ansible.com/t/ec2-group-rules-cant-reference-containing-group/14166)

<div class="topic-metadata">

**Author:** [@David\_Hummel](https://forum.ansible.com/u/David_Hummel)\
**Replies:** 10\
**Last updated:** [December 20, 2013, 9:13pm UTC](https://forum.ansible.com/t/ec2-group-rules-cant-reference-containing-group/14166 "2013-12-20T21:13:25Z")

</div>

In order to reference the containing group in rules that specify the group\_id parameter, one must do the following: ec2\_group: … rules: proto: tcp from\_port: 22 to\_port: 22 cidr\_ip: 0.0.0.0/0 register: sg ec2\_gro…

---

## [Call for testers: ansible-pull live stdout and verbosity levels](https://forum.ansible.com/t/call-for-testers-ansible-pull-live-stdout-and-verbosity-levels/14186)

<div class="topic-metadata">

**Author:** [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Replies:** 0\
**Last updated:** [December 19, 2013, 10:02pm UTC](https://forum.ansible.com/t/call-for-testers-ansible-pull-live-stdout-and-verbosity-levels/14186 "2013-12-19T22:02:59Z")

</div>

https://github.com/ansible/ansible/pull/5362 I'm interested in any feedback or test results.

---

## [\[ansible\] Proposing fix for Issue #4324; adding support for su (#5325)](https://forum.ansible.com/t/ansible-proposing-fix-for-issue-4324-adding-support-for-su-5325/14174)

<div class="topic-metadata">

**Author:** [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Replies:** 2\
**Last updated:** [December 18, 2013, 11:42pm UTC](https://forum.ansible.com/t/ansible-proposing-fix-for-issue-4324-adding-support-for-su-5325/14174 "2013-12-18T23:42:09Z")

</div>

Hey Michael, Jerome, and the rest of the devel list. I’m not very vocal on this list, and it seems everyone seems to do their best chatting on the mailing list, so I’m bringing my talk here. This about my pull request: h…

---

## [EC2 modules refactor](https://forum.ansible.com/t/ec2-modules-refactor/14159)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [December 16, 2013, 1:01pm UTC](https://forum.ansible.com/t/ec2-modules-refactor/14159 "2013-12-16T13:01:54Z")

</div>

There is an awful lot of common code in the EC2 modules that would make a lot more sense to provide through module\_utils/ec2.py At the moment, the list of AWS regions and the code that determines what region to log into…

---

## [Feature request - support docker container names (I'll code it!)](https://forum.ansible.com/t/feature-request-support-docker-container-names-ill-code-it/14146)

<div class="topic-metadata">

**Author:** [@Rob\_Martin](https://forum.ansible.com/u/Rob_Martin)\
**Replies:** 3\
**Last updated:** [December 13, 2013, 9:43pm UTC](https://forum.ansible.com/t/feature-request-support-docker-container-names-ill-code-it/14146 "2013-12-13T21:43:12Z")

</div>

I’m in a position where I need to name docker containers, which is supported as of Docker 0.6.5 and docker-py as of 0.2.3. But the Ansible docker module doesn’t support it, so I’m coding it. There are some issues around…

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

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