# Ansible Developer

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

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

**Page:** 90

---

## [Trying to create multiple groups, receiving generic YAML syntax error](https://forum.ansible.com/t/trying-to-create-multiple-groups-receiving-generic-yaml-syntax-error/14596)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [February 19, 2014, 2:27am UTC](https://forum.ansible.com/t/trying-to-create-multiple-groups-receiving-generic-yaml-syntax-error/14596 "2014-02-19T02:27:15Z")

</div>

Hi Lars, Looks like you need to start the play with “-” as the indent of 3 spaces to start is weird. Take a look at github.com/ansible/ansible-examples for a few examples. Also for future reference this is probably a …

---

## [Is this a register {{ variable }} bug?](https://forum.ansible.com/t/is-this-a-register-variable-bug/14423)

<div class="topic-metadata">

**Author:** [@Brent\_Langston1](https://forum.ansible.com/u/Brent_Langston1)\
**Replies:** 9\
**Last updated:** [February 18, 2014, 12:05pm UTC](https://forum.ansible.com/t/is-this-a-register-variable-bug/14423 "2014-02-18T12:05:31Z")

</div>

So I have two tasks, that, based on a conditional run a command and register the output to a variable name. It’s only possible to execute one task or the other – not both… but since both try to register the same variab…

---

## [Wrong variable resolution with multiple groups](https://forum.ansible.com/t/wrong-variable-resolution-with-multiple-groups/14587)

<div class="topic-metadata">

**Author:** [@Frank\_Laub](https://forum.ansible.com/u/Frank_Laub)\
**Replies:** 5\
**Last updated:** [February 18, 2014, 3:35am UTC](https://forum.ansible.com/t/wrong-variable-resolution-with-multiple-groups/14587 "2014-02-18T03:35:05Z")

</div>

I recently filed this issue and would like to discuss it here. https://github.com/ansible/ansible/issues/6048 My mental model is that a group represents a collection of hosts that I would like to treat in some similar …

---

## [Docker support for docker-py 1.6](https://forum.ansible.com/t/docker-support-for-docker-py-1-6/14555)

<div class="topic-metadata">

**Author:** [@Magnus\_Andersson](https://forum.ansible.com/u/Magnus_Andersson)\
**Replies:** 4\
**Last updated:** [February 17, 2014, 10:54pm UTC](https://forum.ansible.com/t/docker-support-for-docker-py-1-6/14555 "2014-02-17T22:54:21Z")

</div>

Hi What is the status for updating the support for newer Docker versions for the ansible-docker module? The currently shipped version seems to be outdated and won’t run with the latest docker-py library. I did a few q…

---

## [hacking/env-setup prefixes not working on Mac with Ansible install](https://forum.ansible.com/t/hacking-env-setup-prefixes-not-working-on-mac-with-ansible-install/14580)

<div class="topic-metadata">

**Author:** [@Magnus\_Andersson](https://forum.ansible.com/u/Magnus_Andersson)\
**Replies:** 5\
**Last updated:** [February 17, 2014, 8:52pm UTC](https://forum.ansible.com/t/hacking-env-setup-prefixes-not-working-on-mac-with-ansible-install/14580 "2014-02-17T20:52:20Z")

</div>

Hi hacking/env-setup does not work for me. I’m on a Mac with a previous installation of Ansible via homebrew. The cause is easy to spot, but I’m wondering if there is a specific reason why it is setup in this way. Befo…

---

## [Circular dependency issue in release 1.4 ?](https://forum.ansible.com/t/circular-dependency-issue-in-release-1-4/13977)

<div class="topic-metadata">

**Author:** [@Mathieu\_Leduc-Hamel](https://forum.ansible.com/u/Mathieu_Leduc-Hamel)\
**Replies:** 12\
**Last updated:** [February 15, 2014, 8:37pm UTC](https://forum.ansible.com/t/circular-dependency-issue-in-release-1-4/13977 "2014-02-15T20:37:03Z")

</div>

I’ve just upgrade my installation of ansible with the latest release and it seems there’s an issue with the callbacks module: Considering the following directory structure: ansible/ callbacks.py utils/ init.py call…

---

## [Help writing remote command result to file.](https://forum.ansible.com/t/help-writing-remote-command-result-to-file/14563)

<div class="topic-metadata">

**Author:** [@txemi](https://forum.ansible.com/u/txemi)\
**Replies:** 3\
**Last updated:** [February 14, 2014, 12:42am UTC](https://forum.ansible.com/t/help-writing-remote-command-result-to-file/14563 "2014-02-14T00:42:27Z")

</div>

I am having problems doing something I think it should be really easy. I am writting a rule that remote execs a command and I want the results stored locally. (It is an nmap command) I think I could do it two rules, on…

---

## [ansible-testing](https://forum.ansible.com/t/ansible-testing/14328)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 7\
**Last updated:** [February 13, 2014, 11:49pm UTC](https://forum.ansible.com/t/ansible-testing/14328 "2014-02-13T23:49:30Z")

</div>

Infrastructure testing is typically awkward and reliant on ruby gems (e.g. serverspec, cucumber). One of the things I’ve often dreamed of is a test framework that allows tests to be run both on the server being tested (…

---

## [Allow roles to be applied from the command line](https://forum.ansible.com/t/allow-roles-to-be-applied-from-the-command-line/14559)

<div class="topic-metadata">

**Author:** [@Bruno\_Lara\_Tavares](https://forum.ansible.com/u/Bruno_Lara_Tavares)\
**Replies:** 2\
**Last updated:** [February 13, 2014, 4:00pm UTC](https://forum.ansible.com/t/allow-roles-to-be-applied-from-the-command-line/14559 "2014-02-13T16:00:51Z")

</div>

Hi there, I just started using Ansible, and coming from other provisioning tools, I created several different roles. On the documentation you are able to run ansible webservers -m service -a "name=httpd state=running" …

---

## [Unit Testing modules like rax and ec2](https://forum.ansible.com/t/unit-testing-modules-like-rax-and-ec2/14522)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 2\
**Last updated:** [February 13, 2014, 1:13pm UTC](https://forum.ansible.com/t/unit-testing-modules-like-rax-and-ec2/14522 "2014-02-13T13:13:28Z")

</div>

James Tanner approached me about thinking of ways to unit test our cloud modules a day or so ago, and since then he and I have been chatting about ideas to make unit testing modules like rax and ec2 possible. Currently t…

---

## [Merging module library paths](https://forum.ansible.com/t/merging-module-library-paths/14518)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 8\
**Last updated:** [February 12, 2014, 2:16am UTC](https://forum.ansible.com/t/merging-module-library-paths/14518 "2014-02-12T02:16:53Z")

</div>

I run ansible from source, so my ANSIBLE\_LIBRARY is set using hacking/env-setup. However, I would like to be able to add additional libraries outside of ansible, without having a different env-setup (or not running it a…

---

## [acl module improvements](https://forum.ansible.com/t/acl-module-improvements/14546)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 2\
**Last updated:** [February 12, 2014, 1:30am UTC](https://forum.ansible.com/t/acl-module-improvements/14546 "2014-02-12T01:30:54Z")

</div>

I had a discussion start on my ansible forked repo as a PR, I think this might be of interest to more so I’m moving the discussion here. Linking this as a reference, please do not post on it (#githubwhishlist): https:/…

---

## [Ansible version age warning when using devel](https://forum.ansible.com/t/ansible-version-age-warning-when-using-devel/14513)

<div class="topic-metadata">

**Author:** [@William\_Jimenez](https://forum.ansible.com/u/William_Jimenez)\
**Replies:** 0\
**Last updated:** [February 6, 2014, 8:42pm UTC](https://forum.ansible.com/t/ansible-version-age-warning-when-using-devel/14513 "2014-02-06T20:42:08Z")

</div>

This falls under the nice to have category, but I can see it saving users debugging time to have a simple, periodic warning about the age of your local ansible checkout being greater than some threshold (for people runni…

---

## [variable precedence](https://forum.ansible.com/t/variable-precedence/14497)

<div class="topic-metadata">

**Author:** [@John\_Jarvis](https://forum.ansible.com/u/John_Jarvis)\
**Replies:** 2\
**Last updated:** [February 5, 2014, 7:39pm UTC](https://forum.ansible.com/t/variable-precedence/14497 "2014-02-05T19:39:02Z")

</div>

Variable precedence is causing me some pain right now and would love to fix for the way vars\_files currently works, all I want is for -e to always win which is not currently the case. Are we open to fixing this? The …

---

## [prototype of using setuptools to find packages and install scripts](https://forum.ansible.com/t/prototype-of-using-setuptools-to-find-packages-and-install-scripts/14491)

<div class="topic-metadata">

**Author:** [@Whit\_Morriss](https://forum.ansible.com/u/Whit_Morriss)\
**Replies:** 3\
**Last updated:** [February 5, 2014, 1:28am UTC](https://forum.ansible.com/t/prototype-of-using-setuptools-to-find-packages-and-install-scripts/14491 "2014-02-05T01:28:24Z")

</div>

I ran into a bit of a headache this morning trying wrap “ansible-playbook” into another python script I was writing. Rather than resort to mad refactoring (or execfile or subprocess), I thought it looked like a good fit …

---

## [teach netscaler module about HA clusters](https://forum.ansible.com/t/teach-netscaler-module-about-ha-clusters/14485)

<div class="topic-metadata">

**Author:** [@Howard\_Oettle](https://forum.ansible.com/u/Howard_Oettle)\
**Replies:** 0\
**Last updated:** [February 4, 2014, 12:19pm UTC](https://forum.ansible.com/t/teach-netscaler-module-about-ha-clusters/14485 "2014-02-04T12:19:25Z")

</div>

Netscaler appliances have the potential to be deployed in clusters for high availability - one node primary, one (or more) nodes secondary. Unfortunately this can lead to cases where a user (or ansible module) can log in…

---

## [python executable zip files as ansible modules](https://forum.ansible.com/t/python-executable-zip-files-as-ansible-modules/14455)

<div class="topic-metadata">

**Author:** [@Tim\_Butler1](https://forum.ansible.com/u/Tim_Butler1)\
**Replies:** 2\
**Last updated:** [January 29, 2014, 9:43pm UTC](https://forum.ansible.com/t/python-executable-zip-files-as-ansible-modules/14455 "2014-01-29T21:43:41Z")

</div>

If ansible modules truly can be written in any language, I would like that language to include “python executable zip files” :slight\_smile: so that my ansible modules can refer to python modules that I bundle with the…

---

## [Drupal or Drush users in the house?](https://forum.ansible.com/t/drupal-or-drush-users-in-the-house/14415)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas](https://forum.ansible.com/u/Jurgen_Haas)\
**Replies:** 3\
**Last updated:** [January 28, 2014, 5:18pm UTC](https://forum.ansible.com/t/drupal-or-drush-users-in-the-house/14415 "2014-01-28T17:18:00Z")

</div>

Using Ansible for server management and Drush for Drupal maintenance makes for a nice toolbox and in some circumstances I wonder which one to use. Started to think about a Drush module for Ansible, so that everything cou…

---

## [question? is there an equivalent to fqdn\_rand?](https://forum.ansible.com/t/question-is-there-an-equivalent-to-fqdn-rand/14437)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [January 27, 2014, 9:22pm UTC](https://forum.ansible.com/t/question-is-there-an-equivalent-to-fqdn-rand/14437 "2014-01-27T21:22:49Z")

</div>

It seems the pull request to add a random filter never quite got merged in just yet, because I think it got over-wraught with a user’s particular use case for using it with a given module in cron (thus making it confusin…

---

## [Vlan interfaces](https://forum.ansible.com/t/vlan-interfaces/14434)

<div class="topic-metadata">

**Author:** [@Jean-Pascal\_Tessier](https://forum.ansible.com/u/Jean-Pascal_Tessier)\
**Replies:** 2\
**Last updated:** [January 27, 2014, 1:40pm UTC](https://forum.ansible.com/t/vlan-interfaces/14434 "2014-01-27T13:40:06Z")

</div>

Hi, Usually vlan interfaces have a ‘.’ in their names. So it isn’t possible to get information (like address) from jinja form because ‘.’ is used to access attributes. Instead of having vlan interface like a physical i…

---

## [Could we read the ansible\_python\_interpreter from an environment variable?](https://forum.ansible.com/t/could-we-read-the-ansible-python-interpreter-from-an-environment-variable/14422)

<div class="topic-metadata">

**Author:** [@Joshua\_Conner](https://forum.ansible.com/u/Joshua_Conner)\
**Replies:** 1\
**Last updated:** [January 25, 2014, 12:05am UTC](https://forum.ansible.com/t/could-we-read-the-ansible-python-interpreter-from-an-environment-variable/14422 "2014-01-25T00:05:05Z")

</div>

You can set the ansible\_python\_interpreter for a host in the inventory file, but it would be nice if I it would read this in from an $ANSIBLE\_PYTHON\_INTERPRETER environment variable. I use homebrew-ed Python on my local …

---

## [Using compiled modules in Ansible?](https://forum.ansible.com/t/using-compiled-modules-in-ansible/14409)

<div class="topic-metadata">

**Author:** [@jcoats](https://forum.ansible.com/u/jcoats)\
**Replies:** 1\
**Last updated:** [January 23, 2014, 9:09pm UTC](https://forum.ansible.com/t/using-compiled-modules-in-ansible/14409 "2014-01-23T21:09:11Z")

</div>

I’ve been using Ansible lately and needed to be able to copy over Ansible modules that are compiled to executable binaries. While bash scripts, etc., work fine, it looks like Ansible runner’s \_transfer\_str() method that’…

---

## [uses\_facts in role meta ?](https://forum.ansible.com/t/uses-facts-in-role-meta/14382)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [January 23, 2014, 11:46am UTC](https://forum.ansible.com/t/uses-facts-in-role-meta/14382 "2014-01-23T11:46:52Z")

</div>

Hi It may be useful to know if a role depends on facts. IMHO this is not yet implemented. roles/meta/main.yml uses\_facts: yes Feedback?

---

## [Add dns name support to ec2](https://forum.ansible.com/t/add-dns-name-support-to-ec2/14394)

<div class="topic-metadata">

**Author:** [@Alexander\_Petrovsky](https://forum.ansible.com/u/Alexander_Petrovsky)\
**Replies:** 0\
**Last updated:** [January 21, 2014, 7:12pm UTC](https://forum.ansible.com/t/add-dns-name-support-to-ec2/14394 "2014-01-21T19:12:30Z")

</div>

Hello! About 5 days ago I submitted the pull request (#5663) that add support dns name to ec2 module. Can anyone look at the code and make review. Is it good idea or not?

---

## [Transfer SQL file, then use it in module to execute queries against PostgreSQL](https://forum.ansible.com/t/transfer-sql-file-then-use-it-in-module-to-execute-queries-against-postgresql/14389)

<div class="topic-metadata">

**Author:** [@Augustus\_Kling](https://forum.ansible.com/u/Augustus_Kling)\
**Replies:** 1\
**Last updated:** [January 21, 2014, 12:07am UTC](https://forum.ansible.com/t/transfer-sql-file-then-use-it-in-module-to-execute-queries-against-postgresql/14389 "2014-01-21T00:07:14Z")

</div>

Hello all, I tried to execute SQL queries to set up a database with contents as part of a playbook. After doing so with a combination of the existing modules I created a small module to conditionally execute a SQL file …

---

## [su support](https://forum.ansible.com/t/su-support/14276)

<div class="topic-metadata">

**Author:** [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Replies:** 2\
**Last updated:** [January 20, 2014, 6:15pm UTC](https://forum.ansible.com/t/su-support/14276 "2014-01-20T18:15:51Z")

</div>

Good Morning Dev List, I’m just writing to check out your feedback on https://github.com/ansible/ansible/pull/5325, which adds support for su. I ask for a few reasons: there’s an impending release, and because I did a r…

---

## [Variable used to call a handler](https://forum.ansible.com/t/variable-used-to-call-a-handler/14386)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 0\
**Last updated:** [January 20, 2014, 4:14pm UTC](https://forum.ansible.com/t/variable-used-to-call-a-handler/14386 "2014-01-20T16:14:13Z")

</div>

I don't have an answer, but I am curious if it works if you set it as a host level fact (set\_fact). Those should carry through between plays and handlers. -jlk

---

## [ssh\_alt & tty](https://forum.ansible.com/t/ssh-alt-tty/14367)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 3\
**Last updated:** [January 19, 2014, 12:29am UTC](https://forum.ansible.com/t/ssh-alt-tty/14367 "2014-01-19T00:29:45Z")

</div>

Hello, I saw that ssh alt replaced ssh on devel :-)) great news + that at this stage it must be activated with pipelining = True because of a doubt on tty. Have you seen problems related to that ? For information, fro…

---

## [Ec2 spot instance module](https://forum.ansible.com/t/ec2-spot-instance-module/14363)

<div class="topic-metadata">

**Author:** [@Seth\_Edwards](https://forum.ansible.com/u/Seth_Edwards)\
**Replies:** 0\
**Last updated:** [January 16, 2014, 7:58pm UTC](https://forum.ansible.com/t/ec2-spot-instance-module/14363 "2014-01-16T19:58:25Z")

</div>

I’m looking for feedback for writing a module for ec2 spot instances. The main responsibility the process of creating a spot instance request and waiting for approval. It could also potentially cancel requests etc. These…

---

## [Ask for sudo password on-demand/Why does ansible run sudo -k?](https://forum.ansible.com/t/ask-for-sudo-password-on-demand-why-does-ansible-run-sudo-k/14347)

<div class="topic-metadata">

**Author:** [@Till\_Maas](https://forum.ansible.com/u/Till_Maas)\
**Replies:** 10\
**Last updated:** [January 16, 2014, 3:24pm UTC](https://forum.ansible.com/t/ask-for-sudo-password-on-demand-why-does-ansible-run-sudo-k/14347 "2014-01-16T15:24:38Z")

</div>

Hi, I want to use ansible with systems where sudo requires a password, but I would also avoid to enter it always. Since ansible runs "sudo -k" before the actual sudo command, it always requires a password. The option …

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

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