# Ansible Developer

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

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

**Page:** 87

---

## [Request for merging PR #7278](https://forum.ansible.com/t/request-for-merging-pr-7278/15384)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 3\
**Last updated:** [June 8, 2014, 5:08pm UTC](https://forum.ansible.com/t/request-for-merging-pr-7278/15384 "2014-06-08T17:08:16Z")

</div>

Hello, An example is welcomed, but I don't want to see it sprawling in the commit message, and I still find this hard to understand. As such I think this does not fit our complexity threshold criteria. First of all…

---

## [Use plugin inventory ini in module](https://forum.ansible.com/t/use-plugin-inventory-ini-in-module/15381)

<div class="topic-metadata">

**Author:** [@Martin\_Johren](https://forum.ansible.com/u/Martin_Johren)\
**Replies:** 4\
**Last updated:** [June 6, 2014, 3:21pm UTC](https://forum.ansible.com/t/use-plugin-inventory-ini-in-module/15381 "2014-06-06T15:21:20Z")

</div>

Hi, I have a question regarding the ini files in the plugin inventory section: Since I want to use the same config file to define a cloud username + api key for a module and an inventory plugin I would like to provide …

---

## [python requirements](https://forum.ansible.com/t/python-requirements/15416)

<div class="topic-metadata">

**Author:** [@Sean\_McGowan](https://forum.ansible.com/u/Sean_McGowan)\
**Replies:** 3\
**Last updated:** [June 6, 2014, 2:29pm UTC](https://forum.ansible.com/t/python-requirements/15416 "2014-06-06T14:29:31Z")

</div>

Hi all, I can successfully compile python on some of my solaris boxes (they will be clients); however, the ctypes module is failing… is this module necessary for them to be ansible clients? thanks

---

## [Loading custom jinja2 filters use system python instead of ansible\_python\_interpreter in 1.6.2](https://forum.ansible.com/t/loading-custom-jinja2-filters-use-system-python-instead-of-ansible-python-interpreter-in-1-6-2/15380)

<div class="topic-metadata">

**Author:** [@Lars\_Vonk](https://forum.ansible.com/u/Lars_Vonk)\
**Replies:** 1\
**Last updated:** [June 6, 2014, 11:57am UTC](https://forum.ansible.com/t/loading-custom-jinja2-filters-use-system-python-instead-of-ansible-python-interpreter-in-1-6-2/15380 "2014-06-06T11:57:11Z")

</div>

Hi, I just upgraded Ansible from 1.4 → 1.6.2 and noticed that one of our custom jinja 2 plugins configured in filter\_plugins/custom\_plugins.py no longer works since a used module is not in the system python. The plugin …

---

## [Sendgrid module](https://forum.ansible.com/t/sendgrid-module/15376)

<div class="topic-metadata">

**Author:** [@Matthew\_Makai](https://forum.ansible.com/u/Matthew_Makai)\
**Replies:** 1\
**Last updated:** [June 6, 2014, 11:54am UTC](https://forum.ansible.com/t/sendgrid-module/15376 "2014-06-06T11:54:52Z")

</div>

Hey folks, while at AnsibleFest I mentioned a pull request for a Sendgrid module that sends email through their API. However, I realized I never started a discussion topic on this pull request. The API is used in this m…

---

## [mutually exclusive options](https://forum.ansible.com/t/mutually-exclusive-options/15411)

<div class="topic-metadata">

**Author:** [@Stanley\_Kamithi](https://forum.ansible.com/u/Stanley_Kamithi)\
**Replies:** 1\
**Last updated:** [June 5, 2014, 4:13pm UTC](https://forum.ansible.com/t/mutually-exclusive-options/15411 "2014-06-05T16:13:07Z")

</div>

Need some advice on module syntax I want to do this: cl\_interface name=br0 bridgemems=(list of bridge ports) ipv4=‘10.1.1.1/24’ cl\_interface name=bond0 bondmems=(list of bond members) ipv4=‘10.2.2.2/24’ the bondmems …

---

## [chaining modules](https://forum.ansible.com/t/chaining-modules/15355)

<div class="topic-metadata">

**Author:** [@Hans\_Donner](https://forum.ansible.com/u/Hans_Donner)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 3:45pm UTC](https://forum.ansible.com/t/chaining-modules/15355 "2014-05-28T15:45:08Z")

</div>

Hi, Im looking for a way to invoke existing modules from another module, where the invoking module will provide the needed params and receives the results. This is to use a generic module in roles: without duplicatin…

---

## [Suitable - A wrapper to simplify the Ansible API](https://forum.ansible.com/t/suitable-a-wrapper-to-simplify-the-ansible-api/15291)

<div class="topic-metadata">

**Author:** [@Denis\_Krienbuhl](https://forum.ansible.com/u/Denis_Krienbuhl)\
**Replies:** 7\
**Last updated:** [May 28, 2014, 2:02pm UTC](https://forum.ansible.com/t/suitable-a-wrapper-to-simplify-the-ansible-api/15291 "2014-05-28T14:02:41Z")

</div>

Hi! I wrote a thing which makes the Ansible API easier to use: https://github.com/seantis/suitable We mostly use Puppet for provisioning in our company, but we maintain a number of scripts which do migrations or glue …

---

## [Is there a way to "access" to each host specific variables outside it's scope?](https://forum.ansible.com/t/is-there-a-way-to-access-to-each-host-specific-variables-outside-its-scope/15331)

<div class="topic-metadata">

**Author:** [@Uri\_Miller](https://forum.ansible.com/u/Uri_Miller)\
**Replies:** 3\
**Last updated:** [May 28, 2014, 1:33pm UTC](https://forum.ansible.com/t/is-there-a-way-to-access-to-each-host-specific-variables-outside-its-scope/15331 "2014-05-28T13:33:28Z")

</div>

Hey all I’m having difficulties to find out how to perform this task which hopefully will be simple: I am running a playbook over a set of servers, then after a while I need to construct a command that will use variabl…

---

## [invalid output was: Traceback - KeyError: 'ApiVersion'](https://forum.ansible.com/t/invalid-output-was-traceback-keyerror-apiversion/15336)

<div class="topic-metadata">

**Author:** [@Thomas\_Hector](https://forum.ansible.com/u/Thomas_Hector)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 1:30pm UTC](https://forum.ansible.com/t/invalid-output-was-traceback-keyerror-apiversion/15336 "2014-05-28T13:30:19Z")

</div>

Hey, I’m running ansible(1.6.1) on a ubuntu 12.04 and trying to start containers through the ansible docker module. The Docker host machine is a 14.04 with Docker 0.9.1 and docker-py. Building the image through ansibl…

---

## [Ansible and Google Docker Manifest](https://forum.ansible.com/t/ansible-and-google-docker-manifest/15347)

<div class="topic-metadata">

**Author:** [@Magnus\_Andersson](https://forum.ansible.com/u/Magnus_Andersson)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 1:22pm UTC](https://forum.ansible.com/t/ansible-and-google-docker-manifest/15347 "2014-05-28T13:22:36Z")

</div>

Hi I’m having troubles adding a metadata key/value where the value is a multiline string when provisioning with the gce module. I just can’t get it to work from Ansible, I get the error: bad metadata: malformed string. …

---

## [About keeping the environment untouched when calling the service module on Linux (PR #7552)](https://forum.ansible.com/t/about-keeping-the-environment-untouched-when-calling-the-service-module-on-linux-pr-7552/15342)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 2\
**Last updated:** [May 28, 2014, 8:40am UTC](https://forum.ansible.com/t/about-keeping-the-environment-untouched-when-calling-the-service-module-on-linux-pr-7552/15342 "2014-05-28T08:40:44Z")

</div>

Hello, I am responding with reference to github PR #7552 on this list as requested by Michael Dehaan. I wrote this small patch in order to allow passing environmental variables with the ‘environment:’ key in tasks call…

---

## [Check if line matches the regex in lineinfile module](https://forum.ansible.com/t/check-if-line-matches-the-regex-in-lineinfile-module/15339)

<div class="topic-metadata">

**Author:** [@Alexander\_Thaller](https://forum.ansible.com/u/Alexander_Thaller)\
**Replies:** 1\
**Last updated:** [May 27, 2014, 6:20pm UTC](https://forum.ansible.com/t/check-if-line-matches-the-regex-in-lineinfile-module/15339 "2014-05-27T18:20:32Z")

</div>

Would it be possile to print a warning if the regexp of lineinfile wont match the given line? It think there is almost never an usecase where the regex wont match the line so maybe adding an option to the lineinfile mod…

---

## [Template and copy modules failing when using su](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15284)

<div class="topic-metadata">

**Author:** [@George\_Simpson1](https://forum.ansible.com/u/George_Simpson1)\
**Replies:** 2\
**Last updated:** [May 26, 2014, 8:03pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15284 "2014-05-26T20:03:29Z")

</div>

Template and copy modules fail when using su with the message: {“msg”: “Could not replace file: /tmp/ansible-tmp-1400646411.03-30275482183570/source to /tmp/ans\_test/gsdummy.txt: \[Errno 13\] Permission denied: ‘/tmp/ansi…

---

## [Ansible doesn't appear to cache sudo auth for each task in a playbook... is this correct?](https://forum.ansible.com/t/ansible-doesnt-appear-to-cache-sudo-auth-for-each-task-in-a-playbook-is-this-correct/15155)

<div class="topic-metadata">

**Author:** [@Bowen\_Denning](https://forum.ansible.com/u/Bowen_Denning)\
**Replies:** 5\
**Last updated:** [May 25, 2014, 9:29pm UTC](https://forum.ansible.com/t/ansible-doesnt-appear-to-cache-sudo-auth-for-each-task-in-a-playbook-is-this-correct/15155 "2014-05-25T21:29:34Z")

</div>

Hey all, I’m hoping to use Ansible playbooks to automate a few tasks on my home network. My problem is that I use 2FA for authentication on all of my servers (using Yubikey). I’m quite happy to use key-based authenticat…

---

## [Is it possible to call a module from a module?](https://forum.ansible.com/t/is-it-possible-to-call-a-module-from-a-module/15259)

<div class="topic-metadata">

**Author:** [@Sean\_Cavanaugh](https://forum.ansible.com/u/Sean_Cavanaugh)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 9:20pm UTC](https://forum.ansible.com/t/is-it-possible-to-call-a-module-from-a-module/15259 "2014-05-25T21:20:46Z")

</div>

I am new to developing modules, I am writing a module that will license our switches (Cumulus Linux) and I see that there are other modules that I could potentially leverage. Rather than copying and pasting their code in…

---

## [I would like to convert my BASH scripts to Ansible User Modules](https://forum.ansible.com/t/i-would-like-to-convert-my-bash-scripts-to-ansible-user-modules/15255)

<div class="topic-metadata">

**Author:** [@JohnP](https://forum.ansible.com/u/JohnP)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 9:20pm UTC](https://forum.ansible.com/t/i-would-like-to-convert-my-bash-scripts-to-ansible-user-modules/15255 "2014-05-25T21:20:10Z")

</div>

Hi All, I have written some BASH ;( scripts that collects some information and shows them “very” human friendly and colourful format. Via Aws Cli, json processing etc. An obfuscated example as below for displaying the…

---

## [Ansible Vault needs an .ansible.cfg entry](https://forum.ansible.com/t/ansible-vault-needs-an-ansible-cfg-entry/15282)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 5\
**Last updated:** [May 21, 2014, 9:38pm UTC](https://forum.ansible.com/t/ansible-vault-needs-an-ansible-cfg-entry/15282 "2014-05-21T21:38:46Z")

</div>

As was detailed in: https://github.com/ansible/ansible/issues/6980 and https://github.com/ansible/ansible/issues/7456 This really needs to go in the ansible config. Having to manually type/copy this on every run, par…

---

## [Template and Copy modules failing when using su](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 4:35pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290 "2014-05-21T16:35:06Z")

</div>

I thought this would be the case when su got introduced, I just forgot that atomic copy had the check. You are absolutely correct, the check should be for both sudo and su, it is probably needed in more spots than just a…

---

## [get\_url - counterintuitive that it re-downloads if "dest" is a directory](https://forum.ansible.com/t/get-url-counterintuitive-that-it-re-downloads-if-dest-is-a-directory/15248)

<div class="topic-metadata">

**Author:** [@edrozenberg](https://forum.ansible.com/u/edrozenberg)\
**Replies:** 2\
**Last updated:** [May 15, 2014, 6:29pm UTC](https://forum.ansible.com/t/get-url-counterintuitive-that-it-re-downloads-if-dest-is-a-directory/15248 "2014-05-15T18:29:07Z")

</div>

Hello, I noticed that my get\_url calls were taking a long time even if the file was already downloaded. After digging in the docs I found the following: “If dest is a directory, the file will always be downloaded (reg…

---

## [Ad hoc commands are not returning to the prompt?](https://forum.ansible.com/t/ad-hoc-commands-are-not-returning-to-the-prompt/15217)

<div class="topic-metadata">

**Author:** [@Robin\_Speekenbrink](https://forum.ansible.com/u/Robin_Speekenbrink)\
**Replies:** 8\
**Last updated:** [May 14, 2014, 2:26pm UTC](https://forum.ansible.com/t/ad-hoc-commands-are-not-returning-to-the-prompt/15217 "2014-05-14T14:26:42Z")

</div>

Hi everyone, Just started out using Ansible for managing our various hosts / docker containers etc… The only problem i have whilst testing this: all my ad-hoc commands never finish :slight\_smile: just a simple ‘ansible…

---

## [Ansible test-module corrupting executable before execution](https://forum.ansible.com/t/ansible-test-module-corrupting-executable-before-execution/15205)

<div class="topic-metadata">

**Author:** [@Roberto\_Aloi](https://forum.ansible.com/u/Roberto_Aloi)\
**Replies:** 2\
**Last updated:** [May 14, 2014, 5:37am UTC](https://forum.ansible.com/t/ansible-test-module-corrupting-executable-before-execution/15205 "2014-05-14T05:37:37Z")

</div>

I’m working on a new Ansible module and I would like to use the Ansible test-module script to verify it works, as explained in the official ansible documentation. The executable is standalone and it works as expected on…

---

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

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [May 13, 2014, 11:43pm UTC](https://forum.ansible.com/t/vsphere-guest-vm-from-template/15226 "2014-05-13T23:43:16Z")

</div>

“If there are no plans, currently, then I’m happy to work on it and submit a pull request when it’s done.” Make it so, #1!

---

## [Installation auditing](https://forum.ansible.com/t/installation-auditing/15162)

<div class="topic-metadata">

**Author:** [@Guy\_Sabourin](https://forum.ansible.com/u/Guy_Sabourin)\
**Replies:** 8\
**Last updated:** [May 8, 2014, 3:26am UTC](https://forum.ansible.com/t/installation-auditing/15162 "2014-05-08T03:26:38Z")

</div>

I’ve developed a partial auditing function in another in-house orchestration tool that I also wrote and am thinking of porting and completing this feature for ansible. Basically, auditing is a means by which we’re able …

---

## [Give the ec2\_tag module the ability to search for EC2 resources by tag](https://forum.ansible.com/t/give-the-ec2-tag-module-the-ability-to-search-for-ec2-resources-by-tag/15194)

<div class="topic-metadata">

**Author:** [@herby.gillot1](https://forum.ansible.com/u/herby.gillot1)\
**Replies:** 1\
**Last updated:** [May 7, 2014, 9:24pm UTC](https://forum.ansible.com/t/give-the-ec2-tag-module-the-ability-to-search-for-ec2-resources-by-tag/15194 "2014-05-07T21:24:44Z")

</div>

Hello all. Here’s a pull request that gives the EC2 module the ability to search for resources on EC2 per the specified tags. https://github.com/ansible/ansible/pull/7326

---

## [cannot re-import galaxy role](https://forum.ansible.com/t/cannot-re-import-galaxy-role/15176)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 1\
**Last updated:** [May 6, 2014, 9:16pm UTC](https://forum.ansible.com/t/cannot-re-import-galaxy-role/15176 "2014-05-06T21:16:39Z")

</div>

Hey All, I seem to hae a “stuck” role in galaxy. I see “Import task pending.” as the status - but that never goes away. I cannot re-import newer versions of the role. Other roles work just fine. This is the role I am r…

---

## [Can I create host group aliases when using EC2 inventory?](https://forum.ansible.com/t/can-i-create-host-group-aliases-when-using-ec2-inventory/15143)

<div class="topic-metadata">

**Author:** [@Darren\_Hobbs](https://forum.ansible.com/u/Darren_Hobbs)\
**Replies:** 4\
**Last updated:** [May 6, 2014, 3:41am UTC](https://forum.ansible.com/t/can-i-create-host-group-aliases-when-using-ec2-inventory/15143 "2014-05-06T03:41:56Z")

</div>

Hi, I’ve got an existing inventory file that hard-codes our EC2 hosts. I’m trying to move over to the dynamic inventory, using tags. The problem I have is that all my roles refer to hosts such as ‘webservers’, ‘logstash…

---

## [Prompt for Sudo Password Only When Needed?](https://forum.ansible.com/t/prompt-for-sudo-password-only-when-needed/15137)

<div class="topic-metadata">

**Author:** [@dannyman](https://forum.ansible.com/u/dannyman)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 10:31pm UTC](https://forum.ansible.com/t/prompt-for-sudo-password-only-when-needed/15137 "2014-05-01T22:31:54Z")

</div>

Hello, I wrote a little playbook to: copy config files over run a check command if check command runs okay, restart a daemon. The config files are writeable by my local user. (Actually, group write, so a team can man…

---

## [Problems with the ec2\_vol task](https://forum.ansible.com/t/problems-with-the-ec2-vol-task/15112)

<div class="topic-metadata">

**Author:** [@Bryan\_Hunt](https://forum.ansible.com/u/Bryan_Hunt)\
**Replies:** 2\
**Last updated:** [May 1, 2014, 1:15am UTC](https://forum.ansible.com/t/problems-with-the-ec2-vol-task/15112 "2014-05-01T01:15:30Z")

</div>

I'm wondering if I am misusing the ec2\_vol task or if I've found a bug. In my playbook, I create 5 ec2 instances. I then try to attach volumes to them. tasks: - name: get em runnning local\_action: …

---

## [Executing shell script on remote machine not working](https://forum.ansible.com/t/executing-shell-script-on-remote-machine-not-working/15108)

<div class="topic-metadata">

**Author:** [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Replies:** 1\
**Last updated:** [April 29, 2014, 12:50pm UTC](https://forum.ansible.com/t/executing-shell-script-on-remote-machine-not-working/15108 "2014-04-29T12:50:16Z")

</div>

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

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