# Ansible Developer

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

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

**Page:** 76

---

## [Thinking about how to merge more, quicker (Was Re: \[ansible-devel\] Further adventures in variable resolution.)](https://forum.ansible.com/t/thinking-about-how-to-merge-more-quicker-was-re-ansible-devel-further-adventures-in-variable-resolution/17438)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 23\
**Last updated:** [March 19, 2015, 2:26am UTC](https://forum.ansible.com/t/thinking-about-how-to-merge-more-quicker-was-re-ansible-devel-further-adventures-in-variable-resolution/17438 "2015-03-19T02:26:33Z")

</div>

I think this is an issue that we have to devote some time to addressing. We've taken some baby steps since the last release by adding a few people who are more knowledgable about specific areas as committers to the m…

---

## [subnet address facts module](https://forum.ansible.com/t/subnet-address-facts-module/17759)

<div class="topic-metadata">

**Author:** [@Paul\_Siegmann](https://forum.ansible.com/u/Paul_Siegmann)\
**Replies:** 3\
**Last updated:** [March 18, 2015, 10:02am UTC](https://forum.ansible.com/t/subnet-address-facts-module/17759 "2015-03-18T10:02:17Z")

</div>

Hi All, I’ve created a facts module to calculate subnet block addresses. This is helpful when creating new subnets on for instance Amazon EC2. Example usage: name: get subnet blocks local\_action: module: subnet\_bl…

---

## [timing tasks and plays.](https://forum.ansible.com/t/timing-tasks-and-plays/17761)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 3\
**Last updated:** [March 17, 2015, 12:47pm UTC](https://forum.ansible.com/t/timing-tasks-and-plays/17761 "2015-03-17T12:47:00Z")

</div>

There’s been a bit of a metrics jihad going on at the day job that got me thinking about how I’d implement something in Ansible to time a playbook or each task. In fact we just had an incident where recording some playbo…

---

## [Auto-map a windows drive](https://forum.ansible.com/t/auto-map-a-windows-drive/16870)

<div class="topic-metadata">

**Author:** [@Joey](https://forum.ansible.com/u/Joey)\
**Replies:** 5\
**Last updated:** [March 17, 2015, 9:49am UTC](https://forum.ansible.com/t/auto-map-a-windows-drive/16870 "2015-03-17T09:49:09Z")

</div>

I’m trying to figure out how to use Ansible to have windows clients automatically map a network drive. If I use the script module and either powershell or “net use”, I get an “Access Denied” error. Apparently, trying to …

---

## [FYI Python 3 stuffs](https://forum.ansible.com/t/fyi-python-3-stuffs/15797)

<div class="topic-metadata">

**Author:** [@Andrew\_Latham](https://forum.ansible.com/u/Andrew_Latham)\
**Replies:** 20\
**Last updated:** [March 12, 2015, 11:48pm UTC](https://forum.ansible.com/t/fyi-python-3-stuffs/15797 "2015-03-12T23:48:48Z")

</div>

To the few, the proud and the brave. I have worked on and have a working(99%) Ansible + Python3 setup. I am currently in the process of getting the PR into sane order. Testing and validation have sucked up most of my…

---

## [Service Module fails to change Sys V services when SystemD is enabled by default](https://forum.ansible.com/t/service-module-fails-to-change-sys-v-services-when-systemd-is-enabled-by-default/17703)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 4\
**Last updated:** [March 12, 2015, 11:19pm UTC](https://forum.ansible.com/t/service-module-fails-to-change-sys-v-services-when-systemd-is-enabled-by-default/17703 "2015-03-12T23:19:55Z")

</div>

Hey Guys, I am working with an old Fedora ( 15 ) which has systemd enabled by default, but many of the services are still controlled by the old Sys V init scripts ( including sshd and auditd ). Looking through the servi…

---

## [Ansible in Travis CI](https://forum.ansible.com/t/ansible-in-travis-ci/17724)

<div class="topic-metadata">

**Author:** [@Jurgen\_Hermann](https://forum.ansible.com/u/Jurgen_Hermann)\
**Replies:** 1\
**Last updated:** [March 12, 2015, 4:23pm UTC](https://forum.ansible.com/t/ansible-in-travis-ci/17724 "2015-03-12T16:23:37Z")

</div>

With a few tweaks it works, see https://travis-ci.org/jhermann/ansible.

---

## [Bug in ansible 1.8.4 with regards to step?](https://forum.ansible.com/t/bug-in-ansible-1-8-4-with-regards-to-step/17726)

<div class="topic-metadata">

**Author:** [@Eric\_Van\_Steenbergen](https://forum.ansible.com/u/Eric_Van_Steenbergen)\
**Replies:** 2\
**Last updated:** [March 12, 2015, 9:24am UTC](https://forum.ansible.com/t/bug-in-ansible-1-8-4-with-regards-to-step/17726 "2015-03-12T09:24:52Z")

</div>

Hi all, I recently upgraded two of my four ansible servers to 1.8.4 and from then on the --step option no longer works. The other two servers are running 1.8.2 and have no issues at all. This is the error I’m getting wh…

---

## [Idea: --list-tasks show task's tags](https://forum.ansible.com/t/idea-list-tasks-show-tasks-tags/17579)

<div class="topic-metadata">

**Author:** [@Leonel\_Galan\_Recinos](https://forum.ansible.com/u/Leonel_Galan_Recinos)\
**Replies:** 2\
**Last updated:** [March 11, 2015, 6:24pm UTC](https://forum.ansible.com/t/idea-list-tasks-show-tasks-tags/17579 "2015-03-11T18:24:58Z")

</div>

Re post from ansible-project I’ve been learning Ansible in the last couple of months and when using roles from Ansible Galaxy, it’s hard to know which tags each tasks has. I’ve search and couldn’t find a way to show all…

---

## [Crontab environment variables](https://forum.ansible.com/t/crontab-environment-variables/17722)

<div class="topic-metadata">

**Author:** [@Doug\_Luce](https://forum.ansible.com/u/Doug_Luce)\
**Replies:** 0\
**Last updated:** [March 11, 2015, 6:07pm UTC](https://forum.ansible.com/t/crontab-environment-variables/17722 "2015-03-11T18:07:26Z")

</div>

I've submitted https://github.com/ansible/ansible-modules-core/pull/923 for more complex handling of crontab environment variables. I made it a separate module from cron as I wasn't sure of the best way of unifying th…

---

## [extending a module, try/finally](https://forum.ansible.com/t/extending-a-module-try-finally/17716)

<div class="topic-metadata">

**Author:** [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Replies:** 2\
**Last updated:** [March 11, 2015, 3:43pm UTC](https://forum.ansible.com/t/extending-a-module-try-finally/17716 "2015-03-11T15:43:31Z")

</div>

Hello, is there a way to invoke other modules? Basically, I want to do this: tmp = template(password\_script, mode=0700) try: synchronize(args, SUDO\_ASKPASS=tmp) finally: os.remove(tmp) Is this possible or do I hav…

---

## [How to access host vars from within a connection plugin](https://forum.ansible.com/t/how-to-access-host-vars-from-within-a-connection-plugin/17705)

<div class="topic-metadata">

**Author:** [@tim5](https://forum.ansible.com/u/tim5)\
**Replies:** 1\
**Last updated:** [March 9, 2015, 10:09pm UTC](https://forum.ansible.com/t/how-to-access-host-vars-from-within-a-connection-plugin/17705 "2015-03-09T22:09:29Z")

</div>

An arbitrary host var can be set in my hostfiles/inventory file: \[www\] myserver.blah.com ansible\_connection=MY\_NEW\_CONNECTION someVar1=abc Now… in plugins/connection\_plugins/MY\_NEW\_CONNECTION.py… how do i access some…

---

## [Where to put shared code of modules](https://forum.ansible.com/t/where-to-put-shared-code-of-modules/17704)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 4\
**Last updated:** [March 9, 2015, 9:43pm UTC](https://forum.ansible.com/t/where-to-put-shared-code-of-modules/17704 "2015-03-09T21:43:04Z")

</div>

Hi I am developing modules for cloudstack https://github.com/resmo/ansible-cloudstack and having a bunch of modules which have some similar common code. I would like to separate this code into a separate file which can …

---

## [How to get all tasks of ansible playbook limit to ansible\_os\_family?](https://forum.ansible.com/t/how-to-get-all-tasks-of-ansible-playbook-limit-to-ansible-os-family/17699)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 0\
**Last updated:** [March 9, 2015, 1:21pm UTC](https://forum.ansible.com/t/how-to-get-all-tasks-of-ansible-playbook-limit-to-ansible-os-family/17699 "2015-03-09T13:21:49Z")

</div>

Hello, I need get all tasks from ansible playbook and show them. My problem is that condition like ansible\_os\_family == “Debian” not executing and I see all tasks. I created class, that allow to get playbook tasks pla…

---

## [privilege escalation refactoring](https://forum.ansible.com/t/privilege-escalation-refactoring/17693)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [March 8, 2015, 12:16am UTC](https://forum.ansible.com/t/privilege-escalation-refactoring/17693 "2015-03-08T00:16:57Z")

</div>

Hi, I just pushed out https://github.com/ansible/ansible/pull/10411, which does a major refactor of sudo/su and adds pbrun (powerbroker) and pfexec to the mix. I hope to not break existing playbooks and at the same t…

---

## [Improved ec2\_ami\_search module](https://forum.ansible.com/t/improved-ec2-ami-search-module/17691)

<div class="topic-metadata">

**Author:** [@Tom\_Bamford](https://forum.ansible.com/u/Tom_Bamford)\
**Replies:** 0\
**Last updated:** [March 7, 2015, 3:07am UTC](https://forum.ansible.com/t/improved-ec2-ami-search-module/17691 "2015-03-07T03:07:46Z")

</div>

Hi all I have written a new ec2\_ami\_search module and submitted a PR at https://github.com/ansible/ansible-modules-core/pull/905 I would welcome any discussion around this. Please note that this isn’t backwards compati…

---

## [Invoking/aggregating modules - synchronize with sudo support](https://forum.ansible.com/t/invoking-aggregating-modules-synchronize-with-sudo-support/17683)

<div class="topic-metadata">

**Author:** [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 8:28pm UTC](https://forum.ansible.com/t/invoking-aggregating-modules-synchronize-with-sudo-support/17683 "2015-03-05T20:28:57Z")

</div>

Hello, I need to run a synchronize task as user root to copy some files while preserving permissions etc. My first solution was to create an exception so the ssh user is allowed to run rsync via a sudoers rule with N…

---

## [using dynamic inventory (folder) with vars\_plugins fails](https://forum.ansible.com/t/using-dynamic-inventory-folder-with-vars-plugins-fails/17671)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 12:44am UTC](https://forum.ansible.com/t/using-dynamic-inventory-folder-with-vars-plugins-fails/17671 "2015-03-05T00:44:03Z")

</div>

I use different ansible canonical project directories to separate out devops from platform from deployment variables. Ansible affords gluing things together quite nicely using the roles\_path: in .ansible.cfg However,…

---

## [Problem utilizing Survey data in template](https://forum.ansible.com/t/problem-utilizing-survey-data-in-template/17657)

<div class="topic-metadata">

**Author:** [@Jay\_Turner](https://forum.ansible.com/u/Jay_Turner)\
**Replies:** 1\
**Last updated:** [March 3, 2015, 2:00pm UTC](https://forum.ansible.com/t/problem-utilizing-survey-data-in-template/17657 "2015-03-03T14:00:46Z")

</div>

I am using a survey (textarea) to prompt for one or more entity names, and then wish to loop through those names in a template, creating a stanza for each entity. But it seems that no matter what types of escaping/format…

---

## [New Module: nfsexport](https://forum.ansible.com/t/new-module-nfsexport/17651)

<div class="topic-metadata">

**Author:** [@Randy\_N](https://forum.ansible.com/u/Randy_N)\
**Replies:** 0\
**Last updated:** [March 2, 2015, 5:58pm UTC](https://forum.ansible.com/t/new-module-nfsexport/17651 "2015-03-02T17:58:03Z")

</div>

Hi all, I’ve (co)written a new module, nfsexport, for working with nfs export entries in /etc/exports. https://github.com/randynobx/ansible-modules-extras/blob/devel/system/nfsexport.py I plan on submitting a pull-req…

---

## [README in module dir](https://forum.ansible.com/t/readme-in-module-dir/17642)

<div class="topic-metadata">

**Author:** [@Monty\_Taylor](https://forum.ansible.com/u/Monty_Taylor)\
**Replies:** 1\
**Last updated:** [February 28, 2015, 7:21am UTC](https://forum.ansible.com/t/readme-in-module-dir/17642 "2015-02-28T07:21:36Z")

</div>

Hey all, As the new OpenStack modules start to land we’ll be in good shape to start pointing people at adding to the pile. With that, it made me think that having a README.md in cloud/openstack would be potentially usef…

---

## [math.py](https://forum.ansible.com/t/math-py/17561)

<div class="topic-metadata">

**Author:** [@Mick\_Bass](https://forum.ansible.com/u/Mick_Bass)\
**Replies:** 2\
**Last updated:** [February 28, 2015, 6:54am UTC](https://forum.ansible.com/t/math-py/17561 "2015-02-28T06:54:14Z")

</div>

I just responded to a closed issue at github, but its a slightly different flavor so I thought I’d mention it here to get some steer. https://github.com/ansible/ansible/issues/9833 We need to use some of the methods in…

---

## [noobie question: how use use ansbile binaries from a branch](https://forum.ansible.com/t/noobie-question-how-use-use-ansbile-binaries-from-a-branch/17640)

<div class="topic-metadata">

**Author:** [@Alexander\_Gray\_II](https://forum.ansible.com/u/Alexander_Gray_II)\
**Replies:** 3\
**Last updated:** [February 27, 2015, 9:26pm UTC](https://forum.ansible.com/t/noobie-question-how-use-use-ansbile-binaries-from-a-branch/17640 "2015-02-27T21:26:11Z")

</div>

I have a really dumb question. I installed ansible via pip. I have 1.8.4 installed and it works great. I want to try something out on the devel branch, so I “git clone https://github.com/ansible/ansible.git” And I try…

---

## [New module: GlusterFS](https://forum.ansible.com/t/new-module-glusterfs/16087)

<div class="topic-metadata">

**Author:** [@Taneli\_Leppa](https://forum.ansible.com/u/Taneli_Leppa)\
**Replies:** 9\
**Last updated:** [February 27, 2015, 2:28pm UTC](https://forum.ansible.com/t/new-module-glusterfs/16087 "2015-02-27T14:28:57Z")

</div>

Hello, I didn’t find any glusterfs modules for Ansible, so I wrote my own: https://github.com/rosmo/ansible-glusterfs -Taneli

---

## [Revisiting PowerShell DSC](https://forum.ansible.com/t/revisiting-powershell-dsc/17602)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 1\
**Last updated:** [February 24, 2015, 10:05am UTC](https://forum.ansible.com/t/revisiting-powershell-dsc/17602 "2015-02-24T10:05:56Z")

</div>

Hi all, If you’re on the Windows side, you probably know about PowerShell DSC, which is Microsoft’s up and coming config management engine. I’ve been quite sceptical to DSC for a long time, because of the way it tries t…

---

## [Docker Module Improvements/Discussion](https://forum.ansible.com/t/docker-module-improvements-discussion/17443)

<div class="topic-metadata">

**Author:** [@David\_Dyball](https://forum.ansible.com/u/David_Dyball)\
**Replies:** 4\
**Last updated:** [February 23, 2015, 10:43pm UTC](https://forum.ansible.com/t/docker-module-improvements-discussion/17443 "2015-02-23T22:43:08Z")

</div>

Hi All, I’ve just jumped back on the Ansible train after spending a long time working solely with Docker and noticed a few things I felt were lacking in the Docker module. I’m not the worlds best coder, but I am contemp…

---

## [module doc error? v1.9](https://forum.ansible.com/t/module-doc-error-v1-9/17588)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [February 22, 2015, 8:06pm UTC](https://forum.ansible.com/t/module-doc-error-v1-9/17588 "2015-02-22T20:06:06Z")

</div>

demo module from http://docs.ansible.com/developing\_modules.html failed on my mac with the 1.9 branch. missing something? regression? $ uname -a Darwin bonechar.socal.rr.com 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec…

---

## [WinRM broken in the current devel commit](https://forum.ansible.com/t/winrm-broken-in-the-current-devel-commit/17557)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 3\
**Last updated:** [February 22, 2015, 7:36am UTC](https://forum.ansible.com/t/winrm-broken-in-the-current-devel-commit/17557 "2015-02-22T07:36:49Z")

</div>

Hi all, I’ve been away from Ansible for a while and today when cloning the devel codebase to my computer WinRM stopped working: using logging I can see that it attempts to use http although i’ve set port to be 5896: \<1…

---

## [Playbook retry support](https://forum.ansible.com/t/playbook-retry-support/17585)

<div class="topic-metadata">

**Author:** [@Huy\_Le](https://forum.ansible.com/u/Huy_Le)\
**Replies:** 2\
**Last updated:** [February 21, 2015, 12:17am UTC](https://forum.ansible.com/t/playbook-retry-support/17585 "2015-02-21T00:17:49Z")

</div>

I am thinking of adding support to retry failed hosts in ansible-playbook cli. Is there any reason why we should not support that? Huy

---

## [Create EC2 instance by ansible with ec2: error: unrecognized arguments](https://forum.ansible.com/t/create-ec2-instance-by-ansible-with-ec2-error-unrecognized-arguments/17582)

<div class="topic-metadata">

**Author:** [@Xin\_Yi](https://forum.ansible.com/u/Xin_Yi)\
**Replies:** 0\
**Last updated:** [February 20, 2015, 8:00pm UTC](https://forum.ansible.com/t/create-ec2-instance-by-ansible-with-ec2-error-unrecognized-arguments/17582 "2015-02-20T20:00:57Z")

</div>

I am newbie to the ansible and follows, Deploying on EC2 with Ansible | DjaoDjin, to create a security group and an ec2 instance. The security group is created successfully, but creating ec2 instance is failed by ec2: er…

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

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