# Ansible Project

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

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

**Page:** 43

---

## [Ansible 2.13 supported on RHEL 7.9 & 8.6 OS version](https://forum.ansible.com/t/ansible-2-13-supported-on-rhel-7-9-8-6-os-version/36780)

<div class="topic-metadata">

**Author:** [@sathish\_subramani](https://forum.ansible.com/u/sathish_subramani)\
**Replies:** 4\
**Last updated:** [June 28, 2022, 12:49pm UTC](https://forum.ansible.com/t/ansible-2-13-supported-on-rhel-7-9-8-6-os-version/36780 "2022-06-28T12:49:17Z")

</div>

Hi Team, Currently we are using Ansible 2.8 version on top of RHEL 7.9 version and look like it Unmaintained (end of life) hence we are planning for upgrading ansible version. Ansible 2.13 supported on RHEL 7.9 & 8.6 O…

---

## [WinRM Connection Error ntlm timeout](https://forum.ansible.com/t/winrm-connection-error-ntlm-timeout/36779)

<div class="topic-metadata">

**Author:** [@Rai\_Ner](https://forum.ansible.com/u/Rai_Ner)\
**Replies:** 0\
**Last updated:** [June 27, 2022, 4:11pm UTC](https://forum.ansible.com/t/winrm-connection-error-ntlm-timeout/36779 "2022-06-27T16:11:03Z")

</div>

Dear all, I have two Ansible Systems, identically configured to access a windows host. For one it is working fine, for the other I get this timeout error: \<xxxvm64.xxxad.xxxgmbh.de\> ESTABLISH WINRM CONNECTION FOR USER…

---

## [Unable to gather datastore facts with vmware\_datastore\_info module](https://forum.ansible.com/t/unable-to-gather-datastore-facts-with-vmware-datastore-info-module/36777)

<div class="topic-metadata">

**Author:** [@Pugazhendhi\_Ramakris](https://forum.ansible.com/u/Pugazhendhi_Ramakris)\
**Replies:** 0\
**Last updated:** [June 27, 2022, 9:10am UTC](https://forum.ansible.com/t/unable-to-gather-datastore-facts-with-vmware-datastore-info-module/36777 "2022-06-27T09:10:23Z")

</div>

I’m trying to collect the VMware datastore info from the ansible module “community.vmware.vmware\_datastore\_info” with the below task and debug the same: name: Gather info from datacenter about specific datastore comm…

---

## [Asked to authenticate key in ansible playbook on circleci](https://forum.ansible.com/t/asked-to-authenticate-key-in-ansible-playbook-on-circleci/36775)

<div class="topic-metadata">

**Author:** [@Gitau\_Wairimu](https://forum.ansible.com/u/Gitau_Wairimu)\
**Replies:** 1\
**Last updated:** [June 25, 2022, 8:16pm UTC](https://forum.ansible.com/t/asked-to-authenticate-key-in-ansible-playbook-on-circleci/36775 "2022-06-25T20:16:11Z")

</div>

Am lost on how to configure my IAC code so that in circleci am not asked to authenticate, which is impossible.

---

## [New to ansible, are there quirks around symlinks and the builtin file module?  Potentially related to the need for older python?](https://forum.ansible.com/t/new-to-ansible-are-there-quirks-around-symlinks-and-the-builtin-file-module-potentially-related-to-the-need-for-older-python/36771)

<div class="topic-metadata">

**Author:** [@Joe\_Gullo](https://forum.ansible.com/u/Joe_Gullo)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 8:46pm UTC](https://forum.ansible.com/t/new-to-ansible-are-there-quirks-around-symlinks-and-the-builtin-file-module-potentially-related-to-the-need-for-older-python/36771 "2022-06-23T20:46:33Z")

</div>

I am new to ansible and am adapting some EOL software to work on a non-target platform. This is a very old application, but I have a business requirement to get it working on a newer OS. At this point, it requires Python…

---

## [Fetch file from windows server to linux using SSH in ansible](https://forum.ansible.com/t/fetch-file-from-windows-server-to-linux-using-ssh-in-ansible/36772)

<div class="topic-metadata">

**Author:** [@Aditya\_Chauhan](https://forum.ansible.com/u/Aditya_Chauhan)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 3:32pm UTC](https://forum.ansible.com/t/fetch-file-from-windows-server-to-linux-using-ssh-in-ansible/36772 "2022-06-23T15:32:43Z")

</div>

What method can be used to fetch file from windows to the linux server using SSH. What module will work for this? error - unable to fetch checksum

---

## [Getting Error while running playbook "msg": "\[Errno None\] Unable to connect to port 22](https://forum.ansible.com/t/getting-error-while-running-playbook-msg-errno-none-unable-to-connect-to-port-22/35293)

<div class="topic-metadata">

**Author:** [@subrat\_mangaraj](https://forum.ansible.com/u/subrat_mangaraj)\
**Replies:** 17\
**Last updated:** [June 23, 2022, 7:12am UTC](https://forum.ansible.com/t/getting-error-while-running-playbook-msg-errno-none-unable-to-connect-to-port-22/35293 "2022-06-23T07:12:38Z")

</div>

Hello Experts, I have installed ansible using homebrew. While trying to run few IOS command from my mac PC via jump server I am getting below errors. \<x.x.x.x1\> ESTABLISH LOCAL CONNECTION FOR USER: root \<x.x.x.x1\> EX…

---

## [soft copy of ansible](https://forum.ansible.com/t/soft-copy-of-ansible/36769)

<div class="topic-metadata">

**Author:** [@Shivakumar\_Venkatasw](https://forum.ansible.com/u/Shivakumar_Venkatasw)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 6:37pm UTC](https://forum.ansible.com/t/soft-copy-of-ansible/36769 "2022-06-22T18:37:57Z")

</div>

Hi team, I’m new to ansible and if any soft copy of test book or releated documents with you please share with me. It’s really helpful. Regards, shivu

---

## [AWX/Ansible Tower - unable to resolve Module Dependency - "No module named 'azure.cli.core.auth' "](https://forum.ansible.com/t/awx-ansible-tower-unable-to-resolve-module-dependency-no-module-named-azure-cli-core-auth/36767)

<div class="topic-metadata">

**Author:** [@Alex\_Walker](https://forum.ansible.com/u/Alex_Walker)\
**Replies:** 0\
**Last updated:** [June 22, 2022, 2:38pm UTC](https://forum.ansible.com/t/awx-ansible-tower-unable-to-resolve-module-dependency-no-module-named-azure-cli-core-auth/36767 "2022-06-22T14:38:57Z")

</div>

Hi I’m trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error: TASK \[List all keys in specific key vault\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* An exception o…

---

## [How to call a tasklist from a module ?](https://forum.ansible.com/t/how-to-call-a-tasklist-from-a-module/36766)

<div class="topic-metadata">

**Author:** [@Jan\_Goyvaerts](https://forum.ansible.com/u/Jan_Goyvaerts)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 1:58pm UTC](https://forum.ansible.com/t/how-to-call-a-tasklist-from-a-module/36766 "2022-06-22T13:58:58Z")

</div>

Good morning Ansible Community, I am in the process of developing a collection with modules for reducing complex system configurations to a single task. To that effect I’ve made an “install” module: install: name: fo…

---

## [How to send email if task fails on something or any particular condition? I](https://forum.ansible.com/t/how-to-send-email-if-task-fails-on-something-or-any-particular-condition-i/36765)

<div class="topic-metadata">

**Author:** [@Milan\_Patel](https://forum.ansible.com/u/Milan_Patel)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 1:57pm UTC](https://forum.ansible.com/t/how-to-send-email-if-task-fails-on-something-or-any-particular-condition-i/36765 "2022-06-22T13:57:27Z")

</div>

---

## [nested roles](https://forum.ansible.com/t/nested-roles/36750)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 10\
**Last updated:** [June 21, 2022, 10:20pm UTC](https://forum.ansible.com/t/nested-roles/36750 "2022-06-21T22:20:04Z")

</div>

I have a question regarding nested roles. Back Story: I am doing some code reviews for some ansible code a coworker has done. I noticed that they are importing other roles into the role they are working on. Question: I…

---

## [Ansible 6.0.0 has been released!](https://forum.ansible.com/t/ansible-6-0-0-has-been-released/36762)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [June 21, 2022, 4:55pm UTC](https://forum.ansible.com/t/ansible-6-0-0-has-been-released/36762 "2022-06-21T16:55:26Z")

</div>

Hi all, We’re happy to announce that Ansible 6.0.0 package has been released! Ansible 6.0.0 will include ansible-core 2.13 as well as a curated set of Ansible collections to provide a vast number of modules and plugin…

---

## [ansible output not shown](https://forum.ansible.com/t/ansible-output-not-shown/36752)

<div class="topic-metadata">

**Author:** [@szelga](https://forum.ansible.com/u/szelga)\
**Replies:** 10\
**Last updated:** [June 21, 2022, 4:12pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752 "2022-06-21T16:12:54Z")

</div>

an extremely simple playbook: - hosts: - test-host tasks: - name: AAA ansible.builtin.debug: msg: AAA shows results like this: \[WARNING\]: Invalid characters were found in group names but not replaced, use -vvvv to se…

---

## [Remove a line from file and surrounding](https://forum.ansible.com/t/remove-a-line-from-file-and-surrounding/36734)

<div class="topic-metadata">

**Author:** [@Laci](https://forum.ansible.com/u/Laci)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 9:18am UTC](https://forum.ansible.com/t/remove-a-line-from-file-and-surrounding/36734 "2022-06-21T09:18:56Z")

</div>

I’m working on a playbook which would remove lines from a file containing specific hostname. I want to use Ansible to remove the hostname AND surrounding lines. Here is an example of a block that I need to remove: File…

---

## [Async start a process and check until its listen port condition is successful](https://forum.ansible.com/t/async-start-a-process-and-check-until-its-listen-port-condition-is-successful/36757)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 4\
**Last updated:** [June 21, 2022, 7:56am UTC](https://forum.ansible.com/t/async-start-a-process-and-check-until-its-listen-port-condition-is-successful/36757 "2022-06-21T07:56:11Z")

</div>

I trigger multiple tomcat startup scripts and then need to check if all process listens on their specific port across multiple hosts in the quickest time possible. For the test case, I m writing 3 scripts instead of tom…

---

## [How can I match \`\\s\` or \`\\t\` in a \`search\` test?](https://forum.ansible.com/t/how-can-i-match-s-or-t-in-a-search-test/36755)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 8\
**Last updated:** [June 21, 2022, 4:40am UTC](https://forum.ansible.com/t/how-can-i-match-s-or-t-in-a-search-test/36755 "2022-06-21T04:40:54Z")

</div>

Here is an example: hosts: localhost gather\_facts: false vars: q: ‘abc’ 123 tasks: debug: msg: \>- {{ q is search(‘abc\\t’) }} This returns false. I have tried different variations of the regex, but nothing worked…

---

## [removing dir or file](https://forum.ansible.com/t/removing-dir-or-file/36756)

<div class="topic-metadata">

**Author:** [@Shivakumar\_Venkatasw](https://forum.ansible.com/u/Shivakumar_Venkatasw)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 11:44am UTC](https://forum.ansible.com/t/removing-dir-or-file/36756 "2022-06-20T11:44:21Z")

</div>

Dear team, I’m try to deleting multiple files through ansible playbook… is this possible to take log for deleting file in the same playbook… Regards, shivu

---

## [Using Ansible builder created strange permissions](https://forum.ansible.com/t/using-ansible-builder-created-strange-permissions/36754)

<div class="topic-metadata">

**Author:** [@Maik\_Brauer](https://forum.ansible.com/u/Maik_Brauer)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 7:55am UTC](https://forum.ansible.com/t/using-ansible-builder-created-strange-permissions/36754 "2022-06-20T07:55:34Z")

</div>

Hello, after doing an “ansible-builder build --tag ansible-runner-dev:latest” container will start building. But some stuff which I put inside the “execution-environment.yml” can’t be installed, as for example the /tmp …

---

## [Ansible galaxy Role](https://forum.ansible.com/t/ansible-galaxy-role/36751)

<div class="topic-metadata">

**Author:** [@Mahdi\_Idriss](https://forum.ansible.com/u/Mahdi_Idriss)\
**Replies:** 7\
**Last updated:** [June 18, 2022, 4:56pm UTC](https://forum.ansible.com/t/ansible-galaxy-role/36751 "2022-06-18T16:56:57Z")

</div>

Hello Mates, i have a question regarding ansible galaxy roles: i want to create a playbook that runs on hosts using balancer role, and this role create service to load balance web server requests between hosts in the web…

---

## [File date/time stamps](https://forum.ansible.com/t/file-date-time-stamps/36748)

<div class="topic-metadata">

**Author:** [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 12:24pm UTC](https://forum.ansible.com/t/file-date-time-stamps/36748 "2022-06-17T12:24:23Z")

</div>

Hi. I have a generic question about ansible, and the way it manages files on target (managed) systems. They're all Linux systems. I'm working in an environment where a colleague is running ansible scripts to manage …

---

## [interprete\_python error..](https://forum.ansible.com/t/interprete-python-error/36746)

<div class="topic-metadata">

**Author:** [@Shivakumar\_Venkatasw](https://forum.ansible.com/u/Shivakumar_Venkatasw)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 7:30am UTC](https://forum.ansible.com/t/interprete-python-error/36746 "2022-06-17T07:30:40Z")

</div>

Hi team, I’m traying to install python modules… during execute facing below error… please help me out… An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No mo…

---

## [Append new key value pair with correct indentation in yml file](https://forum.ansible.com/t/append-new-key-value-pair-with-correct-indentation-in-yml-file/36735)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 6\
**Last updated:** [June 17, 2022, 3:25am UTC](https://forum.ansible.com/t/append-new-key-value-pair-with-correct-indentation-in-yml-file/36735 "2022-06-17T03:25:25Z")

</div>

Hi, I’m trying to append new key-value pair in the existing yml (subcluster\_to\_subnet\_map.yml) file using combine. New values are getting appended correctly but it’s getting added without spaces. I need help with addin…

---

## [How to manage ansible-playbook output in jenkins.](https://forum.ansible.com/t/how-to-manage-ansible-playbook-output-in-jenkins/36745)

<div class="topic-metadata">

**Author:** [@Leandro\_Montesoro](https://forum.ansible.com/u/Leandro_Montesoro)\
**Replies:** 0\
**Last updated:** [June 16, 2022, 4:06pm UTC](https://forum.ansible.com/t/how-to-manage-ansible-playbook-output-in-jenkins/36745 "2022-06-16T16:06:14Z")

</div>

Hi! I have a Jenkins job running an ansible playbook. I need to extract and analyze the console output to make a report (csv for example) of the “PLAY RECAP” part where I am interested in collecting the failed records “…

---

## [Creation date playbook with correct json query in yml file](https://forum.ansible.com/t/creation-date-playbook-with-correct-json-query-in-yml-file/36739)

<div class="topic-metadata">

**Author:** [@Nipun\_Jain](https://forum.ansible.com/u/Nipun_Jain)\
**Replies:** 5\
**Last updated:** [June 16, 2022, 8:52am UTC](https://forum.ansible.com/t/creation-date-playbook-with-correct-json-query-in-yml-file/36739 "2022-06-16T08:52:24Z")

</div>

Hi, I am trying to fetch the json data from ami info in the existing yml using ansible.Now i am getting errors regarding json query format in number expression. I need help with proper json query under set fact so that…

---

## [ssh issue over non root account](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742)

<div class="topic-metadata">

**Author:** [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 6:49am UTC](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742 "2022-06-16T06:49:25Z")

</div>

Hi guys, I have issue with connecting over ssh to other machine using non root account. First of all, I create new fresh non root user. When I try to ssh , it gives permission denied message. Then I created key pairs us…

---

## [How to convert a dictionary to a list of dictionaries](https://forum.ansible.com/t/how-to-convert-a-dictionary-to-a-list-of-dictionaries/36733)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 6\
**Last updated:** [June 15, 2022, 2:31pm UTC](https://forum.ansible.com/t/how-to-convert-a-dictionary-to-a-list-of-dictionaries/36733 "2022-06-15T14:31:38Z")

</div>

I’m faced with a corner case where some devices are expected to return a list of dictionaries but instead return a single dictionary. This creates an error later on in ansible when a list is expected. For instance, the …

---

## [About the vmware\_vm\_shell module, cant activate eth0 via ip command](https://forum.ansible.com/t/about-the-vmware-vm-shell-module-cant-activate-eth0-via-ip-command/36740)

<div class="topic-metadata">

**Author:** [@Jeff\_S](https://forum.ansible.com/u/Jeff_S)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 1:54pm UTC](https://forum.ansible.com/t/about-the-vmware-vm-shell-module-cant-activate-eth0-via-ip-command/36740 "2022-06-15T13:54:11Z")

</div>

Hello I am currently preparing a playbook for installing and configuring HAProxy on a vmware VM, everything works so far, but i have a problem for managing the VM via ssh, as i cant turn up the network interface eth0, t…

---

## [data conversion question](https://forum.ansible.com/t/data-conversion-question/36737)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 8:02am UTC](https://forum.ansible.com/t/data-conversion-question/36737 "2022-06-15T08:02:11Z")

</div>

Hello, I’ve got a list variable that looks like this list: name: n1 group: g1 name: n2 group: g1 name: c1 group: g2 etc… in my config file, this should become: g1: n1,n2 g2: c1 etc… how can this be done?

---

## [Create a playbook for pre-patching notification email](https://forum.ansible.com/t/create-a-playbook-for-pre-patching-notification-email/36738)

<div class="topic-metadata">

**Author:** [@Anirban\_Das](https://forum.ansible.com/u/Anirban_Das)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 6:02am UTC](https://forum.ansible.com/t/create-a-playbook-for-pre-patching-notification-email/36738 "2022-06-15T06:02:35Z")

</div>

Hi Team, I need a help to create a playbook for pre-patching notification email. I have given sample set of info which should be in subject line. Also, to,cc would be changeable according to App Name. Can anyone pls gu…

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

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