# Latest

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

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

**Page:** 870

---

## [How to omit undefined vars in filters?](https://forum.ansible.com/t/how-to-omit-undefined-vars-in-filters/18253)

<div class="topic-metadata">

**Author:** [@Vladimir-csp](https://forum.ansible.com/u/Vladimir-csp)\
**Replies:** 0\
**Last updated:** [May 18, 2015, 4:38pm UTC](https://forum.ansible.com/t/how-to-omit-undefined-vars-in-filters/18253 "2015-05-18T16:38:43Z")

</div>

Hi! I have a syntax question. When putting variable in module’s parameter, you can omit it if it is undefined, like so: \` parameter: {{ variable | default(omit) }} \` But how to do the same thing with list filters w…

---

## [Calling a filter\_plugin from a custom module](https://forum.ansible.com/t/calling-a-filter-plugin-from-a-custom-module/18236)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 7\
**Last updated:** [May 18, 2015, 12:20pm UTC](https://forum.ansible.com/t/calling-a-filter-plugin-from-a-custom-module/18236 "2015-05-18T12:20:41Z")

</div>

Is there a way to call a filter\_plugin from within a custom module? For example, I’ve written a simple filter\_plugin utils.py that contains a ‘to\_bytes’ function. This filter is used from my play like: “debug: msg=“{{‘2…

---

## [Can not access environment variables via lookup module](https://forum.ansible.com/t/can-not-access-environment-variables-via-lookup-module/18249)

<div class="topic-metadata">

**Author:** [@Kei\_Yamazaki](https://forum.ansible.com/u/Kei_Yamazaki)\
**Replies:** 1\
**Last updated:** [May 18, 2015, 11:21am UTC](https://forum.ansible.com/t/can-not-access-environment-variables-via-lookup-module/18249 "2015-05-18T11:21:54Z")

</div>

I executed following playbook that uses lookup module and the "environment" settings. But can not access environment variables. How can I access environment variables?

---

## [specifying ansible\_ssh\_pass in group vars makes playbook hang](https://forum.ansible.com/t/specifying-ansible-ssh-pass-in-group-vars-makes-playbook-hang/18248)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 4\
**Last updated:** [May 18, 2015, 9:59am UTC](https://forum.ansible.com/t/specifying-ansible-ssh-pass-in-group-vars-makes-playbook-hang/18248 "2015-05-18T09:59:33Z")

</div>

Hello ! I am trying to run a playbook by specifying the inventory using dynamic inventory as given below { “192.168.0.65”: { “hosts”: \[ “192.168.0.65” \], “vars”: { “ansible\_connection”: “ssh”, “ansible\_ssh\_pass”…

---

## [New NetworkManager module PR#482: What are the next steps to getting it merged?](https://forum.ansible.com/t/new-networkmanager-module-pr-482-what-are-the-next-steps-to-getting-it-merged/18230)

<div class="topic-metadata">

**Author:** [@chlong](https://forum.ansible.com/u/chlong)\
**Replies:** 3\
**Last updated:** [May 18, 2015, 6:19am UTC](https://forum.ansible.com/t/new-networkmanager-module-pr-482-what-are-the-next-steps-to-getting-it-merged/18230 "2015-05-18T06:19:42Z")

</div>

Hi All. I’ve submitted my first PR for a new module and it has been tagged with ‘feature\_pull\_request’ ‘new\_module’ ‘P3’ and has a green tick. What’s the next step in the process for that PR to get merged? Cheers Chri…

---

## [Further analysis of Extras PRs, and a new draft of Extras policy proposal](https://forum.ansible.com/t/further-analysis-of-extras-prs-and-a-new-draft-of-extras-policy-proposal/18247)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 1\
**Last updated:** [May 17, 2015, 11:41pm UTC](https://forum.ansible.com/t/further-analysis-of-extras-prs-and-a-new-draft-of-extras-policy-proposal/18247 "2015-05-17T23:41:19Z")

</div>

Last week, I went through and added Github owner data to every module in Extras, and then I went through and tagged "owner\_pr" to every PR in which the requestor was also the module owner. There were a very few (5, I …

---

## [print template variable](https://forum.ansible.com/t/print-template-variable/18004)

<div class="topic-metadata">

**Author:** [@Tom\_Paine](https://forum.ansible.com/u/Tom_Paine)\
**Replies:** 6\
**Last updated:** [May 17, 2015, 9:34am UTC](https://forum.ansible.com/t/print-template-variable/18004 "2015-05-17T09:34:23Z")

</div>

Trying to debug a template and want to display the data for a variable. How can I do that from inside a template? {% for foo in bar %} \<print foo to stdout?\> {% endfor %}

---

## [ec2\_group with a rule opening a port to other nodes of the same group](https://forum.ansible.com/t/ec2-group-with-a-rule-opening-a-port-to-other-nodes-of-the-same-group/14199)

<div class="topic-metadata">

**Author:** [@Alexey\_Verkhovsky](https://forum.ansible.com/u/Alexey_Verkhovsky)\
**Replies:** 2\
**Last updated:** [May 17, 2015, 9:33am UTC](https://forum.ansible.com/t/ec2-group-with-a-rule-opening-a-port-to-other-nodes-of-the-same-group/14199 "2015-05-17T09:33:27Z")

</div>

I need to define an EC2 security group that opens a port to other nodes of the same group. The use case is Elastic Search cluster autodiscovery. Which looks legitimate enough to me :slight\_smile: As far as I can tell, t…

---

## [sudo not working when user defined as part of a group](https://forum.ansible.com/t/sudo-not-working-when-user-defined-as-part-of-a-group/18242)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [May 16, 2015, 6:20pm UTC](https://forum.ansible.com/t/sudo-not-working-when-user-defined-as-part-of-a-group/18242 "2015-05-16T18:20:22Z")

</div>

Ubuntu 14.04 Ansible 1.9.1 When I explicitly define a user in the sudoers file, ansible works as expected. But, when I remove that user from the sudoers file, and add it to the UNIX group sudo (with \`%sudo ALL=(ALL…

---

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

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 3\
**Last updated:** [May 16, 2015, 5:37pm UTC](https://forum.ansible.com/t/msg-errno-2-no-such-file-or-directory/18244 "2015-05-16T17:37:33Z")

</div>

Hi I'm getting a "msg: \[Errno 2\] No such file or directory" on "apt" with the most simple playbook. This is with version v1.9.1-1 I checked my syntax etc... and the only way I can fix it is to go to version v1.5.0. Go…

---

## [Can ansible dynamic inventory accept arguments ?](https://forum.ansible.com/t/can-ansible-dynamic-inventory-accept-arguments/18232)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 3\
**Last updated:** [May 16, 2015, 3:29pm UTC](https://forum.ansible.com/t/can-ansible-dynamic-inventory-accept-arguments/18232 "2015-05-16T15:29:03Z")

</div>

Hello ! I have read through some forum posts that i could use env variables but i really do not want to do so. So wanted to know if ansible dynamic inventory can accept a variable Ritesh

---

## [How to play a single role?](https://forum.ansible.com/t/how-to-play-a-single-role/18240)

<div class="topic-metadata">

**Author:** [@Philip\_Hallstrom](https://forum.ansible.com/u/Philip_Hallstrom)\
**Replies:** 1\
**Last updated:** [May 15, 2015, 6:42pm UTC](https://forum.ansible.com/t/how-to-play-a-single-role/18240 "2015-05-15T18:42:35Z")

</div>

Using ansible\_playback I can use “-t” to limit the tasks played to the tags I specify. Is there anyway to do that with roles? Something like “-r role”? Or do I need to tag every task in the role with the name of the rol…

---

## [Ansible template error: "TypeError: unsupported operand type(s) for -: 'StrictUndefined' and 'StrictUndefined'"](https://forum.ansible.com/t/ansible-template-error-typeerror-unsupported-operand-type-s-for-strictundefined-and-strictundefined/18238)

<div class="topic-metadata">

**Author:** [@Shinta\_Smith](https://forum.ansible.com/u/Shinta_Smith)\
**Replies:** 0\
**Last updated:** [May 15, 2015, 4:02pm UTC](https://forum.ansible.com/t/ansible-template-error-typeerror-unsupported-operand-type-s-for-strictundefined-and-strictundefined/18238 "2015-05-15T16:02:22Z")

</div>

Hello, I have a task like this: name: my configuration files template: src={{ item }} dest=/etc/myapp/{{ item }} owner=myuser group=myuser mode=0644 tags: config with\_items: hive-site.xml my-app.properties When …

---

## [New to Ansible Development](https://forum.ansible.com/t/new-to-ansible-development/18237)

<div class="topic-metadata">

**Author:** [@Ken\_Mitchell](https://forum.ansible.com/u/Ken_Mitchell)\
**Replies:** 1\
**Last updated:** [May 15, 2015, 3:51pm UTC](https://forum.ansible.com/t/new-to-ansible-development/18237 "2015-05-15T15:51:49Z")

</div>

I have created some custom modules, but I want to get my feet wet contributing to Ansible. Considering working on some ansible-modules-core bugfixes. I’ve read CONTRIBUTING.md and README.md, and of course the docs. Shoul…

---

## [Can the -i option of dynamic inventory accept a json directly instead of a executable file ?](https://forum.ansible.com/t/can-the-i-option-of-dynamic-inventory-accept-a-json-directly-instead-of-a-executable-file/18233)

<div class="topic-metadata">

**Author:** [@Shaps](https://forum.ansible.com/u/Shaps)\
**Replies:** 0\
**Last updated:** [May 14, 2015, 7:15pm UTC](https://forum.ansible.com/t/can-the-i-option-of-dynamic-inventory-accept-a-json-directly-instead-of-a-executable-file/18233 "2015-05-14T19:15:18Z")

</div>

Hi, no unfortunatelyou cannot pass any variable to the dynamic inventory, it will be called automatically by ansible with the host or list argument. The only way you have is either setting env variables or having a con…

---

## [\[FeatureRequest\] Be able to get the resolved parameters in a module](https://forum.ansible.com/t/featurerequest-be-able-to-get-the-resolved-parameters-in-a-module/18222)

<div class="topic-metadata">

**Author:** [@Gregoire\_Pineau](https://forum.ansible.com/u/Gregoire_Pineau)\
**Replies:** 1\
**Last updated:** [May 14, 2015, 6:59pm UTC](https://forum.ansible.com/t/featurerequest-be-able-to-get-the-resolved-parameters-in-a-module/18222 "2015-05-14T18:59:31Z")

</div>

Hello This mail follow-up an issue I opened on GH. I will summary (on update) my issue here. In my company we have many different kind of server (applicationA, applicationB, rabbitmq, postgres, …) So have many roles …

---

## [Can the -i option of dynamic inventory accept a json directly instead of a executable file ?](https://forum.ansible.com/t/can-the-i-option-of-dynamic-inventory-accept-a-json-directly-instead-of-a-executable-file/18231)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 1\
**Last updated:** [May 14, 2015, 6:41pm UTC](https://forum.ansible.com/t/can-the-i-option-of-dynamic-inventory-accept-a-json-directly-instead-of-a-executable-file/18231 "2015-05-14T18:41:58Z")

</div>

My need is to call the ansible playbook with dynamic inventory and this inventory script needs to accept arguments . so depending on arguments the hosts will be different. I searched through the forrum and looks like the…

---

## [running playbook for windows plus dynamic inventory and dynamic groups\_vars](https://forum.ansible.com/t/running-playbook-for-windows-plus-dynamic-inventory-and-dynamic-groups-vars/18219)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 2\
**Last updated:** [May 14, 2015, 6:24pm UTC](https://forum.ansible.com/t/running-playbook-for-windows-plus-dynamic-inventory-and-dynamic-groups-vars/18219 "2015-05-14T18:24:36Z")

</div>

Hi I have a requirement to run playbook on hyperv compute nodes (windows) i tried the method mentioned to keep all variables . ansible\_ssh\_user: Administrator ansible\_ssh\_pass: password ansible\_ssh\_port: 5986 ansibl…

---

## [no\_log with bin/ansible ?](https://forum.ansible.com/t/no-log-with-bin-ansible/18190)

<div class="topic-metadata">

**Author:** [@Ken\_Anderson](https://forum.ansible.com/u/Ken_Anderson)\
**Replies:** 2\
**Last updated:** [May 14, 2015, 3:15pm UTC](https://forum.ansible.com/t/no-log-with-bin-ansible/18190 "2015-05-14T15:15:59Z")

</div>

Is there any way to use no\_log with ansible ad-hoc commands?

---

## [Modeling Problem - Role Variables, Inventory Variables and Local Facts](https://forum.ansible.com/t/modeling-problem-role-variables-inventory-variables-and-local-facts/18229)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 0\
**Last updated:** [May 14, 2015, 8:52am UTC](https://forum.ansible.com/t/modeling-problem-role-variables-inventory-variables-and-local-facts/18229 "2015-05-14T08:52:34Z")

</div>

Hi all I’m having trouble using all the above variables to get a reliable set of variables that describe a configuration and I would love to hear your thoughts. Each service I’m provisioning has the same structure: A…

---

## [Iterating over two tasks ?](https://forum.ansible.com/t/iterating-over-two-tasks/18228)

<div class="topic-metadata">

**Author:** [@Vikas\_Kumar](https://forum.ansible.com/u/Vikas_Kumar)\
**Replies:** 1\
**Last updated:** [May 14, 2015, 8:38am UTC](https://forum.ansible.com/t/iterating-over-two-tasks/18228 "2015-05-14T08:38:20Z")

</div>

Hello All, I have two tasks and few yaml files. This is obviously not working as all the files (/etc/nginx/myconfigs/{ab01a,ab01b,ab,www}) have variables from \*'\*\*www.\*yml’, which is the last item in the iteration. \` …

---

## [Initial analysis of Extras PRs, and next steps](https://forum.ansible.com/t/initial-analysis-of-extras-prs-and-next-steps/18223)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 4\
**Last updated:** [May 14, 2015, 3:56am UTC](https://forum.ansible.com/t/initial-analysis-of-extras-prs-and-next-steps/18223 "2015-05-14T03:56:54Z")

</div>

OK, so I created a label called "owner\_pr" for all PRs in Extras that were submitted by the module owners. I then went through and found all open PRs against extant modules that were submitted by the original authors…

---

## [fire-forget included playbook](https://forum.ansible.com/t/fire-forget-included-playbook/13192)

<div class="topic-metadata">

**Author:** [@Kavin\_Kankeshwar](https://forum.ansible.com/u/Kavin_Kankeshwar)\
**Replies:** 4\
**Last updated:** [May 13, 2015, 8:47pm UTC](https://forum.ansible.com/t/fire-forget-included-playbook/13192 "2015-05-13T20:47:17Z")

</div>

Hi, For one of my use cases, I would like to trigger multiple playbook simultaneously, but in the playbook all the tasks will be serial, i.e. Playbook 1, 2, 3 will be triggered simultaneously, but Tasks 2 in Playbook 1,…

---

## [Need help manipulating shell stdout data](https://forum.ansible.com/t/need-help-manipulating-shell-stdout-data/18225)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 0\
**Last updated:** [May 13, 2015, 8:44pm UTC](https://forum.ansible.com/t/need-help-manipulating-shell-stdout-data/18225 "2015-05-13T20:44:29Z")

</div>

I have a shell task that registers data that looks similar to: “stdout\_lines”: \[ “username\\tuseremail@domain.tld”, “username\\tuseremail@domain.tld”, “username\\tuseremail@domain.tld”, “username\\tuseremail@domain.tld”…

---

## [include\_vars and hash-behaviour](https://forum.ansible.com/t/include-vars-and-hash-behaviour/18194)

<div class="topic-metadata">

**Author:** [@Michail\_Alexakis](https://forum.ansible.com/u/Michail_Alexakis)\
**Replies:** 7\
**Last updated:** [May 13, 2015, 7:40pm UTC](https://forum.ansible.com/t/include-vars-and-hash-behaviour/18194 "2015-05-13T19:40:57Z")

</div>

Hello list, I have encountered some not expected results when i tried to include (with include\_vars) multiple var files in the beginning of a play. I normally use the “merge” hash behavior (ansible.cfg) because it seem…

---

## [Double provisioning when running Ansible locally](https://forum.ansible.com/t/double-provisioning-when-running-ansible-locally/18107)

<div class="topic-metadata">

**Author:** [@Warren\_Seine](https://forum.ansible.com/u/Warren_Seine)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 6:54pm UTC](https://forum.ansible.com/t/double-provisioning-when-running-ansible-locally/18107 "2015-05-13T18:54:27Z")

</div>

Hi, I’m using Ansible to deploy to a single machine. I run Ansible locally on the target machine and I’m collecting the inventory from a script that returns JSON. I run everything from Vagrant but the actual command lin…

---

## [Clone VMs on vSphere](https://forum.ansible.com/t/clone-vms-on-vsphere/18220)

<div class="topic-metadata">

**Author:** [@Marcel\_Bezemer](https://forum.ansible.com/u/Marcel_Bezemer)\
**Replies:** 2\
**Last updated:** [May 13, 2015, 6:49pm UTC](https://forum.ansible.com/t/clone-vms-on-vsphere/18220 "2015-05-13T18:49:06Z")

</div>

Hey, I am currently playing around with ansible to see if this could be used for us in production with our deployments. Something I am currently have trouble wrapping my head around is the following. I want to use ansi…

---

## [User performing local\_action](https://forum.ansible.com/t/user-performing-local-action/18224)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [May 13, 2015, 5:35pm UTC](https://forum.ansible.com/t/user-performing-local-action/18224 "2015-05-13T17:35:28Z")

</div>

joliver@flamingo ~ $ ansible-playbook -u joliver.sa -K deploy\_checklist.yml SUDO password: PLAY \[aria\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [New iptables module questions](https://forum.ansible.com/t/new-iptables-module-questions/18099)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 6\
**Last updated:** [May 13, 2015, 5:16pm UTC](https://forum.ansible.com/t/new-iptables-module-questions/18099 "2015-05-13T17:16:28Z")

</div>

I know there have been quite a few requests for an iptables module which were usually closed by Michael (and others) saying that iptables should be controlled using a template module and similar suggestions. I found that…

---

## [New policies for Extras Modules](https://forum.ansible.com/t/new-policies-for-extras-modules/18203)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 9\
**Last updated:** [May 13, 2015, 4:47pm UTC](https://forum.ansible.com/t/new-policies-for-extras-modules/18203 "2015-05-13T16:47:38Z")

</div>

First, thanks to all who have participated in recent discussions around our development practices on ansible-devel, which have been productive and helpful. Now it's time to make some decisions. With the release of Ans…

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

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