# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=313

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

**Page:** 314

---

## [Copy file(s) locally in Ansible machine](https://forum.ansible.com/t/copy-file-s-locally-in-ansible-machine/25470)

<div class="topic-metadata">

**Author:** [@Nick\_Mellor](https://forum.ansible.com/u/Nick_Mellor)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 12:39am UTC](https://forum.ansible.com/t/copy-file-s-locally-in-ansible-machine/25470 "2017-09-13T00:39:29Z")

</div>

Hi, My playbook selects a bunch of files from various places on the Ansible host, puts them together in a directory, processes them then sends that processed directory to remote servers, something like this: copy sou…

---

## [Variables within variables](https://forum.ansible.com/t/variables-within-variables/25468)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 10:38pm UTC](https://forum.ansible.com/t/variables-within-variables/25468 "2017-09-12T22:38:19Z")

</div>

don't stack mustaches: {{ (ansible\[ansible\_default\_ipv4\]\['interface'\]\['speed'\])|int|abs }}

---

## [passing variables in  ansible 2.3 not working](https://forum.ansible.com/t/passing-variables-in-ansible-2-3-not-working/25461)

<div class="topic-metadata">

**Author:** [@Yz\_Xyz](https://forum.ansible.com/u/Yz_Xyz)\
**Replies:** 10\
**Last updated:** [September 12, 2017, 9:51pm UTC](https://forum.ansible.com/t/passing-variables-in-ansible-2-3-not-working/25461 "2017-09-12T21:51:26Z")

</div>

Hi - I want to pass variable to template… Tried known methods to pass variable to template but gives errors. test Playbook : - name: Creating template template: src: value1.test.yml.j2 dest: "/u01/{{ansible…

---

## [option creates broken on Solaris10](https://forum.ansible.com/t/option-creates-broken-on-solaris10/25463)

<div class="topic-metadata">

**Author:** [@Bernhard\_L](https://forum.ansible.com/u/Bernhard_L)\
**Replies:** 1\
**Last updated:** [September 12, 2017, 6:26pm UTC](https://forum.ansible.com/t/option-creates-broken-on-solaris10/25463 "2017-09-12T18:26:46Z")

</div>

Hi, Running the script module with the option “creates” is broken (at least since 2.3): /bin/sh on Solaris10 is not POSIX compliant and the “test” command does not have the option “-e”, therefore the return code is alw…

---

## [Ansible Tower Playbook issue: need to limit SSH connections to specific Cisco switch hosts within each task](https://forum.ansible.com/t/ansible-tower-playbook-issue-need-to-limit-ssh-connections-to-specific-cisco-switch-hosts-within-each-task/25465)

<div class="topic-metadata">

**Author:** [@mark.kleinhaus](https://forum.ansible.com/u/mark.kleinhaus)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 5:27pm UTC](https://forum.ansible.com/t/ansible-tower-playbook-issue-need-to-limit-ssh-connections-to-specific-cisco-switch-hosts-within-each-task/25465 "2017-09-12T17:27:12Z")

</div>

I’m new to Ansible Automation and hopefully this is a simple fix- Running Ansible Tower 2.4.4 on Windows Server 2012 R2. I’m using the ios\_command and ios\_config modules. I have a group called “XYZ” that contains host…

---

## [extract remote windows registry value](https://forum.ansible.com/t/extract-remote-windows-registry-value/25460)

<div class="topic-metadata">

**Author:** [@misha](https://forum.ansible.com/u/misha)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 2:28pm UTC](https://forum.ansible.com/t/extract-remote-windows-registry-value/25460 "2017-09-12T14:28:38Z")

</div>

Hi, I’m using the playbook to extract registry key of a product using win\_reg\_stat module \` name: check product installed hosts: windows tasks: name: phase one win\_reg\_stat: path: HKLM:\\SOFTWARE\\Microsoft\\Win…

---

## [Using Netbox to set variables in my playbook](https://forum.ansible.com/t/using-netbox-to-set-variables-in-my-playbook/25456)

<div class="topic-metadata">

**Author:** [@Marco\_Baldanza](https://forum.ansible.com/u/Marco_Baldanza)\
**Replies:** 2\
**Last updated:** [September 12, 2017, 1:41pm UTC](https://forum.ansible.com/t/using-netbox-to-set-variables-in-my-playbook/25456 "2017-09-12T13:41:09Z")

</div>

Hi all, I currently use Ansible to generate all the network device configs and store them locally which works great. However, i currently have to store all my variables in a static .yml file. Is it possible for ansible…

---

## [how to ansible.cfg file setting](https://forum.ansible.com/t/how-to-ansible-cfg-file-setting/25457)

<div class="topic-metadata">

**Author:** [@hwang.yousik](https://forum.ansible.com/u/hwang.yousik)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 9:07am UTC](https://forum.ansible.com/t/how-to-ansible-cfg-file-setting/25457 "2017-09-12T09:07:28Z")

</div>

Hi, I am suffering from this issue;; An ansible server tries to issue a command on the switch, but the error drops as indicated by the following error : 192.168.20.31 | UNREACHABLE! =\> { “changed”: false, “msg”: “Aut…

---

## [Ansible 2.4.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-4-0-rc2-is-ready-for-testing/25455)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 3:49am UTC](https://forum.ansible.com/t/ansible-2-4-0-rc2-is-ready-for-testing/25455 "2017-09-12T03:49:59Z")

</div>

Hi all, we're proceeding down the path towards 2.4.0 final. We've just pushed RC2 for 2.4.0 up to \[http://releases.ansible.com\](http://releases.ansible.com) and it is now available for testing. Note that we're trying o…

---

## [Running simple ad hoc commands via script module not working](https://forum.ansible.com/t/running-simple-ad-hoc-commands-via-script-module-not-working/25441)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 4\
**Last updated:** [September 11, 2017, 3:13pm UTC](https://forum.ansible.com/t/running-simple-ad-hoc-commands-via-script-module-not-working/25441 "2017-09-11T15:13:05Z")

</div>

I have a playbook and a script file which contains a couple of simple ad hoc commands, but it is not working. I have 2 VMs on my desktop which are linked up via custom host-only 10.10.x.x network. Connection is working,…

---

## [Ansible playbook failure](https://forum.ansible.com/t/ansible-playbook-failure/25453)

<div class="topic-metadata">

**Author:** [@Vishnu\_Kamavaram](https://forum.ansible.com/u/Vishnu_Kamavaram)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 2:25pm UTC](https://forum.ansible.com/t/ansible-playbook-failure/25453 "2017-09-11T14:25:21Z")

</div>

COMPONENT NAME -custom ansible modules ANSIBLE VERSION ansible 2.3.1.0 config file = configured module search path = \[u'/home/AnsibleModules/bin'\] python version = 2.7.5 (default, Sep 5 2016, 02:30:38) \[GCC 4.8.5…

---

## [include\_vars "m.yml must be stored as a dictionary/hash"](https://forum.ansible.com/t/include-vars-m-yml-must-be-stored-as-a-dictionary-hash/25452)

<div class="topic-metadata">

**Author:** [@Snd\_LP](https://forum.ansible.com/u/Snd_LP)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 1:34pm UTC](https://forum.ansible.com/t/include-vars-m-yml-must-be-stored-as-a-dictionary-hash/25452 "2017-09-11T13:34:48Z")

</div>

keep on getting “m.yml must be stored as a dictionary/hash” in playbook despite having no comments or space. Any clue? \[Main.yml\] \` name: Include all .yml include\_vars: dir: ‘tasks’ extensions: json yml #(OR) n…

---

## [Referencing/adapting global users list for different hosts](https://forum.ansible.com/t/referencing-adapting-global-users-list-for-different-hosts/25451)

<div class="topic-metadata">

**Author:** [@Sim\_Tov](https://forum.ansible.com/u/Sim_Tov)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 1:32pm UTC](https://forum.ansible.com/t/referencing-adapting-global-users-list-for-different-hosts/25451 "2017-09-11T13:32:35Z")

</div>

Hello, I would like to have a central global list of users with all relevant data, like this: users: username: alice groups: adm, media, web sudo: yes shell: /bin/bash username: bob groups: web sudo: no shell: …

---

## [template not expanding on Ubuntu 12.04 target host](https://forum.ansible.com/t/template-not-expanding-on-ubuntu-12-04-target-host/25417)

<div class="topic-metadata">

**Author:** [@seb.stark](https://forum.ansible.com/u/seb.stark)\
**Replies:** 1\
**Last updated:** [September 11, 2017, 1:26pm UTC](https://forum.ansible.com/t/template-not-expanding-on-ubuntu-12-04-target-host/25417 "2017-09-11T13:26:29Z")

</div>

Why would the following template not expand (instead it is copied verbatim) on an Ubuntu 12.04 host, while it expands alright on a similar 16.04 host? Client is ansible 2.3.1.0. \` cat templates/etc/security/access.con…

---

## [how to join two json data structure to perform a join operation](https://forum.ansible.com/t/how-to-join-two-json-data-structure-to-perform-a-join-operation/25442)

<div class="topic-metadata">

**Author:** [@Chris7444](https://forum.ansible.com/u/Chris7444)\
**Replies:** 1\
**Last updated:** [September 11, 2017, 10:27am UTC](https://forum.ansible.com/t/how-to-join-two-json-data-structure-to-perform-a-join-operation/25442 "2017-09-11T10:27:45Z")

</div>

Hi I am very new with ansible and I am struggling to solve the following “problem” I have two json inputs a list of “locations” (you can think them as stores). For each "location"I have the name and the unique ID and…

---

## [how to get the controller ip address](https://forum.ansible.com/t/how-to-get-the-controller-ip-address/25446)

<div class="topic-metadata">

**Author:** [@Ehab\_Aboudaya](https://forum.ansible.com/u/Ehab_Aboudaya)\
**Replies:** 2\
**Last updated:** [September 11, 2017, 9:52am UTC](https://forum.ansible.com/t/how-to-get-the-controller-ip-address/25446 "2017-09-11T09:52:51Z")

</div>

hello all i am trying to get the controller ip address that is used to run the playbook. The ip is the one when the ssh connection establishes to remote. debug: msg=“{{ (ansible\_env|default({})).SSH\_CLIENT|default(‘’)…

---

## [Ansible Tower](https://forum.ansible.com/t/ansible-tower/25449)

<div class="topic-metadata">

**Author:** [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 8:36am UTC](https://forum.ansible.com/t/ansible-tower/25449 "2017-09-11T08:36:54Z")

</div>

Can you please help me about these feature of Ansible Tower: Can Ansible tower automatically upgrade any software when the latest version has come over a period?. Can Ansible tower do monitoring like Zabbix do?

---

## [unable to run the playbook python module is unable to call from playbook task | error is The offending line appears to be:       - name: minify\_json      minify\_json.py that is module i am calling in playbook](https://forum.ansible.com/t/unable-to-run-the-playbook-python-module-is-unable-to-call-from-playbook-task-error-is-the-offending-line-appears-to-be-name-minify-json-minify-json-py-that-is-module-i-am-calling-in-playbook/25448)

<div class="topic-metadata">

**Author:** [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 7:37am UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-python-module-is-unable-to-call-from-playbook-task-error-is-the-offending-line-appears-to-be-name-minify-json-minify-json-py-that-is-module-i-am-calling-in-playbook/25448 "2017-09-11T07:37:27Z")

</div>

Please suggest what is the best practice to include the any python module in ansible playbook and run the task . Without any error right now i am getting following error while running playbook Following workaround alrea…

---

## [win\_package with no path in 2.3.2](https://forum.ansible.com/t/win-package-with-no-path-in-2-3-2/25445)

<div class="topic-metadata">

**Author:** [@Jim\_Heald](https://forum.ansible.com/u/Jim_Heald)\
**Replies:** 1\
**Last updated:** [September 10, 2017, 6:20am UTC](https://forum.ansible.com/t/win-package-with-no-path-in-2-3-2/25445 "2017-09-10T06:20:28Z")

</div>

I’m currently using Ansible 2.3.2, and I want to uninstall a program from a group of computers. According to the UninstallString from the registry, it just uses msiexec /x with a certain product ID. Therefore, I’d think …

---

## [Relationship between meta/main.yml platform and ansible\_distribution?](https://forum.ansible.com/t/relationship-between-meta-main-yml-platform-and-ansible-distribution/23851)

<div class="topic-metadata">

**Author:** [@Julio\_Lajara](https://forum.ansible.com/u/Julio_Lajara)\
**Replies:** 4\
**Last updated:** [September 9, 2017, 10:04pm UTC](https://forum.ansible.com/t/relationship-between-meta-main-yml-platform-and-ansible-distribution/23851 "2017-09-09T22:04:42Z")

</div>

Is there any real relationship between the platform values in meta/main.yml (via the default ansible-galaxy init template) and ansible\_distribution values or is the platform value basically free form? Im a bit confused …

---

## [Timeline to automate 1k+ servers](https://forum.ansible.com/t/timeline-to-automate-1k-servers/25443)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 0\
**Last updated:** [September 9, 2017, 12:15am UTC](https://forum.ansible.com/t/timeline-to-automate-1k-servers/25443 "2017-09-09T00:15:37Z")

</div>

Hi all - Given a production environment with slightly more than 1000 VMs, across four geographically dispersed datacenters, how long would you allocate for a moderately paced (non-aggressive timeline) to implement ansib…

---

## [BigIP\_Pool monitor template not found](https://forum.ansible.com/t/bigip-pool-monitor-template-not-found/25412)

<div class="topic-metadata">

**Author:** [@Sean\_G](https://forum.ansible.com/u/Sean_G)\
**Replies:** 2\
**Last updated:** [September 8, 2017, 8:25pm UTC](https://forum.ansible.com/t/bigip-pool-monitor-template-not-found/25412 "2017-09-08T20:25:52Z")

</div>

I have a play that works when I use: monitors: “/Common/http” or any of the other default montors, but when I try to use one that I created manually I get “01070022:3: The monitor template /Common/SPIFFYCUSTOM\_MONITOR w…

---

## [Running tasks in parallel in a playbook](https://forum.ansible.com/t/running-tasks-in-parallel-in-a-playbook/13371)

<div class="topic-metadata">

**Author:** [@CS1](https://forum.ansible.com/u/CS1)\
**Replies:** 11\
**Last updated:** [September 8, 2017, 5:42pm UTC](https://forum.ansible.com/t/running-tasks-in-parallel-in-a-playbook/13371 "2017-09-08T17:42:12Z")

</div>

Is there a way to execute tasks in a playbook in parallel on a single host? I expected something like the following to work based on the docs:

---

## [Multiple tomcats and wait for app to start](https://forum.ansible.com/t/multiple-tomcats-and-wait-for-app-to-start/25437)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 1\
**Last updated:** [September 8, 2017, 2:50pm UTC](https://forum.ansible.com/t/multiple-tomcats-and-wait-for-app-to-start/25437 "2017-09-08T14:50:55Z")

</div>

Friends: Thank you in advance for your time and attention. I am writing a playbook do the following on 6 tomcat servers. a. start tomcat b. wait for the app to come up on http://localhost:8080/tellMyVersion/version.j…

---

## [Raise Exception("Cannot import pyOpenSSL")](https://forum.ansible.com/t/raise-exception-cannot-import-pyopenssl/23939)

<div class="topic-metadata">

**Author:** [@Tiago\_Pimpao](https://forum.ansible.com/u/Tiago_Pimpao)\
**Replies:** 4\
**Last updated:** [September 8, 2017, 12:02pm UTC](https://forum.ansible.com/t/raise-exception-cannot-import-pyopenssl/23939 "2017-09-08T12:02:56Z")

</div>

Hi there, I’m getting this error when running ansible. \[root@localhost ansible\]# ansible windows -i hosts -m win\_ping -vvv Using /etc/ansible/ansible.cfg as config file An exception occurred during task execution. Th…

---

## [How to get item by item from the item.stdout so you can execute a command for each item on the item.stdout.](https://forum.ansible.com/t/how-to-get-item-by-item-from-the-item-stdout-so-you-can-execute-a-command-for-each-item-on-the-item-stdout/18688)

<div class="topic-metadata">

**Author:** [@Esteban\_Freire](https://forum.ansible.com/u/Esteban_Freire)\
**Replies:** 6\
**Last updated:** [September 8, 2017, 11:28am UTC](https://forum.ansible.com/t/how-to-get-item-by-item-from-the-item-stdout-so-you-can-execute-a-command-for-each-item-on-the-item-stdout/18688 "2017-09-08T11:28:08Z")

</div>

Hi all, I have the two following actions: \` name: Getting the IDs for the VMs running under the user sudo: True sudo\_user: oneadmin shell: onevm list | grep {{ item.value.login\_name }} | awk ‘BEGIN {FS=" "}{print…

---

## [How do I get the Ansible plugin to work with Jenkins?](https://forum.ansible.com/t/how-do-i-get-the-ansible-plugin-to-work-with-jenkins/20429)

<div class="topic-metadata">

**Author:** [@Kiran1](https://forum.ansible.com/u/Kiran1)\
**Replies:** 6\
**Last updated:** [September 8, 2017, 11:12am UTC](https://forum.ansible.com/t/how-do-i-get-the-ansible-plugin-to-work-with-jenkins/20429 "2017-09-08T11:12:16Z")

</div>

My Ansible (version 1.9.5) server is on its own dedicated CentOS 7 server. My Jenkins (version 1.6) server is on its own dedicated CentOS 7 server. I installed the Ansible plugin for Jenkins. I created a New Item that in…

---

## [Q: Obscure standard variables?](https://forum.ansible.com/t/q-obscure-standard-variables/25410)

<div class="topic-metadata">

**Author:** [@Sieds\_Pallas](https://forum.ansible.com/u/Sieds_Pallas)\
**Replies:** 3\
**Last updated:** [September 8, 2017, 7:39am UTC](https://forum.ansible.com/t/q-obscure-standard-variables/25410 "2017-09-08T07:39:35Z")

</div>

Hi, I am working trhough some tutorials, and I have a question; I hope this is the proper forum to post it. In the solution provided with the tutorial I see some variables used that I do not understand: inventory\_host…

---

## [Ansible host variable access](https://forum.ansible.com/t/ansible-host-variable-access/25436)

<div class="topic-metadata">

**Author:** [@parwinderjit\_singh](https://forum.ansible.com/u/parwinderjit_singh)\
**Replies:** 2\
**Last updated:** [September 8, 2017, 6:27am UTC](https://forum.ansible.com/t/ansible-host-variable-access/25436 "2017-09-08T06:27:53Z")

</div>

Hi, Need some help My host file is \[splunk-head\] parv-vm-01 ansible\_ssh\_host=10.48.21.99 host\_fqdn=parv-vm-01 \[splunk-indexer\] parv-vm-02 ansible\_ssh\_host=10.48.21.94 host\_fqdn1=parv-vm-02 parv-vm-03 ansible\_ssh\_h…

---

## [Ansible 2.4 and yum tasks on CentOS 5](https://forum.ansible.com/t/ansible-2-4-and-yum-tasks-on-centos-5/25433)

<div class="topic-metadata">

**Author:** [@John\_G](https://forum.ansible.com/u/John_G)\
**Replies:** 1\
**Last updated:** [September 8, 2017, 5:15am UTC](https://forum.ansible.com/t/ansible-2-4-and-yum-tasks-on-centos-5/25433 "2017-09-08T05:15:43Z")

</div>

I installed python26 from the epel repo on CentOS 5. The yum module fails. Is there a better option than to fall back and use the shell module to run yum commands? \` \[root@qaansible2 ansible\]# rpm -q ansible ansible-2…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=312)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=314)
