# Ansible Project

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

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

**Page:** 165

---

## [Issues generating dynamic host in Ansible loop.](https://forum.ansible.com/t/issues-generating-dynamic-host-in-ansible-loop/31345)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 5\
**Last updated:** [September 24, 2019, 10:02am UTC](https://forum.ansible.com/t/issues-generating-dynamic-host-in-ansible-loop/31345 "2019-09-24T10:02:14Z")

</div>

I have an ansible play that fetches multiline data from the database and registers it a variable “command\_result” command\_result variable has has data like below. \` host6,host5\\targ3 host4,host3\\targ1 host1,host2,ho…

---

## [How to login to webpage using ansible ?](https://forum.ansible.com/t/how-to-login-to-webpage-using-ansible/31347)

<div class="topic-metadata">

**Author:** [@kasturi\_vivek](https://forum.ansible.com/u/kasturi_vivek)\
**Replies:** 0\
**Last updated:** [September 24, 2019, 7:59am UTC](https://forum.ansible.com/t/how-to-login-to-webpage-using-ansible/31347 "2019-09-24T07:59:15Z")

</div>

How to login to any webpage(having to log in ID and Password) and need to attach the file in the page(website page0 by using ansible. could you please help me with this - name: Check url uri: url: https:www.facebo…

---

## [How to trigger Ansible Play in a loop](https://forum.ansible.com/t/how-to-trigger-ansible-play-in-a-loop/31338)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [September 24, 2019, 7:00am UTC](https://forum.ansible.com/t/how-to-trigger-ansible-play-in-a-loop/31338 "2019-09-24T07:00:42Z")

</div>

command\_result variable get database record while could be multi-line. The below helps me loop over each record of the database. \` debug: msg: “This is a database line: {{ item }}” with\_items: “{{ command\_result.st…

---

## [Cisco switch identifying unused port more than 90 days](https://forum.ansible.com/t/cisco-switch-identifying-unused-port-more-than-90-days/31344)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [September 24, 2019, 6:00am UTC](https://forum.ansible.com/t/cisco-switch-identifying-unused-port-more-than-90-days/31344 "2019-09-24T06:00:26Z")

</div>

Hi Team, I want to identify the switch ports which are not used more than 90 days. Has anyone done this project using ansible ? Thanks Pushparaj

---

## [Ansible when condition check fails and does not behave as expected,](https://forum.ansible.com/t/ansible-when-condition-check-fails-and-does-not-behave-as-expected/31337)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 10:26am UTC](https://forum.ansible.com/t/ansible-when-condition-check-fails-and-does-not-behave-as-expected/31337 "2019-09-23T10:26:24Z")

</div>

I'm expecting set\_facts not to assign values to variables when the SQL query does not yeild any results. when condition command\_result.stdout == "" is meant for the same. Below is my playbook. Hello Mohtashim, you…

---

## [Loading of hostvars variable](https://forum.ansible.com/t/loading-of-hostvars-variable/31336)

<div class="topic-metadata">

**Author:** [@Benedikt\_Oehlrich](https://forum.ansible.com/u/Benedikt_Oehlrich)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 9:46am UTC](https://forum.ansible.com/t/loading-of-hostvars-variable/31336 "2019-09-23T09:46:16Z")

</div>

Hi everyone, I found some references that the “hostvars” variable is lazy loaded (https://groups.google.com/forum/#!topic/ansible-project/1Ub2HTgSN6Q , https://docs.ansible.com/ansible/latest/reference\_appendices/specia…

---

## [: Java Upgrade on Windows Server.](https://forum.ansible.com/t/java-upgrade-on-windows-server/31335)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 8:03am UTC](https://forum.ansible.com/t/java-upgrade-on-windows-server/31335 "2019-09-23T08:03:29Z")

</div>

Hi All, I’m looking for the Java upgrade playbook that will update java in the windows servers if anyone have please share with me. Here are the steps which I need to take care of. Disable Services from LB Pool Stop …

---

## [I am trying to get the key pair values from vault server and perform the task](https://forum.ansible.com/t/i-am-trying-to-get-the-key-pair-values-from-vault-server-and-perform-the-task/31334)

<div class="topic-metadata">

**Author:** [@Nagarajan\_Srg](https://forum.ansible.com/u/Nagarajan_Srg)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 7:28am UTC](https://forum.ansible.com/t/i-am-trying-to-get-the-key-pair-values-from-vault-server-and-perform-the-task/31334 "2019-09-23T07:28:22Z")

</div>

Hi, I have the mutiple-user credentials stored on my vault server and trying to pull those details from ansible and create a user on the host. Can some one direct me, how do I achieve this. I tried with with\_items and va…

---

## [Pip install docker](https://forum.ansible.com/t/pip-install-docker/31329)

<div class="topic-metadata">

**Author:** [@Alfredo\_De\_Luca](https://forum.ansible.com/u/Alfredo_De_Luca)\
**Replies:** 6\
**Last updated:** [September 21, 2019, 10:10pm UTC](https://forum.ansible.com/t/pip-install-docker/31329 "2019-09-21T22:10:15Z")

</div>

Hi all. I installed python pip with ansible then, in the same playbook, I use pip to install docker-py libs… but it keep saying “Unable to find any of pip3 to use. pip needs to be installed.” Then If I run the same pl…

---

## [How to create AWS Hosted Virtual Interface using Ansible?](https://forum.ansible.com/t/how-to-create-aws-hosted-virtual-interface-using-ansible/31330)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 0\
**Last updated:** [September 21, 2019, 6:01pm UTC](https://forum.ansible.com/t/how-to-create-aws-hosted-virtual-interface-using-ansible/31330 "2019-09-21T18:01:48Z")

</div>

Hi All, Is there an Ansible module to create a Hosted Private or Public Virtual interface in AWS? I can see a module only for Standard Virtual Interface. Could someone please help? Thanks Kishore

---

## [Dynamic Inventory for the On Prem Windows Servers](https://forum.ansible.com/t/dynamic-inventory-for-the-on-prem-windows-servers/31320)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 1\
**Last updated:** [September 21, 2019, 7:43am UTC](https://forum.ansible.com/t/dynamic-inventory-for-the-on-prem-windows-servers/31320 "2019-09-21T07:43:26Z")

</div>

Hi All, Can anyone advise if anybody created dynamic inventory for the on-prem Windows servers? I’m 150+ client and per client has 40+ server which is on PRD, DR, QA, UAT and Dev environments. Regards Vikrant

---

## [iptables, new chains, marking](https://forum.ansible.com/t/iptables-new-chains-marking/31328)

<div class="topic-metadata">

**Author:** [@Marc\_Singer](https://forum.ansible.com/u/Marc_Singer)\
**Replies:** 1\
**Last updated:** [September 21, 2019, 3:42am UTC](https://forum.ansible.com/t/iptables-new-chains-marking/31328 "2019-09-21T03:42:24Z")

</div>

Greetings, I’m working to reimplement an existing firewall using the iptables module. I’m not seeing a command to create (or make to exist) a chain. Seems like this would be a relatively normal thing to do. Of course, I…

---

## [New Ansible pre-release 2.9.0rc1](https://forum.ansible.com/t/new-ansible-pre-release-2-9-0rc1/31327)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 7:15pm UTC](https://forum.ansible.com/t/new-ansible-pre-release-2-9-0rc1/31327 "2019-09-20T19:15:52Z")

</div>

Hi all- we're happy to announce that the first release candidate of Ansible 2.9, Ansible-2.9.0rc1 rc1 is now available! How do you get it?

---

## [New Ansible Cache Plugin for Elasticsearch](https://forum.ansible.com/t/new-ansible-cache-plugin-for-elasticsearch/31326)

<div class="topic-metadata">

**Author:** [@Edward\_Perry](https://forum.ansible.com/u/Edward_Perry)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 6:23pm UTC](https://forum.ansible.com/t/new-ansible-cache-plugin-for-elasticsearch/31326 "2019-09-20T18:23:16Z")

</div>

Hi Folks, I recently create a Elasticsearch Cache PLUGIN for Ansibile. https://github.com/eperry/ansible-plugin-cache-elasticsearch Like the other plugins you can send FACTS to Elasticsearch, and create nice reports o…

---

## [Uninstalling Houdini](https://forum.ansible.com/t/uninstalling-houdini/31325)

<div class="topic-metadata">

**Author:** [@Bryce\_Gattis](https://forum.ansible.com/u/Bryce_Gattis)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 5:42pm UTC](https://forum.ansible.com/t/uninstalling-houdini/31325 "2019-09-20T17:42:45Z")

</div>

Hi, I’m trying to uninstall houdini 17.0 with Ansible, I’ve tried the following: name: Uninstall Houdini 17.0.416 hosts: all tasks: name: uninstall houdini win\_command: cmd.exe “C:\\Program Files\\Side Effects So…

---

## [Ansible in virtualenv mixing python with os](https://forum.ansible.com/t/ansible-in-virtualenv-mixing-python-with-os/31323)

<div class="topic-metadata">

**Author:** [@Mr\_Decisive](https://forum.ansible.com/u/Mr_Decisive)\
**Replies:** 5\
**Last updated:** [September 20, 2019, 3:19pm UTC](https://forum.ansible.com/t/ansible-in-virtualenv-mixing-python-with-os/31323 "2019-09-20T15:19:41Z")

</div>

Hi, I have this error when running a playbook to connect to azure to update virtual machines. “Failed to import the required Python library (packaging) on Python /usr/bin/python. Please read module documentation and i…

---

## [install chrome-msi with ansible](https://forum.ansible.com/t/install-chrome-msi-with-ansible/31322)

<div class="topic-metadata">

**Author:** [@astrakid](https://forum.ansible.com/u/astrakid)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 7:50am UTC](https://forum.ansible.com/t/install-chrome-msi-with-ansible/31322 "2019-09-20T07:50:40Z")

</div>

hi, im am not able to deploy google chrome msi via ansible on wondows hosts. using the exe-file is working ok, but with some side effects. was anyone able to install the chrome-msi via win\_package? tried msi with: n…

---

## [Image Snapshot Module for Openstack](https://forum.ansible.com/t/image-snapshot-module-for-openstack/31317)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 1\
**Last updated:** [September 20, 2019, 7:33am UTC](https://forum.ansible.com/t/image-snapshot-module-for-openstack/31317 "2019-09-20T07:33:38Z")

</div>

Hi , The ansible has a module to take volume snapshot for Openstack: name: create snapshot hosts: all tasks: name: create snapshot os\_volume\_snapshot: state: present cloud: test availability\_zone: nova display\_…

---

## [How can I run the commnads in Linux vm after creation with vmware\_guest](https://forum.ansible.com/t/how-can-i-run-the-commnads-in-linux-vm-after-creation-with-vmware-guest/31306)

<div class="topic-metadata">

**Author:** [@phani\_akkina](https://forum.ansible.com/u/phani_akkina)\
**Replies:** 5\
**Last updated:** [September 20, 2019, 6:41am UTC](https://forum.ansible.com/t/how-can-i-run-the-commnads-in-linux-vm-after-creation-with-vmware-guest/31306 "2019-09-20T06:41:37Z")

</div>

Hi All, I am deploying vms using vmware\_guest module in vcenter. I need to run some commands after the creation of the vms either Windows or Linux. I am able run the commands in Windows with runonce. Now I blocked to …

---

## [how to filter with variables instead of literals in ec2\_instance\_facts?](https://forum.ansible.com/t/how-to-filter-with-variables-instead-of-literals-in-ec2-instance-facts/27464)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 10\
**Last updated:** [September 19, 2019, 10:36pm UTC](https://forum.ansible.com/t/how-to-filter-with-variables-instead-of-literals-in-ec2-instance-facts/27464 "2019-09-19T22:36:56Z")

</div>

Trying to use ec2\_instance\_facts. How do I use variables instead of literals when filtering on tags? This works fine: ec2\_instance\_facts: filters: “tag:Name” : “Some\_name” register: instance\_facts But if I have t…

---

## [Do not wish to use python for Ansible's file module.](https://forum.ansible.com/t/do-not-wish-to-use-python-for-ansibles-file-module/31313)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 6:07pm UTC](https://forum.ansible.com/t/do-not-wish-to-use-python-for-ansibles-file-module/31313 "2019-09-19T18:07:16Z")

</div>

No. It is not. Cheers, -vlado

---

## [calling a role and passing it a different host](https://forum.ansible.com/t/calling-a-role-and-passing-it-a-different-host/31318)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 5:20pm UTC](https://forum.ansible.com/t/calling-a-role-and-passing-it-a-different-host/31318 "2019-09-19T17:20:45Z")

</div>

I have playbook that is running for a network switch. From within this playbook, I want to call a role which will run a IOS Ansible module but the host should be a different device (host). The different device is its ups…

---

## [Get file(s) from a remote host to local host](https://forum.ansible.com/t/get-file-s-from-a-remote-host-to-local-host/31310)

<div class="topic-metadata">

**Author:** [@R-JRI](https://forum.ansible.com/u/R-JRI)\
**Replies:** 2\
**Last updated:** [September 19, 2019, 5:10pm UTC](https://forum.ansible.com/t/get-file-s-from-a-remote-host-to-local-host/31310 "2019-09-19T17:10:06Z")

</div>

Hi, I created a simple yml file to get file or files from a remote host to local host: $ cat fetch.yml

---

## [Ansible Help..](https://forum.ansible.com/t/ansible-help/31265)

<div class="topic-metadata">

**Author:** [@Greg\_Profitt](https://forum.ansible.com/u/Greg_Profitt)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 3:27pm UTC](https://forum.ansible.com/t/ansible-help/31265 "2019-09-19T15:27:45Z")

</div>

Trying to deploy a few .exe files to Windows systems. Both are installl but the task just hangs… TASK \[Install Erlang\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible for academic distributed experiment](https://forum.ansible.com/t/ansible-for-academic-distributed-experiment/31315)

<div class="topic-metadata">

**Author:** [@Matthieu\_Simonin](https://forum.ansible.com/u/Matthieu_Simonin)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 10:02am UTC](https://forum.ansible.com/t/ansible-for-academic-distributed-experiment/31315 "2019-09-19T10:02:34Z")

</div>

Dear All, I’d like to share what we are doing using Ansible in an academic context and maybe bootstrap some discussions about our specific implementation and needs.

---

## [How to Avoid Python dependency on Target servers for Ansible file module](https://forum.ansible.com/t/how-to-avoid-python-dependency-on-target-servers-for-ansible-file-module/31312)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 7:03am UTC](https://forum.ansible.com/t/how-to-avoid-python-dependency-on-target-servers-for-ansible-file-module/31312 "2019-09-19T07:03:24Z")

</div>

I have the below file module that helps copy files or create directory on the target. - file: path: "{{ vars\[inventory\_hostname\] }}/{{ Relative\_Path }}/backup" state: directory recurse: yes mode: "u=rwx,g=rw,o=r" U…

---

## [root user password needs to set for many servers however the password should be different password, not to be same](https://forum.ansible.com/t/root-user-password-needs-to-set-for-many-servers-however-the-password-should-be-different-password-not-to-be-same/31299)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 3\
**Last updated:** [September 18, 2019, 4:41pm UTC](https://forum.ansible.com/t/root-user-password-needs-to-set-for-many-servers-however-the-password-should-be-different-password-not-to-be-same/31299 "2019-09-18T16:41:59Z")

</div>

Hi, manually login to each servers and setting root password, login to server1, set password “password123” ; then login to server2 set password “redhat123” like this i’m looking for ansible playbook, where i can automat…

---

## [customs list of paths for searching templates?](https://forum.ansible.com/t/customs-list-of-paths-for-searching-templates/31288)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 4:14pm UTC](https://forum.ansible.com/t/customs-list-of-paths-for-searching-templates/31288 "2019-09-18T16:14:27Z")

</div>

HI! How can I specify a ordered custom list of paths where a template task looks for Jinja2 template files? Ciao, Michael.

---

## [error using "become"?](https://forum.ansible.com/t/error-using-become/31307)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 5\
**Last updated:** [September 18, 2019, 3:24pm UTC](https://forum.ansible.com/t/error-using-become/31307 "2019-09-18T15:24:01Z")

</div>

GNU/Linux: CentOS Linux release 7.6.1810 (Core) Playbook:

---

## [Ansible Contributor Summit 7 (Part of AnsibleFest 2019 Atlanta)](https://forum.ansible.com/t/ansible-contributor-summit-7-part-of-ansiblefest-2019-atlanta/31264)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 2:27pm UTC](https://forum.ansible.com/t/ansible-contributor-summit-7-part-of-ansiblefest-2019-atlanta/31264 "2019-09-18T14:27:04Z")

</div>

Hi everybody. As usual, the day before AnsibleFest we are hosting Contributor Summit. this will take place in Atlanta, though we welcome people to join virtually for some/all of the day. Ansible Contributor Summit is m…

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

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