# Ansible Developer

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

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

**Page:** 81

---

## [Connection backend to manage remote LXC containers](https://forum.ansible.com/t/connection-backend-to-manage-remote-lxc-containers/16636)

<div class="topic-metadata">

**Author:** [@Gu1](https://forum.ansible.com/u/Gu1)\
**Replies:** 3\
**Last updated:** [November 1, 2014, 2:54pm UTC](https://forum.ansible.com/t/connection-backend-to-manage-remote-lxc-containers/16636 "2014-11-01T14:54:24Z")

</div>

Hello, I recently submitted a pull request to add support for managing LXC containers with ansible by directly ssh'ing on the host. The pull request contains some change to the ssh connection plugin, and while it sho…

---

## [configure your docker with ansible](https://forum.ansible.com/t/configure-your-docker-with-ansible/16579)

<div class="topic-metadata">

**Author:** [@Michael\_Bitard](https://forum.ansible.com/u/Michael_Bitard)\
**Replies:** 10\
**Last updated:** [November 1, 2014, 12:41pm UTC](https://forum.ansible.com/t/configure-your-docker-with-ansible/16579 "2014-11-01T12:41:52Z")

</div>

Hi ansible-users, I have a little problem with my use case. I use ansible to create a docker instance with an random ssh port open I use ansible to customize the docker instance newly created I can’t specify the ssh …

---

## [How To Write Simple Messages To The Screen In A Module?](https://forum.ansible.com/t/how-to-write-simple-messages-to-the-screen-in-a-module/16641)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 3\
**Last updated:** [October 31, 2014, 3:04pm UTC](https://forum.ansible.com/t/how-to-write-simple-messages-to-the-screen-in-a-module/16641 "2014-10-31T15:04:53Z")

</div>

Hi, I’m writing a small module in Python. What is the preferred way to write informational (i.e. non-error) messages to the user’s screen while the module runs? The methods “fail\_json” and “exit\_json” both cause the mod…

---

## [plugin deprecation and aliasing](https://forum.ansible.com/t/plugin-deprecation-and-aliasing/16625)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 6\
**Last updated:** [October 30, 2014, 7:14pm UTC](https://forum.ansible.com/t/plugin-deprecation-and-aliasing/16625 "2014-10-30T19:14:18Z")

</div>

So I have a branch with an update to the plugin loader, this should now enable renaming and deprecating plugins. https://github.com/bcoca/ansible/tree/load\_aliases To deprecate a module just rename it with a leading un…

---

## [Found Bug in current ansible Version in git](https://forum.ansible.com/t/found-bug-in-current-ansible-version-in-git/16634)

<div class="topic-metadata">

**Author:** [@Joachim\_Setzer](https://forum.ansible.com/u/Joachim_Setzer)\
**Replies:** 3\
**Last updated:** [October 30, 2014, 5:19pm UTC](https://forum.ansible.com/t/found-bug-in-current-ansible-version-in-git/16634 "2014-10-30T17:19:29Z")

</div>

Hi all, I have chacked out current ansible Version: ansible 1.8 (devel cd9ea13716) last updated 2014/10/28 22:08:28 (GMT +200) lib/ansible/modules/core: (devel 63e81cfc2e) last updated 2014/10/28 22:08:12 (GMT +200) …

---

## [\[bug\] host-pattern rule do not compatible with older versions](https://forum.ansible.com/t/bug-host-pattern-rule-do-not-compatible-with-older-versions/16632)

<div class="topic-metadata">

**Author:** [@Bob\_Chen](https://forum.ansible.com/u/Bob_Chen)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 5:15pm UTC](https://forum.ansible.com/t/bug-host-pattern-rule-do-not-compatible-with-older-versions/16632 "2014-10-30T17:15:46Z")

</div>

in older versions, list\_host = re.search(group.name) + re.search(host.name) in version 1.7.2, list\_host = re.search(group.name) + re.match(host.name) for example, in v1.6 \[chengshengbo@sd-ml-im-tool01 tmp\]$ ansible …

---

## [Configure your docker with ansible without ssh](https://forum.ansible.com/t/configure-your-docker-with-ansible-without-ssh/16624)

<div class="topic-metadata">

**Author:** [@Michael\_Bitard](https://forum.ansible.com/u/Michael_Bitard)\
**Replies:** 3\
**Last updated:** [October 30, 2014, 5:12pm UTC](https://forum.ansible.com/t/configure-your-docker-with-ansible-without-ssh/16624 "2014-10-30T17:12:47Z")

</div>

Hi, I used a lot ansible\_connection=chroot to configure a chroot on some of my hosts and I think this would be a nice feature if we were capable of launching an ansible playbook to configure a docker, but from the host …

---

## [Better OpenStack Support](https://forum.ansible.com/t/better-openstack-support/15768)

<div class="topic-metadata">

**Author:** [@Tyler\_North](https://forum.ansible.com/u/Tyler_North)\
**Replies:** 20\
**Last updated:** [October 30, 2014, 5:08pm UTC](https://forum.ansible.com/t/better-openstack-support/15768 "2014-10-30T17:08:31Z")

</div>

Hi all, I submitted a pull request to add more openstack support here: https://github.com/ansible/ansible/pull/8252 I was asked to open the topic to more discussion so… discuss I suppose! Please feel free to contact m…

---

## [Further EC2 module refactorings](https://forum.ansible.com/t/further-ec2-module-refactorings/14561)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 11\
**Last updated:** [October 28, 2014, 5:09pm UTC](https://forum.ansible.com/t/further-ec2-module-refactorings/14561 "2014-10-28T17:09:29Z")

</div>

I’ve added security\_token and profile\_name support (the latter only works with boto \> 2.24, but that is checked) to the module\_utils/ec2.py, along with an alternative mechanism to get\_ec2\_creds. I think the next step wi…

---

## [Using python2 instead of python in shebang lines](https://forum.ansible.com/t/using-python2-instead-of-python-in-shebang-lines/16586)

<div class="topic-metadata">

**Author:** [@Maykel\_Moya](https://forum.ansible.com/u/Maykel_Moya)\
**Replies:** 4\
**Last updated:** [October 25, 2014, 10:46pm UTC](https://forum.ansible.com/t/using-python2-instead-of-python-in-shebang-lines/16586 "2014-10-25T22:46:01Z")

</div>

Hi Given that the requirement for the management host is py2.6+ and PEP394\[1\] has been around some time now, would you consider using '#!/usr/bin/env python2' instead of '#!/usr/bin/env python' in bin/\*? I can submit…

---

## [cloudformation module: list resources in results?](https://forum.ansible.com/t/cloudformation-module-list-resources-in-results/16582)

<div class="topic-metadata">

**Author:** [@Dan\_Farrell](https://forum.ansible.com/u/Dan_Farrell)\
**Replies:** 2\
**Last updated:** [October 25, 2014, 3:51am UTC](https://forum.ansible.com/t/cloudformation-module-list-resources-in-results/16582 "2014-10-25T03:51:33Z")

</div>

As a cloudformation user, I usually interact with stack resources via their Logical Resource ID (that is to day, their ‘name’ in the cloud formation template). However, the cloudformation module doesn’t seem to provide t…

---

## [With much thanks, welcome new cloud module lieutant/czar/santa-helpers](https://forum.ansible.com/t/with-much-thanks-welcome-new-cloud-module-lieutant-czar-santa-helpers/16607)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 2\
**Last updated:** [October 25, 2014, 2:21am UTC](https://forum.ansible.com/t/with-much-thanks-welcome-new-cloud-module-lieutant-czar-santa-helpers/16607 "2014-10-25T02:21:37Z")

</div>

Hi all, (Feel like I’ve sent this note but apparently I have not) Good news! I’ve recently added a few folks with commit access to the ansible-modules-core and ansible-modules-extras repos. These are: Eric Johnson - …

---

## [Creating a pull request for snmp\_facts module and suggestions](https://forum.ansible.com/t/creating-a-pull-request-for-snmp-facts-module-and-suggestions/16592)

<div class="topic-metadata">

**Author:** [@Patrick\_Ogenstad](https://forum.ansible.com/u/Patrick_Ogenstad)\
**Replies:** 1\
**Last updated:** [October 25, 2014, 1:56am UTC](https://forum.ansible.com/t/creating-a-pull-request-for-snmp-facts-module-and-suggestions/16592 "2014-10-25T01:56:05Z")

</div>

I’ve created an Ansible module which can gather Ansible facts from SNMP enabled devices. I’ve written about the module here: http://networklore.com/ansible-snmp-facts/ It was suggested on Twitter that I created a pull …

---

## [Trying not to repeat vars but keep roles general purpose.](https://forum.ansible.com/t/trying-not-to-repeat-vars-but-keep-roles-general-purpose/16299)

<div class="topic-metadata">

**Author:** [@Owen\_Zanzal](https://forum.ansible.com/u/Owen_Zanzal)\
**Replies:** 4\
**Last updated:** [October 24, 2014, 9:55pm UTC](https://forum.ansible.com/t/trying-not-to-repeat-vars-but-keep-roles-general-purpose/16299 "2014-10-24T21:55:41Z")

</div>

Hello, I have been using Ansible in production for about a year now. I use it for both configuration management and deployments. I created a bunch of cruft since I was learning Ansible at the time and now trying to clea…

---

## [advice requested: multiple repository pull-request](https://forum.ansible.com/t/advice-requested-multiple-repository-pull-request/16589)

<div class="topic-metadata">

**Author:** [@Walter\_Franzini](https://forum.ansible.com/u/Walter_Franzini)\
**Replies:** 1\
**Last updated:** [October 23, 2014, 5:06pm UTC](https://forum.ansible.com/t/advice-requested-multiple-repository-pull-request/16589 "2014-10-23T17:06:51Z")

</div>

Hi, I'm going to look if I can implement vault encryption for files and templates, however I'm not sure out to ask for pull-request of changes to copy/templates modules and to the relevant tests, since tests/ is in a…

---

## [docker module introduced breaking change in v 1.8](https://forum.ansible.com/t/docker-module-introduced-breaking-change-in-v-1-8/16581)

<div class="topic-metadata">

**Author:** [@Hans\_Donner](https://forum.ansible.com/u/Hans_Donner)\
**Replies:** 1\
**Last updated:** [October 22, 2014, 7:28pm UTC](https://forum.ansible.com/t/docker-module-introduced-breaking-change-in-v-1-8/16581 "2014-10-22T19:28:16Z")

</div>

With v1.8 the format of the env parameter is changed from list to dict. The change was done after a bug report re the following (ansible/ansible#8199): env="PG\_ROLE=master, PG\_PORT=5432, PG\_ENABLE\_ARCHIVING=1, PG\_ENABL…

---

## [Command task with args](https://forum.ansible.com/t/command-task-with-args/16532)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 4\
**Last updated:** [October 22, 2014, 7:59am UTC](https://forum.ansible.com/t/command-task-with-args/16532 "2014-10-22T07:59:29Z")

</div>

I have a task like this: name: Run migrations sudo: yes sudo\_user: postgres command: “goose -env foo up” args: chdir: “{{ migrations\_dir }}” when I updated to the head of ansible/devel (1d04e4b3d27b0ae16619eda413…

---

## [Suspend/resume ec2 autoscaling](https://forum.ansible.com/t/suspend-resume-ec2-autoscaling/16576)

<div class="topic-metadata">

**Author:** [@Filipe\_Felisbino](https://forum.ansible.com/u/Filipe_Felisbino)\
**Replies:** 1\
**Last updated:** [October 21, 2014, 9:38pm UTC](https://forum.ansible.com/t/suspend-resume-ec2-autoscaling/16576 "2014-10-21T21:38:16Z")

</div>

One of our ASG’s uses ELB as it’s health check. This is because sometimes a new instance is started but not completely set-up causing, among other problems, the average cpu utilization to drop which will eventually avoid…

---

## [RE: \[ansible-devel\] Re: Kerberos domain authentication for Windows hosts](https://forum.ansible.com/t/re-ansible-devel-re-kerberos-domain-authentication-for-windows-hosts/16555)

<div class="topic-metadata">

**Author:** [@Nicolas\_Deslandes](https://forum.ansible.com/u/Nicolas_Deslandes)\
**Replies:** 3\
**Last updated:** [October 21, 2014, 12:03am UTC](https://forum.ansible.com/t/re-ansible-devel-re-kerberos-domain-authentication-for-windows-hosts/16555 "2014-10-21T00:03:36Z")

</div>

I agree, that’s a good point. You might very well want to use basic auth or NTLM to authenticate a domain user. So the ‘ansible\_authorization\_type’ parameter suggested by jhawkesworth would probably be a better way to s…

---

## [Trouble running make install from source](https://forum.ansible.com/t/trouble-running-make-install-from-source/16543)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 2\
**Last updated:** [October 20, 2014, 9:38pm UTC](https://forum.ansible.com/t/trouble-running-make-install-from-source/16543 "2014-10-20T21:38:04Z")

</div>

Hi all, I’m trying to run make install on my copy of ansible checked out from source. The make task runs fine, but I ansible is complaining that it can’t find the setup module. Looking at /usr/local/lib/python2.7/dist-…

---

## [raising errorinventory script](https://forum.ansible.com/t/raising-errorinventory-script/16563)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [October 20, 2014, 9:37pm UTC](https://forum.ansible.com/t/raising-errorinventory-script/16563 "2014-10-20T21:37:13Z")

</div>

Yeah that’s pretty much all you can do and would be a good approach.

---

## [writing a an ansible module - seems that Popen is spending a long time polling](https://forum.ansible.com/t/writing-a-an-ansible-module-seems-that-popen-is-spending-a-long-time-polling/16534)

<div class="topic-metadata">

**Author:** [@Bryan\_Hunt](https://forum.ansible.com/u/Bryan_Hunt)\
**Replies:** 1\
**Last updated:** [October 20, 2014, 9:36pm UTC](https://forum.ansible.com/t/writing-a-an-ansible-module-seems-that-popen-is-spending-a-long-time-polling/16534 "2014-10-20T21:36:40Z")

</div>

Hello all, Perhaps this is a general Python question, if so, I apologize in advance for having had the temerity to ask it here. One of our team was complaining that the Riak stuff was slow. Now this is always a subject…

---

## [Location OpenStack Ansible modules](https://forum.ansible.com/t/location-openstack-ansible-modules/16522)

<div class="topic-metadata">

**Author:** [@Er0](https://forum.ansible.com/u/Er0)\
**Replies:** 1\
**Last updated:** [October 20, 2014, 9:34pm UTC](https://forum.ansible.com/t/location-openstack-ansible-modules/16522 "2014-10-20T21:34:15Z")

</div>

Hi, We recently started using Ansible to manage our OpenStack deployments. In the process of doing so, I have been updating modules in the cloud/ section (keystone, nova\_compute) to add support for features that I need …

---

## [Lucid compatibility](https://forum.ansible.com/t/lucid-compatibility/16496)

<div class="topic-metadata">

**Author:** [@Henry\_Finucane](https://forum.ansible.com/u/Henry_Finucane)\
**Replies:** 6\
**Last updated:** [October 20, 2014, 9:22pm UTC](https://forum.ansible.com/t/lucid-compatibility/16496 "2014-10-20T21:22:57Z")

</div>

Is anyone interested in lucid compatibility for the apt module? I muddled my way into a successful run today (https://github.com/hfinucane/ansible-modules-core/tree/lucid-apt), but I'm not sure if anyone's interested …

---

## [python library path issues](https://forum.ansible.com/t/python-library-path-issues/16497)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 4\
**Last updated:** [October 20, 2014, 2:24pm UTC](https://forum.ansible.com/t/python-library-path-issues/16497 "2014-10-20T14:24:09Z")

</div>

Hi all, Simple question– something I’ve encountered before where python has no problem finding a module but ansible can’t find it: line 132, in from comware\_5\_2 import Comware\_5\_2 ImportError: No module named comwa…

---

## [Postfix module](https://forum.ansible.com/t/postfix-module/16557)

<div class="topic-metadata">

**Author:** [@Eduardo\_Ramos](https://forum.ansible.com/u/Eduardo_Ramos)\
**Replies:** 2\
**Last updated:** [October 20, 2014, 12:22pm UTC](https://forum.ansible.com/t/postfix-module/16557 "2014-10-20T12:22:56Z")

</div>

Hi all! I would like to know if anyone has been working with a postfix/postconf/postqueue module. I’m a postmaster and I’m starting with ansible. Would it be interesting have a postfix module? Thnaks.

---

## [Rework of Nova Dynamic Inventory Plugin reviewers needed for pull request](https://forum.ansible.com/t/rework-of-nova-dynamic-inventory-plugin-reviewers-needed-for-pull-request/16047)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 8\
**Last updated:** [October 20, 2014, 11:17am UTC](https://forum.ansible.com/t/rework-of-nova-dynamic-inventory-plugin-reviewers-needed-for-pull-request/16047 "2014-10-20T11:17:52Z")

</div>

Hi all! I was hoping I could get some reviewers on my pull request for Nova dynamic inventory plugin? Monty Taylor added yet more useful functionality on top of my original working. I was focused on getting it to work w…

---

## [another rework of the nova inventory](https://forum.ansible.com/t/another-rework-of-the-nova-inventory/16552)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 1\
**Last updated:** [October 19, 2014, 11:58am UTC](https://forum.ansible.com/t/another-rework-of-the-nova-inventory/16552 "2014-10-19T11:58:05Z")

</div>

Hello, I opened a pull request with rework of the OpenStack Nova inventory script. I did it because I wasn’t happy with the current state of the inventory, and also wasn’t happy with the two pull requests I saw open: h…

---

## [Raising errors in inventory scripts](https://forum.ansible.com/t/raising-errors-in-inventory-scripts/16550)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 0\
**Last updated:** [October 18, 2014, 6:32pm UTC](https://forum.ansible.com/t/raising-errors-in-inventory-scripts/16550 "2014-10-18T18:32:28Z")

</div>

Hello, is there a proper way to report errors in dynamic inventory script? Somehow so that Ansible shows the error message to the user, rather than trying to parse it as JSON. I didn’t take a very deep look. I just saw…

---

## ["--host" functionality for a dynamic inventory](https://forum.ansible.com/t/host-functionality-for-a-dynamic-inventory/16537)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 2\
**Last updated:** [October 17, 2014, 2:50pm UTC](https://forum.ansible.com/t/host-functionality-for-a-dynamic-inventory/16537 "2014-10-17T14:50:36Z")

</div>

Hello, is it necessary to implement the --host functionality when my dynamic inventroy script returns all the hosts in \_meta? I refer to http://docs.ansible.com/developing\_inventory.html#tuning-the-external-inventory-…

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

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