# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=529

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

**Page:** 530

---

## [Another warning after update to version 2.2](https://forum.ansible.com/t/another-warning-after-update-to-version-2-2/23275)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 2\
**Last updated:** [December 16, 2016, 8:17pm UTC](https://forum.ansible.com/t/another-warning-after-update-to-version-2-2/23275 "2016-12-16T20:17:41Z")

</div>

After updating to version 2.2, I see the following warning appear immediately when running playbooks (the playbooks run successfully, though): /usr/lib/python2.6/site-packages/xmpp/auth.py:24: DeprecationWarning: the sh…

---

## [Dynamic Group Var Name](https://forum.ansible.com/t/dynamic-group-var-name/21281)

<div class="topic-metadata">

**Author:** [@Chanaka\_Samarajeewa](https://forum.ansible.com/u/Chanaka_Samarajeewa)\
**Replies:** 3\
**Last updated:** [December 16, 2016, 6:43pm UTC](https://forum.ansible.com/t/dynamic-group-var-name/21281 "2016-12-16T18:43:11Z")

</div>

Hello, How come I cannot do the following? I get the following error when I run the play. Is there a better way to do this? Please note the group vars file has been added to the main yml file as a reference. mysql\_use…

---

## [New module and supporting utils](https://forum.ansible.com/t/new-module-and-supporting-utils/23269)

<div class="topic-metadata">

**Author:** [@Ted](https://forum.ansible.com/u/Ted)\
**Replies:** 1\
**Last updated:** [December 16, 2016, 4:38pm UTC](https://forum.ansible.com/t/new-module-and-supporting-utils/23269 "2016-12-16T16:38:21Z")

</div>

Should a new module be committed in a new branch (or devel)? Should supporting code such as utils be committed separately?

---

## [ec2\_eip and device\_id](https://forum.ansible.com/t/ec2-eip-and-device-id/23270)

<div class="topic-metadata">

**Author:** [@Robert\_Haskins](https://forum.ansible.com/u/Robert_Haskins)\
**Replies:** 0\
**Last updated:** [December 16, 2016, 4:16am UTC](https://forum.ansible.com/t/ec2-eip-and-device-id/23270 "2016-12-16T04:16:17Z")

</div>

I am trying to assign a single elastic IP to a single AWS instance using this: name: associate an assigned IP with a running instance ec2\_eip: region: “{{ aws\_region }}” ip: “{{ eip.public\_ip }}” device\_id: “{{ ec2…

---

## [os\_security\_group\_rule by project](https://forum.ansible.com/t/os-security-group-rule-by-project/23193)

<div class="topic-metadata">

**Author:** [@Thomas\_King](https://forum.ansible.com/u/Thomas_King)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 9:54pm UTC](https://forum.ansible.com/t/os-security-group-rule-by-project/23193 "2016-12-15T21:54:01Z")

</div>

I am building an Ansible playbook to create a new project, add a user role, work with security groups, and other new-project tasks. The playbook creates a project after asking for some input and would need to continue wo…

---

## [Is it possible to find Ansible command history on the remote machine?](https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263)

<div class="topic-metadata">

**Author:** [@Eddie\_Peters](https://forum.ansible.com/u/Eddie_Peters)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 7:35pm UTC](https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263 "2016-12-15T19:35:22Z")

</div>

I can’t find an answer to this already, but maybe it’s because I don’t know what to search for. Is it possible for someone with unrestricted access to the remote machine to find previously-run Ansible commands on that m…

---

## [bigip\_pool module not found](https://forum.ansible.com/t/bigip-pool-module-not-found/23249)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 9\
**Last updated:** [December 15, 2016, 7:19pm UTC](https://forum.ansible.com/t/bigip-pool-module-not-found/23249 "2016-12-15T19:19:14Z")

</div>

At my virtualenv Here is my ansible.cfg \[defaults\] host\_key\_checking = False library =/path/to/ansible-playbooks/venv/lib/python2.7/site-packages/ansible/modules And here is my f5-text.txt localhost\] ansible\_connecti…

---

## [Alternatives to exporting environment variables](https://forum.ansible.com/t/alternatives-to-exporting-environment-variables/23253)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 7:17pm UTC](https://forum.ansible.com/t/alternatives-to-exporting-environment-variables/23253 "2016-12-15T19:17:01Z")

</div>

Hi, I have attached a playbook to export environment variables for proxy and aws keys. Even if I run this or include this at the top of provisioning script, I am getting an error “NO HANDLER WAS READY TO AUTHENTICATE”. …

---

## [ansible 2.0 python api sample code not working](https://forum.ansible.com/t/ansible-2-0-python-api-sample-code-not-working/20985)

<div class="topic-metadata">

**Author:** [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Replies:** 2\
**Last updated:** [December 15, 2016, 6:18pm UTC](https://forum.ansible.com/t/ansible-2-0-python-api-sample-code-not-working/20985 "2016-12-15T18:18:40Z")

</div>

I copied the sample code from ansible website and changed some parameters from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inv…

---

## [Iterating over list of lists](https://forum.ansible.com/t/iterating-over-list-of-lists/23268)

<div class="topic-metadata">

**Author:** [@Chanaka\_Samarajeewa](https://forum.ansible.com/u/Chanaka_Samarajeewa)\
**Replies:** 0\
**Last updated:** [December 15, 2016, 5:47pm UTC](https://forum.ansible.com/t/iterating-over-list-of-lists/23268 "2016-12-15T17:47:39Z")

</div>

Hello, I have a registered variable with the following output. How do I iterate the results to get groups-\>name and tags-\>Name ? ok: \[127.0.0.1\] =\> { “ec2\_facts”: { “changed”: false, “msg”: “All items completed”, “…

---

## [Includes and tags](https://forum.ansible.com/t/includes-and-tags/23252)

<div class="topic-metadata">

**Author:** [@John\_V](https://forum.ansible.com/u/John_V)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 5:25pm UTC](https://forum.ansible.com/t/includes-and-tags/23252 "2016-12-15T17:25:36Z")

</div>

Hi, I am trying to use a tag with an include. The include runs another play that triggers roles. The documention says that I should be able to use the below, however when using this all tagged items run! - include: fo…

---

## [fact caching  configuration](https://forum.ansible.com/t/fact-caching-configuration/23267)

<div class="topic-metadata">

**Author:** [@zlemini](https://forum.ansible.com/u/zlemini)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 5:24pm UTC](https://forum.ansible.com/t/fact-caching-configuration/23267 "2016-12-15T17:24:41Z")

</div>

Hi all, Does the fact\_caching\_timeout value default to a particular value if its not set in ansible.cfg, similar to how the forks defaults to 5 if not set in ansible.cfg? I am struggling to find it in the docs. Thanks…

---

## [Unable to MAKE Ansible 2.2.0.0 on Solaris](https://forum.ansible.com/t/unable-to-make-ansible-2-2-0-0-on-solaris/23186)

<div class="topic-metadata">

**Author:** [@Harvey\_Flaisher](https://forum.ansible.com/u/Harvey_Flaisher)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 5:07pm UTC](https://forum.ansible.com/t/unable-to-make-ansible-2-2-0-0-on-solaris/23186 "2016-12-15T17:07:53Z")

</div>

Hello: We are on this OS: Solaris 10 5/09 s10x\_u7wos\_08 X86 I cannot compile/build Ansible from source using either MAKE or GMAKE (see below). Can someone please point me in a direction? thank you. Harvey $ make m…

---

## [Running multiple process on the same server](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan2](https://forum.ansible.com/u/Tzach_Livyatan2)\
**Replies:** 3\
**Last updated:** [December 15, 2016, 4:25pm UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254 "2016-12-15T16:25:04Z")

</div>

Hi Ansiblers I need to run multiple instances (processes) of a shell command on each server. Something like GNU parallel but directly from Ansible. Any Ansible command / extension that will allow me to do so? Thanks …

---

## [Multiple module\_args](https://forum.ansible.com/t/multiple-module-args/19710)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 4\
**Last updated:** [December 15, 2016, 2:30pm UTC](https://forum.ansible.com/t/multiple-module-args/19710 "2016-12-15T14:30:03Z")

</div>

Hi, I am developing a module (python) which I am calling using ansible.runner and I need to so with multiple module args. For example: args1 = str(sys.argv\[0\]) args2 = str(sys.argv\[1\]) args3 = str(sys.argv\[2\]) From…

---

## [How to loop JSON of API CALL - Ansible](https://forum.ansible.com/t/how-to-loop-json-of-api-call-ansible/23266)

<div class="topic-metadata">

**Author:** [@Hector\_Marina1](https://forum.ansible.com/u/Hector_Marina1)\
**Replies:** 0\
**Last updated:** [December 15, 2016, 2:10pm UTC](https://forum.ansible.com/t/how-to-loop-json-of-api-call-ansible/23266 "2016-12-15T14:10:36Z")

</div>

Hello all, I have an API call, called by Ansible module. I want that this JSON loop ‘n’ times with differents values. This is the JSON: { "name": "{{hostname}}", "links": \[ { "href": "https://xxxxxxxxxx.ixx…

---

## [Concatenate text and variable for a key inside a dict](https://forum.ansible.com/t/concatenate-text-and-variable-for-a-key-inside-a-dict/23119)

<div class="topic-metadata">

**Author:** [@Guillaume\_Abrioux](https://forum.ansible.com/u/Guillaume_Abrioux)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 1:03pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-for-a-key-inside-a-dict/23119 "2016-12-15T13:03:02Z")

</div>

Hi, I would like to define a dict in group\_vars/all.yml where a key inside this dict would consist of a fixed string concatened to the result of : “{{ hostvars\[inventory\_hostname\]\[‘ansible\_hostname’\] }}”. This should l…

---

## [jinja in task (template)](https://forum.ansible.com/t/jinja-in-task-template/23255)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 2\
**Last updated:** [December 15, 2016, 12:24pm UTC](https://forum.ansible.com/t/jinja-in-task-template/23255 "2016-12-15T12:24:59Z")

</div>

Hi to all, I have problem with evaluating jinja2 code in task (template) This is playbook for test, just to see If I get what I want

---

## [azure\_rm\_virtualmachine](https://forum.ansible.com/t/azure-rm-virtualmachine/23257)

<div class="topic-metadata">

**Author:** [@Shmulik\_Alfandari](https://forum.ansible.com/u/Shmulik_Alfandari)\
**Replies:** 5\
**Last updated:** [December 15, 2016, 11:31am UTC](https://forum.ansible.com/t/azure-rm-virtualmachine/23257 "2016-12-15T11:31:17Z")

</div>

Hello, I am trying to create VM machine in Azure using azure\_rm\_virtualmachine module. It failed with the following error: “msg”: “One-time registration of Microsoft.Compute failed - Azure Error: AuthorizationFailed\\nM…

---

## [How can I change the path for specific host](https://forum.ansible.com/t/how-can-i-change-the-path-for-specific-host/23236)

<div class="topic-metadata">

**Author:** [@Guilherme\_Ueno](https://forum.ansible.com/u/Guilherme_Ueno)\
**Replies:** 5\
**Last updated:** [December 15, 2016, 11:12am UTC](https://forum.ansible.com/t/how-can-i-change-the-path-for-specific-host/23236 "2016-12-15T11:12:37Z")

</div>

Hi all, I have to copy a file into a directory to specific hosts, but the path changes for specific hosts. Ex.: Inventory: \[webserver\] hosta hostb task: Copy a file into: hosta: /usr/app/abc/dir hostb: /usr/app/…

---

## [ansible stuck in celery](https://forum.ansible.com/t/ansible-stuck-in-celery/23265)

<div class="topic-metadata">

**Author:** [@hzj.zh](https://forum.ansible.com/u/hzj.zh)\
**Replies:** 2\
**Last updated:** [December 15, 2016, 9:25am UTC](https://forum.ansible.com/t/ansible-stuck-in-celery/23265 "2016-12-15T09:25:34Z")

</div>

hello，all i am using celery to run ansible-playbook , my env Python 2.7.5 celery==4.0.1 ansible 2.2.0.0 redhat7.0 i use celery to run playbook to change passwd, the playbook task will stuck from time to time, when i …

---

## [Using complex data structures in templates](https://forum.ansible.com/t/using-complex-data-structures-in-templates/23259)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 6:41am UTC](https://forum.ansible.com/t/using-complex-data-structures-in-templates/23259 "2016-12-15T06:41:42Z")

</div>

Hi Some of my playbooks involve configuring files in languages such as PHP. The configuration is basically a large PHP array, for example this SimpleSAMLphp config file: \<?php $config = array ( 'language.i18n.backend…

---

## [Gather facts for more than 300 hosts is failing.](https://forum.ansible.com/t/gather-facts-for-more-than-300-hosts-is-failing/23195)

<div class="topic-metadata">

**Author:** [@lishyalak](https://forum.ansible.com/u/lishyalak)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 3:28am UTC](https://forum.ansible.com/t/gather-facts-for-more-than-300-hosts-is-failing/23195 "2016-12-15T03:28:40Z")

</div>

I am trying to gather facts into a json and it is failing for 400 servers. It gathers for 300 hosts without any issue, is there any limitation.

---

## [service module with Slackware](https://forum.ansible.com/t/service-module-with-slackware/23220)

<div class="topic-metadata">

**Author:** [@Steve\_Saner](https://forum.ansible.com/u/Steve_Saner)\
**Replies:** 4\
**Last updated:** [December 14, 2016, 10:04pm UTC](https://forum.ansible.com/t/service-module-with-slackware/23220 "2016-12-14T22:04:20Z")

</div>

I am finding that the service module in the core ansible modules does not work for starting/stopping services on a Slackware system. Slackware, as you might know, does not use the same startup script systems that most Li…

---

## [Traceback in azure\_rm.py on Centos 7.3 with Azure python SDK rc6](https://forum.ansible.com/t/traceback-in-azure-rm-py-on-centos-7-3-with-azure-python-sdk-rc6/23250)

<div class="topic-metadata">

**Author:** [@Jose\_Moreno](https://forum.ansible.com/u/Jose_Moreno)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 7:09pm UTC](https://forum.ansible.com/t/traceback-in-azure-rm-py-on-centos-7-3-with-azure-python-sdk-rc6/23250 "2016-12-14T19:09:44Z")

</div>

Hi there, I am trying to install Ansible on a clean, yum-updated CentOS 7.3 machine with the Azure modules, but azure\_rm.py refuses to work. I installed the Azure SDK version rc6, and I could not spot any error. I am us…

---

## [Ansible Tower 3.0.2 and Boto](https://forum.ansible.com/t/ansible-tower-3-0-2-and-boto/23246)

<div class="topic-metadata">

**Author:** [@Girish\_Khadke](https://forum.ansible.com/u/Girish_Khadke)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 6:57pm UTC](https://forum.ansible.com/t/ansible-tower-3-0-2-and-boto/23246 "2016-12-14T18:57:01Z")

</div>

Hi, I am running following stack for ansible : Ansible Tower 3.0.2 Ansible 2.1.1.0 (that comes default on Tower 3.0.2) Below is the output of pip freeze on Ansible Tower CentOS 6.8 machine which shows any python pack…

---

## [Problem in passing JSON string in environment to shell module](https://forum.ansible.com/t/problem-in-passing-json-string-in-environment-to-shell-module/23256)

<div class="topic-metadata">

**Author:** [@Nirav\_Radia](https://forum.ansible.com/u/Nirav_Radia)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 6:47pm UTC](https://forum.ansible.com/t/problem-in-passing-json-string-in-environment-to-shell-module/23256 "2016-12-14T18:47:39Z")

</div>

I am trying to pass JSON string in environment. \` name: Start {{service\_name}} shell: “\<\> --server.port={{service\_port}}"” environment: SPRING\_APPLICATION\_JSON: ‘{“test-host.1”:“{{test\_host\_1}}”,“test-host.2”:“{{tes…

---

## [How do I use Ansible facts in a custom module?](https://forum.ansible.com/t/how-do-i-use-ansible-facts-in-a-custom-module/23262)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 0\
**Last updated:** [December 14, 2016, 5:39pm UTC](https://forum.ansible.com/t/how-do-i-use-ansible-facts-in-a-custom-module/23262 "2016-12-14T17:39:29Z")

</div>

I’m trying to write my first Ansible module. How do I refer to the built-in facts that Ansible gathers during the setup phase? I just want to be able to do this inside my module, for example.I want to be able to do the “…

---

## [setup module command](https://forum.ansible.com/t/setup-module-command/23261)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 0\
**Last updated:** [December 14, 2016, 4:52pm UTC](https://forum.ansible.com/t/setup-module-command/23261 "2016-12-14T16:52:11Z")

</div>

Can you please provide me the setup module which will display all available options for setup, that way i can do with other modules also like ansible all -m setup ?

---

## [Unable to use ec2\_vpc\_route\_table to remove route tables.... anyone else?](https://forum.ansible.com/t/unable-to-use-ec2-vpc-route-table-to-remove-route-tables-anyone-else/23194)

<div class="topic-metadata">

**Author:** [@rc.loco](https://forum.ansible.com/u/rc.loco)\
**Replies:** 3\
**Last updated:** [December 14, 2016, 3:09pm UTC](https://forum.ansible.com/t/unable-to-use-ec2-vpc-route-table-to-remove-route-tables-anyone-else/23194 "2016-12-14T15:09:38Z")

</div>

Using version: ansible 2.2.1.0 (stable-2.2 acad2ba246) last updated 2016/12/07 11:28:43 (GMT -400) lib/ansible/modules/core: (detached HEAD 8139278530) last updated 2016/12/07 11:28:55 (GMT -400) lib/ansible/modules/e…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=528)

[Next page](https://forum.ansible.com/c/archives/31.md?page=530)
