# Ansible Project

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

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

**Page:** 112

---

## [Powershell script runs locally but when run via ansible playbook doesn't produce the expected results.](https://forum.ansible.com/t/powershell-script-runs-locally-but-when-run-via-ansible-playbook-doesnt-produce-the-expected-results/33520)

<div class="topic-metadata">

**Author:** [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 11:57pm UTC](https://forum.ansible.com/t/powershell-script-runs-locally-but-when-run-via-ansible-playbook-doesnt-produce-the-expected-results/33520 "2020-07-29T23:57:32Z")

</div>

Hello Darshan, Could you please try to below (attachments)

---

## [How to change form ssh username/password to public key encryption in a playbook?](https://forum.ansible.com/t/how-to-change-form-ssh-username-password-to-public-key-encryption-in-a-playbook/33519)

<div class="topic-metadata">

**Author:** [@Hans\_IJ](https://forum.ansible.com/u/Hans_IJ)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 11:39am UTC](https://forum.ansible.com/t/how-to-change-form-ssh-username-password-to-public-key-encryption-in-a-playbook/33519 "2020-07-29T11:39:16Z")

</div>

Hi, I am a beginner with ansible; I couldn’t find the answer yet. I want to bootstrap virgin raspberry pi’s (raspbian based); It all works fine as intended, except for one step, I have to change the ansible hosts fil…

---

## [Reduce debug task](https://forum.ansible.com/t/reduce-debug-task/33517)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 8:24am UTC](https://forum.ansible.com/t/reduce-debug-task/33517 "2020-07-29T08:24:45Z")

</div>

Hi Ansible Gurus, Is it possible to print some message in the task itself when condition is not matched , rather than having new task with debug module ? Example: currently i am writing two tasks: name: Get Active A…

---

## [Collection: adding ps1 script breaks anisble\_connection=local?](https://forum.ansible.com/t/collection-adding-ps1-script-breaks-anisble-connection-local/33423)

<div class="topic-metadata">

**Author:** [@Romain\_Pelisse](https://forum.ansible.com/u/Romain_Pelisse)\
**Replies:** 4\
**Last updated:** [July 29, 2020, 8:00am UTC](https://forum.ansible.com/t/collection-adding-ps1-script-breaks-anisble-connection-local/33423 "2020-07-29T08:00:55Z")

</div>

Hi, I’m running into something weird, that is maybe a bug, but I would like to check this before reporting it. I’m working on the Ansible jcliff collection and we recently added a ps1 script to our modules to support w…

---

## [pass playbook vars to a python script](https://forum.ansible.com/t/pass-playbook-vars-to-a-python-script/33515)

<div class="topic-metadata">

**Author:** [@Jerry\_Hwang](https://forum.ansible.com/u/Jerry_Hwang)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 6:34am UTC](https://forum.ansible.com/t/pass-playbook-vars-to-a-python-script/33515 "2020-07-29T06:34:08Z")

</div>

hello, I am trying to have a python script (auto triggered when a playbook is run) to take from playbook extra\_vars and uses it as var for the script. for example: ansible-playbook test.yml --extra-vars “win=True” so…

---

## [Working around lookup plugin limitation with environment variables](https://forum.ansible.com/t/working-around-lookup-plugin-limitation-with-environment-variables/24178)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 15\
**Last updated:** [July 28, 2020, 11:31pm UTC](https://forum.ansible.com/t/working-around-lookup-plugin-limitation-with-environment-variables/24178 "2020-07-28T23:31:54Z")

</div>

Hi all, I’m looking for any suggestions on how to work around the following issue: I am trying to use a lookup plugin but it is ignoring my environment variables. The lookup plugin I am trying to use is credstash and …

---

## [ansible vmware\_guest vm deployment issue](https://forum.ansible.com/t/ansible-vmware-guest-vm-deployment-issue/33514)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 8:32pm UTC](https://forum.ansible.com/t/ansible-vmware-guest-vm-deployment-issue/33514 "2020-07-28T20:32:10Z")

</div>

Hello Guys, !!Need help om vm deployment !! While deploying virtual machine below issue error has been encountered “Failed to clone virtual machine rhel7\_vm to folder 'vim.Folder:group-'512 due to permission issue: Pe…

---

## [Kerberos authentication failed on windows](https://forum.ansible.com/t/kerberos-authentication-failed-on-windows/33505)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 7:42pm UTC](https://forum.ansible.com/t/kerberos-authentication-failed-on-windows/33505 "2020-07-28T19:42:28Z")

</div>

Hello, Kerberos authentication is failing on some servers even after providing credentials in host file. Host File \[windows\_server\] test.domain.com \[windows:vars\] ansible\_user=\*\*\*\*\* ansible\_password=\*\*\*\*\*\* ansibl…

---

## [Cant get ansible to properly route through bastion host](https://forum.ansible.com/t/cant-get-ansible-to-properly-route-through-bastion-host/32771)

<div class="topic-metadata">

**Author:** [@Emil\_Safonov](https://forum.ansible.com/u/Emil_Safonov)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 7:30pm UTC](https://forum.ansible.com/t/cant-get-ansible-to-properly-route-through-bastion-host/32771 "2020-07-28T19:30:37Z")

</div>

Hey Everyone, I’ve been having difficulty getting my ansible playbooks to route through a bastion host (without ssh keys). For testing I have a cisco virl (virtual internet routing lab) simulation up and running with vi…

---

## [Need Guidance](https://forum.ansible.com/t/need-guidance/33511)

<div class="topic-metadata">

**Author:** [@A11](https://forum.ansible.com/u/A11)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 4:14pm UTC](https://forum.ansible.com/t/need-guidance/33511 "2020-07-28T16:14:31Z")

</div>

Hi Experts, I am getting the below error while executing the playbook. Thanks in Advance. Playbook- name: RedHat unlock OpenJdk version command: yum versionlock delete ‘{{openjdk\_yumlock\_version7}}’ when: ansible\_…

---

## [Need help](https://forum.ansible.com/t/need-help/33507)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 7\
**Last updated:** [July 28, 2020, 1:19pm UTC](https://forum.ansible.com/t/need-help/33507 "2020-07-28T13:19:38Z")

</div>

Hi Ansible Gurus, I have a playbook like below: name: Get Active Rest server include\_role: name: web-server tasks\_from: active-rest-server Now I have a playbook under the web-server role named active-rest-server.y…

---

## [Is Jump host advisable ?](https://forum.ansible.com/t/is-jump-host-advisable/30345)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 7\
**Last updated:** [July 28, 2020, 5:29am UTC](https://forum.ansible.com/t/is-jump-host-advisable/30345 "2020-07-28T05:29:01Z")

</div>

Hi Team, Which is one is followed as best practice in Ansible? Using jump server to connect devices ? or having direct access to devices. thanks

---

## [Check if passwordless ssh works after checking telnet from localhost](https://forum.ansible.com/t/check-if-passwordless-ssh-works-after-checking-telnet-from-localhost/33506)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 3:57am UTC](https://forum.ansible.com/t/check-if-passwordless-ssh-works-after-checking-telnet-from-localhost/33506 "2020-07-28T03:57:05Z")

</div>

I wish to list down all the hosts where it first checks for working telnet on port 22. If telnet succeeds; it should check for passwordless ssh and list down all hosts where telnet works but passwordless ssh fails. The …

---

## [Connection to Target server Failing](https://forum.ansible.com/t/connection-to-target-server-failing/33503)

<div class="topic-metadata">

**Author:** [@GOPABANDHU\_DASH](https://forum.ansible.com/u/GOPABANDHU_DASH)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 11:23pm UTC](https://forum.ansible.com/t/connection-to-target-server-failing/33503 "2020-07-27T23:23:53Z")

</div>

Hi, I am getting below error when i am trying to connect to my target server fatal: \[hostname\]: FAILED! =\> {“changed”: false, “module\_stderr”: “Connection to hostname closed.\\r\\n”, “module\_stdout”: " File "/home/gopa/.…

---

## [Error - Install tomcat](https://forum.ansible.com/t/error-install-tomcat/33485)

<div class="topic-metadata">

**Author:** [@A11](https://forum.ansible.com/u/A11)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 10:04pm UTC](https://forum.ansible.com/t/error-install-tomcat/33485 "2020-07-27T22:04:55Z")

</div>

Please help on the below error Ansible Codes

---

## [Ansible Remote Versioning](https://forum.ansible.com/t/ansible-remote-versioning/33447)

<div class="topic-metadata">

**Author:** [@Firesh\_Bakhda](https://forum.ansible.com/u/Firesh_Bakhda)\
**Replies:** 6\
**Last updated:** [July 27, 2020, 4:10pm UTC](https://forum.ansible.com/t/ansible-remote-versioning/33447 "2020-07-27T16:10:51Z")

</div>

Hi , I would like to post to this group to find out if there is anyway for ansible to actually stamp the client with Ansible Deployment or Deployment Stamp on what tasks were ran and when it was ran, like a VERSION or …

---

## [Trouble with python bindings error (libselinux-python not installed) on RHEL8](https://forum.ansible.com/t/trouble-with-python-bindings-error-libselinux-python-not-installed-on-rhel8/33465)

<div class="topic-metadata">

**Author:** [@Robbie](https://forum.ansible.com/u/Robbie)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 1:22pm UTC](https://forum.ansible.com/t/trouble-with-python-bindings-error-libselinux-python-not-installed-on-rhel8/33465 "2020-07-27T13:22:41Z")

</div>

Hello all. I’ve been trying to troubleshoot a problem for days and I haven’t been able to find anything online that refers to RHEL8/Centos8.I have success running on RHEL/Centos7, but I’m trying to push to the new platf…

---

## [Guidance needed on sending mail using ansible](https://forum.ansible.com/t/guidance-needed-on-sending-mail-using-ansible/33500)

<div class="topic-metadata">

**Author:** [@nandha\_kumar1](https://forum.ansible.com/u/nandha_kumar1)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 12:25pm UTC](https://forum.ansible.com/t/guidance-needed-on-sending-mail-using-ansible/33500 "2020-07-27T12:25:43Z")

</div>

Hi Team, Is it possible to send mail in a specific format which we needed? For example. below I would need to send a mail in this tabular format… Is it possible? If not, kindly suggest me some way to improve my em…

---

## [How do I use snow\_record and snow\_record find in Ansible? Or should I do something different?](https://forum.ansible.com/t/how-do-i-use-snow-record-and-snow-record-find-in-ansible-or-should-i-do-something-different/29914)

<div class="topic-metadata">

**Author:** [@Beau\_Gauthreaux](https://forum.ansible.com/u/Beau_Gauthreaux)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 9:10am UTC](https://forum.ansible.com/t/how-do-i-use-snow-record-and-snow-record-find-in-ansible-or-should-i-do-something-different/29914 "2020-07-27T09:10:44Z")

</div>

I’m trying to gather change record information from ServiceNow. Specifically I would like to query against a hostname and find if that server has change ticket open. I came across both of these modules for Ansible. I hav…

---

## [Hi Guys can someone executed any network playbook through bastion host proxy command](https://forum.ansible.com/t/hi-guys-can-someone-executed-any-network-playbook-through-bastion-host-proxy-command/33499)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari1](https://forum.ansible.com/u/Venu_Devannagari1)\
**Replies:** 0\
**Last updated:** [July 27, 2020, 7:04am UTC](https://forum.ansible.com/t/hi-guys-can-someone-executed-any-network-playbook-through-bastion-host-proxy-command/33499 "2020-07-27T07:04:46Z")

</div>

Hi Guys can someone executed any network playbook through bastion host If someone executed can you please show how the configuraion looks like with sample values. Thanks in advance.

---

## [Hi folks need ansible proxycomand to run on network devices through bastion host without ~/.ssh/config method.Need to be command in hostfile itself.](https://forum.ansible.com/t/hi-folks-need-ansible-proxycomand-to-run-on-network-devices-through-bastion-host-without-ssh-config-method-need-to-be-command-in-hostfile-itself/33454)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari1](https://forum.ansible.com/u/Venu_Devannagari1)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 7:02am UTC](https://forum.ansible.com/t/hi-folks-need-ansible-proxycomand-to-run-on-network-devices-through-bastion-host-without-ssh-config-method-need-to-be-command-in-hostfile-itself/33454 "2020-07-27T07:02:50Z")

</div>

host file:- \[asa\] x.x.x.x \[asa:vars\] ansible\_user=xxxx ansible\_password=xxxxx ansible\_auth\_pass=xxxxx ansible\_python\_interpreter=/usr/bin/python2.7 ansible\_network\_os=asa ansible\_connection=network\_cli ansible…

---

## [Netconf bastion host settings](https://forum.ansible.com/t/netconf-bastion-host-settings/27934)

<div class="topic-metadata">

**Author:** [@Jonathon\_Woods](https://forum.ansible.com/u/Jonathon_Woods)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 6:12am UTC](https://forum.ansible.com/t/netconf-bastion-host-settings/27934 "2020-07-27T06:12:39Z")

</div>

I have a jumphost/bastion set up for a lot of Cisco routers. It works great, now I’m trying to get Juniper devices working. When I specify transport=cli, so it uses network\_cli, the bastion works fine. When I use netconf…

---

## [Template Module Source Not Found](https://forum.ansible.com/t/template-module-source-not-found/33495)

<div class="topic-metadata">

**Author:** [@Poseidon\_Olympian](https://forum.ansible.com/u/Poseidon_Olympian)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 2:49pm UTC](https://forum.ansible.com/t/template-module-source-not-found/33495 "2020-07-26T14:49:05Z")

</div>

Hello, Would appreciated of any help from my issue. Been trying to search around a solution but unsuccessful to resolved my issue. I’m getting an error when running my playbook and here are the details. Error Message …

---

## [Unable to receive Emall despite of success message from ansible script](https://forum.ansible.com/t/unable-to-receive-emall-despite-of-success-message-from-ansible-script/33493)

<div class="topic-metadata">

**Author:** [@Samir\_Kothawade](https://forum.ansible.com/u/Samir_Kothawade)\
**Replies:** 5\
**Last updated:** [July 25, 2020, 7:50pm UTC](https://forum.ansible.com/t/unable-to-receive-emall-despite-of-success-message-from-ansible-script/33493 "2020-07-25T19:50:37Z")

</div>

Ansible script: hosts: local gather\_facts: no tasks: name: mailing longevity report become: true mail: host: localhost port: 25 (attachments)

---

## [vmware\_guest multiple adapter](https://forum.ansible.com/t/vmware-guest-multiple-adapter/33492)

<div class="topic-metadata">

**Author:** [@mpunix](https://forum.ansible.com/u/mpunix)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 3:19pm UTC](https://forum.ansible.com/t/vmware-guest-multiple-adapter/33492 "2020-07-25T15:19:10Z")

</div>

Hi, I am trying to setup a RHEL7 VMware Linx VM on Vcenter 6.5 with ansible 2.9 with multiple adapters, it looks I am getting inconsistent results with the VMware adapter mac address and OS level ethx mapping. First I c…

---

## [Creating users in VCD Unsupported API version](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446)

<div class="topic-metadata">

**Author:** [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Replies:** 9\
**Last updated:** [July 24, 2020, 4:55pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446 "2020-07-24T16:55:56Z")

</div>

Hi taem, did you guys see this error ? API version is 34 Unsupported API version. Received ‘{api\_version}’ but "\\n ^\\nSyntaxError: invalid syntax\\n TASK \[vcd : VCD USER creation\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Error while running Netscaler Playbook](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483)

<div class="topic-metadata">

**Author:** [@1793](https://forum.ansible.com/u/1793)\
**Replies:** 2\
**Last updated:** [July 24, 2020, 3:55pm UTC](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483 "2020-07-24T15:55:37Z")

</div>

Hello, I have the following playbook to create GLSBs for Netscaler devices using Ansible: hosts: netscaler gather\_facts: False vars: state: present gslb: name: test\_gslb vserver: port: ‘80’ description: ‘Gene…

---

## [snow\_record\_find variable search](https://forum.ansible.com/t/snow-record-find-variable-search/33484)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 2:48pm UTC](https://forum.ansible.com/t/snow-record-find-variable-search/33484 "2020-07-24T14:48:58Z")

</div>

Hello Everyone, I wanted to automate the service request task using ansible playbook. Below are the quires which not clear for me how to search variables which is defined in service catalog request which table to be …

---

## [Help needed regarding when condition](https://forum.ansible.com/t/help-needed-regarding-when-condition/33480)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 8\
**Last updated:** [July 24, 2020, 1:46pm UTC](https://forum.ansible.com/t/help-needed-regarding-when-condition/33480 "2020-07-24T13:46:47Z")

</div>

Hi Ansible Gurus, I have this output: (1, ‘\\r\\n{“msg”: “service\[component\] - https://myip/myrest/v1/ fails to due to error 501 - None”, “failed”: true, “invocation”: {“module\_args”: {“url\_password”: null, “tasks”: \[{“…

---

## [Filter in dynamic inventory](https://forum.ansible.com/t/filter-in-dynamic-inventory/33482)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 11:20am UTC](https://forum.ansible.com/t/filter-in-dynamic-inventory/33482 "2020-07-24T11:20:07Z")

</div>

Hi guys, I use dynamic inventory azure\_rm and I have a problem with exluce\_host\_filters. Some vms starts with xyz… and has tags. I need to filter the VMs starts with xyz but not has tags firewall and not working. excl…

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

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