# Latest

**URL:** https://forum.ansible.com/latest.md?page=841

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

**Page:** 842

---

## [Common functions for modules](https://forum.ansible.com/t/common-functions-for-modules/19047)

<div class="topic-metadata">

**Author:** [@anders.andersson](https://forum.ansible.com/u/anders.andersson)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 4:12am UTC](https://forum.ansible.com/t/common-functions-for-modules/19047 "2015-08-21T04:12:31Z")

</div>

Greetings all. Is it possible to import a shared module in to a role module? Something like: roles/ myRole1/ library/ myFunc1.py ← import myCommon myRole2/ library/ myFunc2.py ← import myCommon some\_dir/ myCom…

---

## [Galaxy Upgrades Tomorrow](https://forum.ansible.com/t/galaxy-upgrades-tomorrow/19075)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 21, 2015, 2:08am UTC](https://forum.ansible.com/t/galaxy-upgrades-tomorrow/19075 "2015-08-21T02:08:09Z")

</div>

We launched Galaxy back around the beginning of 2014 with the intent of creating a place for the community to find and share Ansible roles. Since that time some truly amazing things have happened including: tremendous g…

---

## [Facts no longer available in lookup plugin](https://forum.ansible.com/t/facts-no-longer-available-in-lookup-plugin/19050)

<div class="topic-metadata">

**Author:** [@Christian\_Hammerl](https://forum.ansible.com/u/Christian_Hammerl)\
**Replies:** 4\
**Last updated:** [August 20, 2015, 10:04pm UTC](https://forum.ansible.com/t/facts-no-longer-available-in-lookup-plugin/19050 "2015-08-20T22:04:55Z")

</div>

Some time ago, I wrote a small lookup plugin https://github.com/mantiz/ansible-lookup-plugin-os-specific This plugin allows/allowed to define a list of items where each item could be specialized for a specific os or dis…

---

## [ec2.py instance\_filters all security groups except](https://forum.ansible.com/t/ec2-py-instance-filters-all-security-groups-except/19067)

<div class="topic-metadata">

**Author:** [@justin](https://forum.ansible.com/u/justin)\
**Replies:** 1\
**Last updated:** [August 20, 2015, 9:29pm UTC](https://forum.ansible.com/t/ec2-py-instance-filters-all-security-groups-except/19067 "2015-08-20T21:29:46Z")

</div>

Using dynamic inventory with ec2.py am trying to filter based on all instance except where the security group is monolithic. I tried: instance\_filters = !security\_group:monolithic But this did not work. How is this …

---

## [Ansible 1.9.3 rc2 is now available for testing](https://forum.ansible.com/t/ansible-1-9-3-rc2-is-now-available-for-testing/19073)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 20, 2015, 8:42pm UTC](https://forum.ansible.com/t/ansible-1-9-3-rc2-is-now-available-for-testing/19073 "2015-08-20T20:42:20Z")

</div>

Hi all, we’ve just tagged the rc2 release for 1.9.3. To test from source, simply clone the git repository (if you haven’t already) and do the following: $ git checkout v1.9.3-0.2.rc2 $ git submodule update $ . hackin…

---

## [Digital Ocean + Deis modules](https://forum.ansible.com/t/digital-ocean-deis-modules/19070)

<div class="topic-metadata">

**Author:** [@Remy\_Sanchez](https://forum.ansible.com/u/Remy_Sanchez)\
**Replies:** 0\
**Last updated:** [August 20, 2015, 4:38pm UTC](https://forum.ansible.com/t/digital-ocean-deis-modules/19070 "2015-08-20T16:38:26Z")

</div>

Hi, I’ve started two modules for my own use. https://gist.github.com/Xowap/15100acf2f466a1178a6 This one is a replacement for digital\_ocean\_domain. Besides the fact that I never really figured why there was a droplet …

---

## [Ansible Tower and requirements.yml](https://forum.ansible.com/t/ansible-tower-and-requirements-yml/19051)

<div class="topic-metadata">

**Author:** [@Dan6](https://forum.ansible.com/u/Dan6)\
**Replies:** 1\
**Last updated:** [August 20, 2015, 2:25pm UTC](https://forum.ansible.com/t/ansible-tower-and-requirements-yml/19051 "2015-08-20T14:25:40Z")

</div>

Hi I am having an issue with Ansible Tower not picking up the requirements.yml file that is needed for the playbook. The documentation (Here) says that tower looks for roles/requirements.yml however tower doesn’t find m…

---

## [a new variable in vars ansible\_init](https://forum.ansible.com/t/a-new-variable-in-vars-ansible-init/19042)

<div class="topic-metadata">

**Author:** [@user72](https://forum.ansible.com/u/user72)\
**Replies:** 4\
**Last updated:** [August 20, 2015, 7:39am UTC](https://forum.ansible.com/t/a-new-variable-in-vars-ansible-init/19042 "2015-08-20T07:39:03Z")

</div>

add a variable that takes the value of the initialization http://docs.ansible.com/ansible/playbooks\_variables.html “ansible\_init”: “systemd”, “ansible\_init”: “SysV”, “ansible\_init”: “OpenRC”, or “ansible\_init”: { …

---

## [missing state(absent) in service module](https://forum.ansible.com/t/missing-state-absent-in-service-module/19054)

<div class="topic-metadata">

**Author:** [@alxgu1](https://forum.ansible.com/u/alxgu1)\
**Replies:** 3\
**Last updated:** [August 20, 2015, 5:55am UTC](https://forum.ansible.com/t/missing-state-absent-in-service-module/19054 "2015-08-20T05:55:39Z")

</div>

Hi, any reason why the service module doesn’t have the state=absent? Some packages setup their service into runlevel 3 during the installation. Would a PullRequest be accepted, which add this functionality? state s…

---

## [Task prefix](https://forum.ansible.com/t/task-prefix/19069)

<div class="topic-metadata">

**Author:** [@Francisco\_Garcia](https://forum.ansible.com/u/Francisco_Garcia)\
**Replies:** 0\
**Last updated:** [August 20, 2015, 5:02am UTC](https://forum.ansible.com/t/task-prefix/19069 "2015-08-20T05:02:06Z")

</div>

There is a pattern which I like and see an several playbooks, something like this: name: ANSISTRANO | Ensure deployment base path exists The goal is to prefix a set of related patterns so the user can quickly i…

---

## [msg: \[Errno 2\] No such file or directory when using bundle](https://forum.ansible.com/t/msg-errno-2-no-such-file-or-directory-when-using-bundle/19057)

<div class="topic-metadata">

**Author:** [@Derrick\_Mar](https://forum.ansible.com/u/Derrick_Mar)\
**Replies:** 2\
**Last updated:** [August 20, 2015, 4:44am UTC](https://forum.ansible.com/t/msg-errno-2-no-such-file-or-directory-when-using-bundle/19057 "2015-08-20T04:44:09Z")

</div>

Hello Ansible community! I’m just getting started with Ansible, and seem to be not understanding why this happens. My playbook name: bundle install command: “bundle install” args: chdir: “~/ai\_grading\_production/” …

---

## [Ansible-Playbook Return/Exit Codes](https://forum.ansible.com/t/ansible-playbook-return-exit-codes/19065)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 1\
**Last updated:** [August 20, 2015, 2:59am UTC](https://forum.ansible.com/t/ansible-playbook-return-exit-codes/19065 "2015-08-20T02:59:02Z")

</div>

Could someone direct me to a list of ansible-playbook exit codes? So far I’ve seen 0 which appears to be all OK with changes, however I’ve also seen 2 and 3. Something official would be great rather than my assumptions …

---

## [how to set an environment variable in ansible ad-hoc command?](https://forum.ansible.com/t/how-to-set-an-environment-variable-in-ansible-ad-hoc-command/19052)

<div class="topic-metadata">

**Author:** [@Yves\_Serrano](https://forum.ansible.com/u/Yves_Serrano)\
**Replies:** 1\
**Last updated:** [August 20, 2015, 2:05am UTC](https://forum.ansible.com/t/how-to-set-an-environment-variable-in-ansible-ad-hoc-command/19052 "2015-08-20T02:05:04Z")

</div>

Hi there Is there in ansible a way so set an linux environment variable for a ad-hoc mode and store it permanently in some place? I tried host\_vars, but that doesn’t worked. I want to run this command: ansible all -m…

---

## [Managing crontabs in FreeBSD](https://forum.ansible.com/t/managing-crontabs-in-freebsd/19068)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 0\
**Last updated:** [August 20, 2015, 1:11am UTC](https://forum.ansible.com/t/managing-crontabs-in-freebsd/19068 "2015-08-20T01:11:37Z")

</div>

From what I can tell, and looking at the cron program in the ansible directory, it does not seem the core cron management knows how to deal with FreeBSD. Has anyone run into any roles/snippets on managing cron jobs in F…

---

## [Using dynamic inventory with ec2.py show tag name](https://forum.ansible.com/t/using-dynamic-inventory-with-ec2-py-show-tag-name/19066)

<div class="topic-metadata">

**Author:** [@justin](https://forum.ansible.com/u/justin)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 10:06pm UTC](https://forum.ansible.com/t/using-dynamic-inventory-with-ec2-py-show-tag-name/19066 "2015-08-19T22:06:36Z")

</div>

I am using dynamic inventory with the ec2.py and ec2.ini and it is working great, except that the output of: ansible all -m ping shows: 52.5.102.121 | success \>\> { “changed”: false, “ping”: “pong” } 54.5.16.113…

---

## [apt module and per package releases](https://forum.ansible.com/t/apt-module-and-per-package-releases/19064)

<div class="topic-metadata">

**Author:** [@James\_Kruth](https://forum.ansible.com/u/James_Kruth)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 9:46pm UTC](https://forum.ansible.com/t/apt-module-and-per-package-releases/19064 "2015-08-19T21:46:29Z")

</div>

I’m trying to install packages from a specific release/distro (unstable) in Debian using /unstable syntax. Here’s an example: ansible debian-virtual -m apt -a “name=emacs24/unstable” 10.211.55.17 | FAILED \>\> { “failed…

---

## [Installing dependencies for python-kerberos with different package managers (Portage, pkg, OpenCSW, Pacman) and OS X](https://forum.ansible.com/t/installing-dependencies-for-python-kerberos-with-different-package-managers-portage-pkg-opencsw-pacman-and-os-x/19063)

<div class="topic-metadata">

**Author:** [@roger](https://forum.ansible.com/u/roger)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 9:33pm UTC](https://forum.ansible.com/t/installing-dependencies-for-python-kerberos-with-different-package-managers-portage-pkg-opencsw-pacman-and-os-x/19063 "2015-08-19T21:33:20Z")

</div>

Hi everyone, I’m writing a pull request to update the dependencies for installing the python-kerberos library \[pip python-kerberos\] and running the kinit/klist commands. I’ve confirmed the dependencies for yum and apt-…

---

## [Run a playbook with arbitrary host not in the inventory hosts list?](https://forum.ansible.com/t/run-a-playbook-with-arbitrary-host-not-in-the-inventory-hosts-list/19045)

<div class="topic-metadata">

**Author:** [@Peter\_Loron](https://forum.ansible.com/u/Peter_Loron)\
**Replies:** 4\
**Last updated:** [August 19, 2015, 9:28pm UTC](https://forum.ansible.com/t/run-a-playbook-with-arbitrary-host-not-in-the-inventory-hosts-list/19045 "2015-08-19T21:28:46Z")

</div>

Hello. I often want to run a playbook against an arbitrary host, sometimes one not defined in my inventory hosts file. Is there a way of specifying an arbitrary hostname or IP on the ansible-playbook command line to run …

---

## [Manage Inventory in Ansible](https://forum.ansible.com/t/manage-inventory-in-ansible/19058)

<div class="topic-metadata">

**Author:** [@satheesh\_kumar](https://forum.ansible.com/u/satheesh_kumar)\
**Replies:** 5\
**Last updated:** [August 19, 2015, 9:17pm UTC](https://forum.ansible.com/t/manage-inventory-in-ansible/19058 "2015-08-19T21:17:11Z")

</div>

Hi, Currently i’m using static inventory in ansible and have folder structure like Inventories/inv1, Inventories/inv2, etc.. Inventories/inv1 \[atlanta\] \[europe\] I need to have group variables for production in a wa…

---

## [fatal error when skipping includes](https://forum.ansible.com/t/fatal-error-when-skipping-includes/19013)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 9\
**Last updated:** [August 19, 2015, 9:08pm UTC](https://forum.ansible.com/t/fatal-error-when-skipping-includes/19013 "2015-08-19T21:08:10Z")

</div>

Error: \` fatal: \[myhost\] =\> with\_items expects a list or a set \` I have a role with the following tasks(snippets included): tasks/main.yml \`

---

## [Interleaved stdout bug](https://forum.ansible.com/t/interleaved-stdout-bug/19006)

<div class="topic-metadata">

**Author:** [@jmeickle](https://forum.ansible.com/u/jmeickle)\
**Replies:** 1\
**Last updated:** [August 19, 2015, 6:46pm UTC](https://forum.ansible.com/t/interleaved-stdout-bug/19006 "2015-08-19T18:46:38Z")

</div>

I use Ansible to coordinate a CI build that takes place across several servers simultaneously. It’s easiest to feed our CI tool stdout, so I was using the “human\_log.py” callback plugin that’s floating around online to a…

---

## [Dynamic Inventory and ansible\_ssh\_ variables.](https://forum.ansible.com/t/dynamic-inventory-and-ansible-ssh-variables/19061)

<div class="topic-metadata">

**Author:** [@Michael\_Luich](https://forum.ansible.com/u/Michael_Luich)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 6:18pm UTC](https://forum.ansible.com/t/dynamic-inventory-and-ansible-ssh-variables/19061 "2015-08-19T18:18:29Z")

</div>

Hello, I’m trying to write a custom inventory script that sets a non standard ssh port. I’ve put the ansible\_ssh variables in the \_meta section of the json. These variables don’t seem to get applied. I can set it in /et…

---

## [using default(omit) in a template](https://forum.ansible.com/t/using-default-omit-in-a-template/19059)

<div class="topic-metadata">

**Author:** [@tahonezz](https://forum.ansible.com/u/tahonezz)\
**Replies:** 1\
**Last updated:** [August 19, 2015, 5:20pm UTC](https://forum.ansible.com/t/using-default-omit-in-a-template/19059 "2015-08-19T17:20:03Z")

</div>

I am trying to use the following in a template var = {{ param | default(omit) }} when the template copied to the host , it looks like this var = \_\_omit\_place\_holder\_\_ced80263bbdf6fd69a66240ad5188ab4727dd7ad instead o…

---

## [getting an error when using default(omit)](https://forum.ansible.com/t/getting-an-error-when-using-default-omit/19038)

<div class="topic-metadata">

**Author:** [@tahonezz](https://forum.ansible.com/u/tahonezz)\
**Replies:** 1\
**Last updated:** [August 19, 2015, 5:15pm UTC](https://forum.ansible.com/t/getting-an-error-when-using-default-omit/19038 "2015-08-19T17:15:11Z")

</div>

Hi - i have am trying to use the omit feature with my default like this default\_availability\_zone = {{ cinder\_default\_availability\_zone | default(omit) }} and i am getting the following error. I am using ansible 1.8.1…

---

## [When using ec2 or rax in a role, facts set following an add\_host loop are lost when execution returns to the calling playbook](https://forum.ansible.com/t/when-using-ec2-or-rax-in-a-role-facts-set-following-an-add-host-loop-are-lost-when-execution-returns-to-the-calling-playbook/19046)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 2\
**Last updated:** [August 19, 2015, 3:58pm UTC](https://forum.ansible.com/t/when-using-ec2-or-rax-in-a-role-facts-set-following-an-add-host-loop-are-lost-when-execution-returns-to-the-calling-playbook/19046 "2015-08-19T15:58:25Z")

</div>

Hello, I’m actually revisiting a problem I originally just worked around… maybe 18 to 24 months ago. I just now did some searching of the list, but there were just pages and pages for most searches I tried so apologies …

---

## [Multi roles problem](https://forum.ansible.com/t/multi-roles-problem/19055)

<div class="topic-metadata">

**Author:** [@Guillaume\_Marceau](https://forum.ansible.com/u/Guillaume_Marceau)\
**Replies:** 0\
**Last updated:** [August 19, 2015, 2:45pm UTC](https://forum.ansible.com/t/multi-roles-problem/19055 "2015-08-19T14:45:53Z")

</div>

Hello, I want to make multi role for a group of hosts like : name: its a test hosts: grphosts roles: debian lxc Role “debian” is done succefully but role “lxc” is not played (no error, ansible just don’t see him)…

---

## [add\_host module returns 'NoneType' object has no attribute 'add\_group'](https://forum.ansible.com/t/add-host-module-returns-nonetype-object-has-no-attribute-add-group/19019)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 5\
**Last updated:** [August 19, 2015, 11:46am UTC](https://forum.ansible.com/t/add-host-module-returns-nonetype-object-has-no-attribute-add-group/19019 "2015-08-19T11:46:41Z")

</div>

Issue Type: Bug Report Ansible Version: ansible 1.9.0.1 configured module search path = None Environment: CentOS release 6.6 (Final) Summary: Using the add\_host module fails on the first run. When run a second ti…

---

## [Ignoring errors in check mode](https://forum.ansible.com/t/ignoring-errors-in-check-mode/18973)

<div class="topic-metadata">

**Author:** [@Albertdev](https://forum.ansible.com/u/Albertdev)\
**Replies:** 3\
**Last updated:** [August 19, 2015, 11:25am UTC](https://forum.ansible.com/t/ignoring-errors-in-check-mode/18973 "2015-08-19T11:25:29Z")

</div>

Hello, I’ve been tearing my hair out over a problem which seems simple to fix but is somehow full of pitfalls. Basically I have a few playbooks where one task depends on the previous one. For example, I create a file b…

---

## [Creating a new user with SSH rights on OS X](https://forum.ansible.com/t/creating-a-new-user-with-ssh-rights-on-os-x/19048)

<div class="topic-metadata">

**Author:** [@Anthony\_Green](https://forum.ansible.com/u/Anthony_Green)\
**Replies:** 1\
**Last updated:** [August 19, 2015, 9:55am UTC](https://forum.ansible.com/t/creating-a-new-user-with-ssh-rights-on-os-x/19048 "2015-08-19T09:55:03Z")

</div>

I’ve been trying to use the group and user module to create a user account that has SSH rights. the tasks i’m running are: name: Add jenkins user user: name=jenkins comment=Jenkins password=foobar system=yes sudo: y…

---

## [installation on Mac OSX issue](https://forum.ansible.com/t/installation-on-mac-osx-issue/19043)

<div class="topic-metadata">

**Author:** [@Sebastian\_M\_Cheung](https://forum.ansible.com/u/Sebastian_M_Cheung)\
**Replies:** 1\
**Last updated:** [August 18, 2015, 4:12pm UTC](https://forum.ansible.com/t/installation-on-mac-osx-issue/19043 "2015-08-18T16:12:15Z")

</div>

After installation via $brew install ansible then, I added in ~/.bashrc ansible export PATH=/usr/local/Cellar/ansible/1.9.2/bin:$PATH $source .bashrc then $ ansible /usr/local/Cellar/ansible/1.9.2/bin/ansible: /us…

[Previous page](https://forum.ansible.com/latest.md?page=840)

[Next page](https://forum.ansible.com/latest.md?page=842)
