# Ansible Project

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

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

**Page:** 132

---

## [need to run powershell script without copying to target host](https://forum.ansible.com/t/need-to-run-powershell-script-without-copying-to-target-host/32717)

<div class="topic-metadata">

**Author:** [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 7:55pm UTC](https://forum.ansible.com/t/need-to-run-powershell-script-without-copying-to-target-host/32717 "2020-04-17T19:55:01Z")

</div>

Hi All, i have machien Ansible running in RHEL 7 Target host: Windows server 2019 i was able run powershell script by copying from RHEL to windows ,working fine name: Copy a single file win\_copy: src: “{{ playboo…

---

## [New Ansible releases 2.9.7, 2.8.11, and 2.7.17 \[Revised\]](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32719)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 6:11pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32719 "2020-04-17T18:11:30Z")

</div>

This is an updated version of the original release announcement. It has been updated to include CVE details in the “What’s new” section. Hi all- we’re happy to announce that the general release of Ansible 2.9.7, 2.8.1…

---

## [\[HOSTVARS\]\[MERGED\] Unexpected behavior with merge variables of different host which are in several groups](https://forum.ansible.com/t/hostvars-merged-unexpected-behavior-with-merge-variables-of-different-host-which-are-in-several-groups/32675)

<div class="topic-metadata">

**Author:** [@Baptiste\_Doublet](https://forum.ansible.com/u/Baptiste_Doublet)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 3:00pm UTC](https://forum.ansible.com/t/hostvars-merged-unexpected-behavior-with-merge-variables-of-different-host-which-are-in-several-groups/32675 "2020-04-17T15:00:30Z")

</div>

Hi Everybody, I have a problem that I can’t resolve on my own. I want to deploy an etcd cluster with postgresql on the same servers I have three servers and this is my inventory file: all: children: etcd\_cluster: # …

---

## [Aruba\_command no output to my Bash](https://forum.ansible.com/t/aruba-command-no-output-to-my-bash/32713)

<div class="topic-metadata">

**Author:** [@Mac](https://forum.ansible.com/u/Mac)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 12:47pm UTC](https://forum.ansible.com/t/aruba-command-no-output-to-my-bash/32713 "2020-04-17T12:47:49Z")

</div>

Hi As a newbie to Ansible i have simple question for my understanding , if do a “show version” via a Playbook on any Network device i will get the output to the bash is started the playbook right ? for Example i to a …

---

## [vpshere: how to change port group for 2nd NIC on VM via ansible](https://forum.ansible.com/t/vpshere-how-to-change-port-group-for-2nd-nic-on-vm-via-ansible/28636)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 12:32pm UTC](https://forum.ansible.com/t/vpshere-how-to-change-port-group-for-2nd-nic-on-vm-via-ansible/28636 "2020-04-17T12:32:19Z")

</div>

Scenario: VM on ESXi with 2 NICS Network\_adapter1: Fixed port group/VLAN Network\_adapter2: Variable port group/VLAN So all i am trying to achieve with ansible is to modify the port group/VLAN of Network\_adapter2, is t…

---

## [query on ansible](https://forum.ansible.com/t/query-on-ansible/32710)

<div class="topic-metadata">

**Author:** [@mahesh\_g\_o](https://forum.ansible.com/u/mahesh_g_o)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 11:18am UTC](https://forum.ansible.com/t/query-on-ansible/32710 "2020-04-17T11:18:06Z")

</div>

I have below playbook: i have put a loop, there are 8 aggr and 4 protocols: this playbook output is like after every 4 loop, it increments aggr and protocols. output of the playbook is: svm1,svm2,svm3,svm4—aggr1 and n…

---

## [Playbook to reboot the machine infinite times](https://forum.ansible.com/t/playbook-to-reboot-the-machine-infinite-times/32707)

<div class="topic-metadata">

**Author:** [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 9:42am UTC](https://forum.ansible.com/t/playbook-to-reboot-the-machine-infinite-times/32707 "2020-04-17T09:42:17Z")

</div>

Hi, Need help to create playbook, server need to reboot over night in loop, like 100 time’s I need to reboot and It should stop and collect the event viewer logs. Do we have module already? Thanks, Pavan

---

## [Need help on json query call in ansible](https://forum.ansible.com/t/need-help-on-json-query-call-in-ansible/32692)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 8:07am UTC](https://forum.ansible.com/t/need-help-on-json-query-call-in-ansible/32692 "2020-04-17T08:07:23Z")

</div>

Hi Ansible Guru’s I am using the CSV file as below for nfs volume migration as we have 1000 servers with 100 volumes. Hence, i would like to make to host inventory using add\_host file instead using inventory file. Howev…

---

## [New Ansible releases 2.9.7, 2.8.11, and 2.7.17](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17/32706)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 3:11am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17/32706 "2020-04-17T03:11:28Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.7, 2.8.11, and 2.7.17 are now available! How do you get it?

---

## [ec2\_vpc\_route\_table to delete a given subnet](https://forum.ansible.com/t/ec2-vpc-route-table-to-delete-a-given-subnet/32704)

<div class="topic-metadata">

**Author:** [@Kyle\_Sloan](https://forum.ansible.com/u/Kyle_Sloan)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 8:57pm UTC](https://forum.ansible.com/t/ec2-vpc-route-table-to-delete-a-given-subnet/32704 "2020-04-16T20:57:07Z")

</div>

Hello all, I am using the ec2\_vpc\_route\_table module and am able to create the route table, as well as adding more subnets with the “subnets”, “purge\_subnets” and “lookup” parameters. I however have been unable to deter…

---

## [Need some data filter from meta data which came from custom module.](https://forum.ansible.com/t/need-some-data-filter-from-meta-data-which-came-from-custom-module/32700)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 1:54pm UTC](https://forum.ansible.com/t/need-some-data-filter-from-meta-data-which-came-from-custom-module/32700 "2020-04-16T13:54:36Z")

</div>

I am getting following output from my ansible custom module ‘{‘failed’: False, ‘meta’: {‘Unused Policy Rules IDS’: \[0, 3, 4, 5, 6\]}, ‘changed’: False}’ to one variable .I need to fetch only “{‘Unused Policy Rules IDS’: \[…

---

## ["Win\_Command" module not working to connect localhost to run Powershell script from ansible which is installed in windows10](https://forum.ansible.com/t/win-command-module-not-working-to-connect-localhost-to-run-powershell-script-from-ansible-which-is-installed-in-windows10/32695)

<div class="topic-metadata">

**Author:** [@Pavan\_K\_Kumar](https://forum.ansible.com/u/Pavan_K_Kumar)\
**Replies:** 3\
**Last updated:** [April 16, 2020, 1:19pm UTC](https://forum.ansible.com/t/win-command-module-not-working-to-connect-localhost-to-run-powershell-script-from-ansible-which-is-installed-in-windows10/32695 "2020-04-16T13:19:10Z")

</div>

Hello Experts, I’m new to Ansible and PowerShell. I have installed cygwin in my windows 10 Operating system and installed ansible and its related packages as per below mail. https://geekflare.com/ansible-installation-…

---

## [Error message -  "module\_stderr": "/bin/sh: 1: powershell: not found\\n", when running a powershell through win\_command](https://forum.ansible.com/t/error-message-module-stderr-bin-sh-1-powershell-not-found-n-when-running-a-powershell-through-win-command/32304)

<div class="topic-metadata">

**Author:** [@Karthik\_Kumar](https://forum.ansible.com/u/Karthik_Kumar)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 1:16pm UTC](https://forum.ansible.com/t/error-message-module-stderr-bin-sh-1-powershell-not-found-n-when-running-a-powershell-through-win-command/32304 "2020-04-16T13:16:49Z")

</div>

Iam trying to run the below simple playbook in ansible in windows 10 through ubuntu installed. But Iam getting error as “module\_stderr”: “/bin/sh: 1: powershell: not found\\n”, “module\_stdout”: Please let me know how to…

---

## [Is anyone work on fortigate thorugh network\_cli as a connection type.](https://forum.ansible.com/t/is-anyone-work-on-fortigate-thorugh-network-cli-as-a-connection-type/32701)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 12:32pm UTC](https://forum.ansible.com/t/is-anyone-work-on-fortigate-thorugh-network-cli-as-a-connection-type/32701 "2020-04-16T12:32:12Z")

</div>

Hi, I have tried to work through connection type network\_cli but unable to do it.Ansible says ansible\_network\_os type is not supported.If anyone worked on it please help me to resolve this.

---

## [pip needs to be installed](https://forum.ansible.com/t/pip-needs-to-be-installed/32696)

<div class="topic-metadata">

**Author:** [@Punit\_Ramaji](https://forum.ansible.com/u/Punit_Ramaji)\
**Replies:** 5\
**Last updated:** [April 16, 2020, 10:26am UTC](https://forum.ansible.com/t/pip-needs-to-be-installed/32696 "2020-04-16T10:26:29Z")

</div>

I am getting below error, when I try to pip: name=pip state=latest TASK \[install : Upgrade pip\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “Unable to fi…

---

## [Need some suggestion](https://forum.ansible.com/t/need-some-suggestion/32671)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 9\
**Last updated:** [April 16, 2020, 9:51am UTC](https://forum.ansible.com/t/need-some-suggestion/32671 "2020-04-16T09:51:55Z")

</div>

Hi Ansible Gurus, I need some help for some framework designing based on Ansible. I have many components and i have maintained ansible role for each component deployment in common project. Means all components installa…

---

## ["msg": "Local object for PUT does not exist"](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694)

<div class="topic-metadata">

**Author:** [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Replies:** 6\
**Last updated:** [April 16, 2020, 7:20am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694 "2020-04-16T07:20:29Z")

</div>

Hi, I just started using ansible for sometime now. Not sure what I’m doing wrong. I already created a s3 bucket successfully and then trying to upload a file(awscliv2.zip) to s3 bucket but it fails with below error "“…

---

## [run\_once not working to register value of curl](https://forum.ansible.com/t/run-once-not-working-to-register-value-of-curl/32653)

<div class="topic-metadata">

**Author:** [@Nicola\_Contu](https://forum.ansible.com/u/Nicola_Contu)\
**Replies:** 9\
**Last updated:** [April 16, 2020, 7:04am UTC](https://forum.ansible.com/t/run-once-not-working-to-register-value-of-curl/32653 "2020-04-16T07:04:08Z")

</div>

Hello, I am trying to get the latest version of few softwares and comparing it with a list of hosts with the current installed. Calling the github API is creating issues with the number of call due to the the list of h…

---

## [Need Assistance With Ansible Error](https://forum.ansible.com/t/need-assistance-with-ansible-error/32688)

<div class="topic-metadata">

**Author:** [@George\_James](https://forum.ansible.com/u/George_James)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 12:21pm UTC](https://forum.ansible.com/t/need-assistance-with-ansible-error/32688 "2020-04-15T12:21:25Z")

</div>

I am new to ansible. I create an inventory file

---

## [Need help regarding Ansible Role/Playbooks documentation](https://forum.ansible.com/t/need-help-regarding-ansible-role-playbooks-documentation/32678)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 1\
**Last updated:** [April 15, 2020, 12:13pm UTC](https://forum.ansible.com/t/need-help-regarding-ansible-role-playbooks-documentation/32678 "2020-04-15T12:13:38Z")

</div>

Hi Ansible Gurus, I have many Ansible Roles and I want to document each and every variable of role with defaults values and their description and where they make sense? Is there any better way of Documenting Ansible va…

---

## [Tower - Github  CI/CD Unidirectional](https://forum.ansible.com/t/tower-github-ci-cd-unidirectional/32667)

<div class="topic-metadata">

**Author:** [@Mixou\_Mangamba](https://forum.ansible.com/u/Mixou_Mangamba)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 11:57am UTC](https://forum.ansible.com/t/tower-github-ci-cd-unidirectional/32667 "2020-04-15T11:57:42Z")

</div>

Hi, I am using Tower 2.9.5 to try to reproduce the CI/CD setup documented here: https://keithtenzer.com/2019/06/24/ci-cd-with-ansible-tower-and-github/ I have the workflow setup doing provisioning in AWS. The Webhook i…

---

## [Send data from Google Compute Engine to Google Pub/Sub using Ansible](https://forum.ansible.com/t/send-data-from-google-compute-engine-to-google-pub-sub-using-ansible/32687)

<div class="topic-metadata">

**Author:** [@Jam\_Volkov](https://forum.ansible.com/u/Jam_Volkov)\
**Replies:** 1\
**Last updated:** [April 15, 2020, 11:45am UTC](https://forum.ansible.com/t/send-data-from-google-compute-engine-to-google-pub-sub-using-ansible/32687 "2020-04-15T11:45:11Z")

</div>

I would like to send data from Google vm instance to Google Pub/Sub using Ansible. Ansible playbook

---

## [ansible-2.5.9 install error](https://forum.ansible.com/t/ansible-2-5-9-install-error/32690)

<div class="topic-metadata">

**Author:** [@Xiaocui\_Li](https://forum.ansible.com/u/Xiaocui_Li)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 11:12am UTC](https://forum.ansible.com/t/ansible-2-5-9-install-error/32690 "2020-04-15T11:12:43Z")

</div>

I tried to install ansible 2.5.9 on debian9 os：python-2.7 install steps: 1. wget https://releases.ansible.com/ansible/ansible-2.5.9.tar.gz 2. tar zxvf ansible-2.5.9.tar.gz 3. cd ansible-2.5.9.tar.gz 4. python setup.py…

---

## [What is the proper way to check for required variables?](https://forum.ansible.com/t/what-is-the-proper-way-to-check-for-required-variables/15286)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 9\
**Last updated:** [April 15, 2020, 9:47am UTC](https://forum.ansible.com/t/what-is-the-proper-way-to-check-for-required-variables/15286 "2020-04-15T09:47:06Z")

</div>

I want to make my playbook in a way where process will fail with an error if user was not provided required parameters, what is the way to do that in Ansible?

---

## [REmote script does not run on some hosts](https://forum.ansible.com/t/remote-script-does-not-run-on-some-hosts/32689)

<div class="topic-metadata">

**Author:** [@Pooja](https://forum.ansible.com/u/Pooja)\
**Replies:** 0\
**Last updated:** [April 15, 2020, 8:11am UTC](https://forum.ansible.com/t/remote-script-does-not-run-on-some-hosts/32689 "2020-04-15T08:11:06Z")

</div>

Hello , I am new to Ansible and not sure if am doing anything wrong. I have an ansible playbook to start the cassandra process. I see that the remote init script runs perfectly on some hosts and does not on other. The s…

---

## [Login/Password encryption in host file](https://forum.ansible.com/t/login-password-encryption-in-host-file/32609)

<div class="topic-metadata">

**Author:** [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Replies:** 2\
**Last updated:** [April 14, 2020, 11:20pm UTC](https://forum.ansible.com/t/login-password-encryption-in-host-file/32609 "2020-04-14T23:20:43Z")

</div>

Hi, Is there anyway to only encrypt Device login/password credentials in hosts file ? If so, Where should encryption key be saved and how to use it for decrypt ? Thanks in Advace. -Ashish

---

## [Ansible mattermost custom icon\_url](https://forum.ansible.com/t/ansible-mattermost-custom-icon-url/32682)

<div class="topic-metadata">

**Author:** [@Michael3](https://forum.ansible.com/u/Michael3)\
**Replies:** 0\
**Last updated:** [April 14, 2020, 5:02pm UTC](https://forum.ansible.com/t/ansible-mattermost-custom-icon-url/32682 "2020-04-14T17:02:34Z")

</div>

According to the Ansible mattermost module documentation; the mattermost message sender’s icon is a url that defaults to the redhat icon. It can be customized but a url to the to the image needed should be provided. I d…

---

## [need assistance with this playbook](https://forum.ansible.com/t/need-assistance-with-this-playbook/32676)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 6\
**Last updated:** [April 14, 2020, 4:19pm UTC](https://forum.ansible.com/t/need-assistance-with-this-playbook/32676 "2020-04-14T16:19:11Z")

</div>

how do i create a ansible vmware playbook with following join esx host to domain setup ntp with - 0.pool.ntp.org, 1.pool.ntp.org set advance settings on host : VMkernel.Boot.hyperthreadingMitigation to True reboot host …

---

## [Ansible With\_Item as Variable](https://forum.ansible.com/t/ansible-with-item-as-variable/32681)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 0\
**Last updated:** [April 14, 2020, 3:53pm UTC](https://forum.ansible.com/t/ansible-with-item-as-variable/32681 "2020-04-14T15:53:42Z")

</div>

Hi All, Could do with some Help with this issue: I am trying to get the Powerstate of a Virtual Machine and power off when powerstate != poweroff and looking at a way to copy the copy the Cluster variable to a Text Fi…

---

## [Connecting to Linux and Windows hosts](https://forum.ansible.com/t/connecting-to-linux-and-windows-hosts/32643)

<div class="topic-metadata">

**Author:** [@PH1](https://forum.ansible.com/u/PH1)\
**Replies:** 1\
**Last updated:** [April 14, 2020, 12:38pm UTC](https://forum.ansible.com/t/connecting-to-linux-and-windows-hosts/32643 "2020-04-14T12:38:22Z")

</div>

Please, help me to understand, how fill hosts file. Now i have linux hosts and it’s work’s fine. Exaple, how host file look’s like: \[all:vars\] ansible\_connection=ssh ansible\_ssh\_user=user ansible\_ssh\_pass=user\_pass …

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

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