# Ansible Project

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

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

**Page:** 22

---

## [question on single playbook or roles?](https://forum.ansible.com/t/question-on-single-playbook-or-roles/37974)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [May 13, 2023, 12:14am UTC](https://forum.ansible.com/t/question-on-single-playbook-or-roles/37974 "2023-05-13T00:14:40Z")

</div>

I got a few tasks i need to do on esxi host put in maintenace mode copy vib from my laptop to the the host shared datastore install the patch esxcli softare vib install -d /path/xxx.zip reboot the host take it out o…

---

## [ansible\_vault](https://forum.ansible.com/t/ansible-vault/37978)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 2\
**Last updated:** [May 12, 2023, 7:37pm UTC](https://forum.ansible.com/t/ansible-vault/37978 "2023-05-12T19:37:06Z")

</div>

I am using ansible vault and I had groupvars folder created which has encrypted password file in it, as groups\_vars file should be in the same director where inventory is. BUt I need to check in the playbooks and invento…

---

## [win\_shell cmd parsing domain\\usernmame issue](https://forum.ansible.com/t/win-shell-cmd-parsing-domain-usernmame-issue/37973)

<div class="topic-metadata">

**Author:** [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 3:51pm UTC](https://forum.ansible.com/t/win-shell-cmd-parsing-domain-usernmame-issue/37973 "2023-05-12T15:51:24Z")

</div>

Hello, I am trying to use the win\_shell module to run a script which includes the username parameter. name: Execute {{ set\_wmi}} to capture the existing user accounts for WMI security for the root namespace win\_shell…

---

## [Attach exiting disk to VM](https://forum.ansible.com/t/attach-exiting-disk-to-vm/37972)

<div class="topic-metadata">

**Author:** [@Pietro\_Pesce\_Mistak3](https://forum.ansible.com/u/Pietro_Pesce_Mistak3)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 12:37pm UTC](https://forum.ansible.com/t/attach-exiting-disk-to-vm/37972 "2023-05-09T12:37:20Z")

</div>

Hello im trying to attach exiting disk (raw) to a vm:

---

## [Connect to windows machine with Kerberos](https://forum.ansible.com/t/connect-to-windows-machine-with-kerberos/37964)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 6\
**Last updated:** [May 5, 2023, 10:23pm UTC](https://forum.ansible.com/t/connect-to-windows-machine-with-kerberos/37964 "2023-05-05T22:23:36Z")

</div>

I am using kerberos to connect to windows hosts to run playbook, for this I have to kinit username and password everyday if not I need to specify the password on the inventory file which is not great idea. So some one pl…

---

## [debug output in red?](https://forum.ansible.com/t/debug-output-in-red/37967)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 8:33am UTC](https://forum.ansible.com/t/debug-output-in-red/37967 "2023-05-05T08:33:02Z")

</div>

Hii I’d like to signal something important during a playbook run. Currently I’m using the assert module to test for a condition, and then fail, and then use ignore\_errors: true. But that seems a bit kludgy. Is there a…

---

## [SSH is stuck when i am running a playbook or ping request](https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965)

<div class="topic-metadata">

**Author:** [@Rohit\_Mahajan](https://forum.ansible.com/u/Rohit_Mahajan)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 7:41am UTC](https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965 "2023-05-05T07:41:25Z")

</div>

Hello All, I am trying to run the Ansible playbook with ansible version \[core 2.12.10\]. i tried to take manually ssh for that specific host. previously I am using the 2.9 version there is no issue of the SSH connection…

---

## [connect to multiple vcenters and esxi hosts without host file](https://forum.ansible.com/t/connect-to-multiple-vcenters-and-esxi-hosts-without-host-file/37963)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 7:18am UTC](https://forum.ansible.com/t/connect-to-multiple-vcenters-and-esxi-hosts-without-host-file/37963 "2023-05-05T07:18:11Z")

</div>

I got this pb but it is only working for single vcenter and I have to put the esxi hosts into a host file. Is it possible to connect to multiple vcenters and lookup all the esxi hosts and connect to them instead of usin…

---

## [Write to Excel file in the control machine](https://forum.ansible.com/t/write-to-excel-file-in-the-control-machine/37961)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 1:12pm UTC](https://forum.ansible.com/t/write-to-excel-file-in-the-control-machine/37961 "2023-05-04T13:12:23Z")

</div>

Hello guys, Could you please suggest what would be the best approach to create an excel file in control node of the provided hostnames in the ansible playbook command. Thanks Pradyumna

---

## [How to reuse an http client object ?](https://forum.ansible.com/t/how-to-reuse-an-http-client-object/37957)

<div class="topic-metadata">

**Author:** [@Jan\_Goyvaerts](https://forum.ansible.com/u/Jan_Goyvaerts)\
**Replies:** 5\
**Last updated:** [May 4, 2023, 11:55am UTC](https://forum.ansible.com/t/how-to-reuse-an-http-client-object/37957 "2023-05-04T11:55:08Z")

</div>

Hello Community, Is it possible to put a client object somewhere so it can be shared/reused by custom plugins ? That is, only for tasks running on the controlling node. I’m trying to reuse the very same pysnow client o…

---

## [Set-WmiNamespaceSecurity-ps1 + Account not found](https://forum.ansible.com/t/set-wminamespacesecurity-ps1-account-not-found/37962)

<div class="topic-metadata">

**Author:** [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 10:11am UTC](https://forum.ansible.com/t/set-wminamespacesecurity-ps1-account-not-found/37962 "2023-05-04T10:11:19Z")

</div>

Hello, I am trying to run a PS script using win\_shell modules The name of the script is called Set-WmiNamespaceSecurity-ps1 https://github.com/grbray/PowerShell/blob/main/Windows/Set-WMINameSpaceSecurity.ps1 When I r…

---

## [Issue running get-aduser in powershell from playbook](https://forum.ansible.com/t/issue-running-get-aduser-in-powershell-from-playbook/37948)

<div class="topic-metadata">

**Author:** [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 9:27am UTC](https://forum.ansible.com/t/issue-running-get-aduser-in-powershell-from-playbook/37948 "2023-05-04T09:27:57Z")

</div>

Hi, I’m currently testing using AWX as an API to run PowerShell commands via ansible playbooks. I’m currently testing using the Get-AD user command as this is close to what I’ll be doing. I’m using the following Ansib…

---

## [Alma Linux - Problem with "python3-dnf"](https://forum.ansible.com/t/alma-linux-problem-with-python3-dnf/37960)

<div class="topic-metadata">

**Author:** [@Cleber\_Valadares](https://forum.ansible.com/u/Cleber_Valadares)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 8:14am UTC](https://forum.ansible.com/t/alma-linux-problem-with-python3-dnf/37960 "2023-05-04T08:14:45Z")

</div>

Good Day Ansible users, I would like to ask if someone had seeing / fix this kind of problem with “Alma Linux 8” (attachments)

---

## [Error: ansible playbook from jenkins](https://forum.ansible.com/t/error-ansible-playbook-from-jenkins/37958)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 8\
**Last updated:** [May 4, 2023, 5:27am UTC](https://forum.ansible.com/t/error-ansible-playbook-from-jenkins/37958 "2023-05-04T05:27:11Z")

</div>

I am facing below problem with running ansible playbook from Jenkins. I specified the location where I have my ansible playbook and inventory file. sshpass: Failed to run command: No such file or directory FATAL: comman…

---

## [Regarding Citrix Support for Ansible](https://forum.ansible.com/t/regarding-citrix-support-for-ansible/37959)

<div class="topic-metadata">

**Author:** [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Replies:** 8\
**Last updated:** [May 3, 2023, 9:03pm UTC](https://forum.ansible.com/t/regarding-citrix-support-for-ansible/37959 "2023-05-03T21:03:09Z")

</div>

Hello All, I am looking for help where we have T1 Citrix Console and in that User sessions get hung & those hung sessions need to be killed. Is there any way we can achieve this with Ansible? I tried to look it up but…

---

## [Help with parsing "vmware\_vm\_info" output](https://forum.ansible.com/t/help-with-parsing-vmware-vm-info-output/37954)

<div class="topic-metadata">

**Author:** [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 4:32pm UTC](https://forum.ansible.com/t/help-with-parsing-vmware-vm-info-output/37954 "2023-05-03T16:32:20Z")

</div>

Hello, I need to collect some info from VMs in our VMware cluster and am having trouble figuring out how to print only the information I need. When running the code below: name: collect VMs in specific folder commu…

---

## [cisco asa backups playbook fails](https://forum.ansible.com/t/cisco-asa-backups-playbook-fails/37955)

<div class="topic-metadata">

**Author:** [@dbs34](https://forum.ansible.com/u/dbs34)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 1:22pm UTC](https://forum.ansible.com/t/cisco-asa-backups-playbook-fails/37955 "2023-05-03T13:22:22Z")

</div>

Hello All! I have been tasked with backing up our network devices. I am not a network guy but I know ansible and linux. I keep getting this error and have not found much on the web for help. The error is “unable to disa…

---

## [what data is transmitted by SSH to the agent host?](https://forum.ansible.com/t/what-data-is-transmitted-by-ssh-to-the-agent-host/37949)

<div class="topic-metadata">

**Author:** [@didilong](https://forum.ansible.com/u/didilong)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 8:31am UTC](https://forum.ansible.com/t/what-data-is-transmitted-by-ssh-to-the-agent-host/37949 "2023-05-03T08:31:51Z")

</div>

Sorry, I’m an ansible newbie. When Ansible is running, what data is transmitted by SSH to the agent host? Is it a shell directive or python ?

---

## [Release announcement : Ansible Community Package 8.0.0a3 (Pre- Release)](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-0-0a3-pre-release/37953)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 0\
**Last updated:** [May 2, 2023, 12:33pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-0-0a3-pre-release/37953 "2023-05-02T12:33:56Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 8.0.0a3 package! Ansible 8.0.0a3 includes ansible-core 2.15.0rc2 as well as a curated set of Ansible collections that provide a vast number of modules…

---

## [Insufficient version of pexpect installed (2.3), this module requires pexpect\>=3.3](https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951)

<div class="topic-metadata">

**Author:** [@aokullu](https://forum.ansible.com/u/aokullu)\
**Replies:** 1\
**Last updated:** [May 2, 2023, 12:22pm UTC](https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951 "2023-05-02T12:22:57Z")

</div>

Dear members, am having some issues executing expect and getting this error when i run my ansible playbook Insufficient version of pexpect installed (2.3), this module requires pexpect\>=3.3 fatal: \[XXXXXXXXX\]: FAILED!…

---

## [vmware wait\_for snapshot](https://forum.ansible.com/t/vmware-wait-for-snapshot/37950)

<div class="topic-metadata">

**Author:** [@R\_Mitura](https://forum.ansible.com/u/R_Mitura)\
**Replies:** 0\
**Last updated:** [May 2, 2023, 8:05am UTC](https://forum.ansible.com/t/vmware-wait-for-snapshot/37950 "2023-05-02T08:05:04Z")

</div>

Hi there, I would like take VM snapshot before patching os. How do I detect snapshot creation has been completed before initiating VM patching? Thanks

---

## [why lineinfile not able to run with item.path](https://forum.ansible.com/t/why-lineinfile-not-able-to-run-with-item-path/37944)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 8\
**Last updated:** [May 1, 2023, 7:03pm UTC](https://forum.ansible.com/t/why-lineinfile-not-able-to-run-with-item-path/37944 "2023-05-01T19:03:55Z")

</div>

Code==\> name: insert logggin file in log4j protperties lineinfile: path: ‘{{ item.path }}’ insertafter: ‘log4j.appender.kafkaAppender.layout.ConversionPattern=\*’ line: ‘{{ item.line }}’ with\_items: { path: ‘/et…

---

## [Regarding trigger particular ansible playbook](https://forum.ansible.com/t/regarding-trigger-particular-ansible-playbook/37929)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 1\
**Last updated:** [May 1, 2023, 1:34pm UTC](https://forum.ansible.com/t/regarding-trigger-particular-ansible-playbook/37929 "2023-05-01T13:34:40Z")

</div>

Hi All, We have two projects like A and B. If any file changes in the A project, we would need to trigger the A project related playbook and in that playbook, we do remove the dist directory but we don’t want to remove …

---

## [Powerscale.FileSystem Path goes to "VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER", not able to fetch](https://forum.ansible.com/t/powerscale-filesystem-path-goes-to-value-specified-in-no-log-parameter-not-able-to-fetch/37916)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 2\
**Last updated:** [May 1, 2023, 12:25pm UTC](https://forum.ansible.com/t/powerscale-filesystem-path-goes-to-value-specified-in-no-log-parameter-not-able-to-fetch/37916 "2023-05-01T12:25:58Z")

</div>

Hi Team, i was able to successfully create a FileSystem using module which is not exist only (eg: if nothing there it will create 1 , ) (eg: if 1 and 2 there it will create 3 , ) (eg: if 1, 2, 3 there it will create …

---

## [include\_vars or vars\_files in a role](https://forum.ansible.com/t/include-vars-or-vars-files-in-a-role/37925)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 9\
**Last updated:** [April 30, 2023, 3:28am UTC](https://forum.ansible.com/t/include-vars-or-vars-files-in-a-role/37925 "2023-04-30T03:28:42Z")

</div>

I got a pb that works like this. any idea how i can convert this to a role?

---

## [Configuring Ansible to prioritize a specific Python interpreter or automatically discover one](https://forum.ansible.com/t/configuring-ansible-to-prioritize-a-specific-python-interpreter-or-automatically-discover-one/37942)

<div class="topic-metadata">

**Author:** [@Haji\_Hoare](https://forum.ansible.com/u/Haji_Hoare)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 1:38pm UTC](https://forum.ansible.com/t/configuring-ansible-to-prioritize-a-specific-python-interpreter-or-automatically-discover-one/37942 "2023-04-29T13:38:21Z")

</div>

Hi, I’d like to ask for advice on configuring Ansible to prioritize using a specific Python interpreter if it exists or automatically discover the appropriate Python interpreter if the preferred one is not present, espe…

---

## [testing ssh to esxi host](https://forum.ansible.com/t/testing-ssh-to-esxi-host/37941)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 2:23pm UTC](https://forum.ansible.com/t/testing-ssh-to-esxi-host/37941 "2023-04-28T14:23:30Z")

</div>

I am trying to run adhoc command to esxi hosts with ssh already enabled ansible -i hosts -m ping -u root but i keep getting promprt for The authenticity of host cant be established any way i can ignore or bypass this? …

---

## [Play is skipped in playbook](https://forum.ansible.com/t/play-is-skipped-in-playbook/37939)

<div class="topic-metadata">

**Author:** [@John\_Welby](https://forum.ansible.com/u/John_Welby)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 10:11pm UTC](https://forum.ansible.com/t/play-is-skipped-in-playbook/37939 "2023-04-27T22:11:36Z")

</div>

Team; I am trying to ‘stop’ and ‘mask’ packagekit because it appears it is causing yum locks and blocking the playbook from executing instance patching. Below is at the top of the playbook:

---

## [Max Retries Exceeded - Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF)](https://forum.ansible.com/t/max-retries-exceeded-caused-by-sslerror-sslzeroreturnerror-6-tls-ssl-connection-has-been-closed-eof/37921)

<div class="topic-metadata">

**Author:** [@Paul\_Brylinski](https://forum.ansible.com/u/Paul_Brylinski)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 7:13pm UTC](https://forum.ansible.com/t/max-retries-exceeded-caused-by-sslerror-sslzeroreturnerror-6-tls-ssl-connection-has-been-closed-eof/37921 "2023-04-27T19:13:02Z")

</div>

Hello, I am having an issue connecting to a windows host through kerberos. I was using ansible 2.9.16 and RHEL 7.9 and had no issues. As I upgraded to RHEL 9, I upgraded to Ansible-Core 2.13. Winrm, kerberos were all u…

---

## [opposite of --limit (to exclude hosts)](https://forum.ansible.com/t/opposite-of-limit-to-exclude-hosts/37937)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [April 27, 2023, 2:16pm UTC](https://forum.ansible.com/t/opposite-of-limit-to-exclude-hosts/37937 "2023-04-27T14:16:30Z")

</div>

ist there anything like a negation of --limit (to not execute a playbook on the named remotes) ?

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

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