# Ansible Project

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

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

**Page:** 69

---

## [How to pass a long list a variables to a script, comma seperated in double quotes ?](https://forum.ansible.com/t/how-to-pass-a-long-list-a-variables-to-a-script-comma-seperated-in-double-quotes/35551)

<div class="topic-metadata">

**Author:** [@omoeko](https://forum.ansible.com/u/omoeko)\
**Replies:** 0\
**Last updated:** [July 27, 2021, 12:43pm UTC](https://forum.ansible.com/t/how-to-pass-a-long-list-a-variables-to-a-script-comma-seperated-in-double-quotes/35551 "2021-07-27T12:43:55Z")

</div>

Hi All. I currently pass a comma seperated list of variables to my ansible tower template in this matter param1: xxxxx server\_port\_list: “‘server1,4455’,‘server2,7777’,‘server3,5588’” I have a file which has the cont…

---

## [Error "Failed to connect to the host via ssh: PLEASE HELP](https://forum.ansible.com/t/error-failed-to-connect-to-the-host-via-ssh-please-help/35550)

<div class="topic-metadata">

**Author:** [@user98](https://forum.ansible.com/u/user98)\
**Replies:** 0\
**Last updated:** [July 27, 2021, 12:41pm UTC](https://forum.ansible.com/t/error-failed-to-connect-to-the-host-via-ssh-please-help/35550 "2021-07-27T12:41:12Z")

</div>

Good afternoon, colleagues. I’m trying to run the software version check playbook on the switch. But when I try to connect via ssh, I get the error "Failed to connect to the host via ssh: sh-4.4# ansible-playbook show\_v…

---

## [I want to restore the config backed up by fortigate using ansible](https://forum.ansible.com/t/i-want-to-restore-the-config-backed-up-by-fortigate-using-ansible/35549)

<div class="topic-metadata">

**Author:** [@room\_rabosan](https://forum.ansible.com/u/room_rabosan)\
**Replies:** 1\
**Last updated:** [July 27, 2021, 10:22am UTC](https://forum.ansible.com/t/i-want-to-restore-the-config-backed-up-by-fortigate-using-ansible/35549 "2021-07-27T10:22:35Z")

</div>

Hello!! I want to restore the config backed up by fortigate using ansible I’m using the Monitor API, which is supported by the REST API. →Restore / Backup config with Monitor API The Backup is complete, but I can’t c…

---

## [unable to load customized cliconf](https://forum.ansible.com/t/unable-to-load-customized-cliconf/35544)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 1\
**Last updated:** [July 27, 2021, 6:39am UTC](https://forum.ansible.com/t/unable-to-load-customized-cliconf/35544 "2021-07-27T06:39:07Z")

</div>

Hi, I had written customised cliconf and terminal but both are not getting loaded even though,collection got loaded due to being unable to get my customised facts. Please help me with this. Thanks, Nitesh

---

## [Ansible network module ios\_config dont work on my fs S3260switch](https://forum.ansible.com/t/ansible-network-module-ios-config-dont-work-on-my-fs-s3260switch/35520)

<div class="topic-metadata">

**Author:** [@Mythicale](https://forum.ansible.com/u/Mythicale)\
**Replies:** 5\
**Last updated:** [July 26, 2021, 4:54pm UTC](https://forum.ansible.com/t/ansible-network-module-ios-config-dont-work-on-my-fs-s3260switch/35520 "2021-07-26T16:54:28Z")

</div>

Hello! I finishing my course beeing an intern on a company, and my project is switch automation with ansible. With the cisco switch its not hard, but fs.com switches although they are similar to cisco, dont accept some…

---

## [Help for running powershell script through winrm in python/lambda](https://forum.ansible.com/t/help-for-running-powershell-script-through-winrm-in-python-lambda/35543)

<div class="topic-metadata">

**Author:** [@Jason\_Yu](https://forum.ansible.com/u/Jason_Yu)\
**Replies:** 0\
**Last updated:** [July 24, 2021, 9:21pm UTC](https://forum.ansible.com/t/help-for-running-powershell-script-through-winrm-in-python-lambda/35543 "2021-07-24T21:21:35Z")

</div>

Dear all: I found this mailing list through this link https://docs.ansible.com/ansible/latest/user\_guide/windows\_winrm.html#what-is-winrm. I have suffered by using winrm module inside my python script. I would like to u…

---

## [Should be simple... Seems like command's chdir parameter doesn't work...](https://forum.ansible.com/t/should-be-simple-seems-like-commands-chdir-parameter-doesnt-work/35541)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 8\
**Last updated:** [July 23, 2021, 5:41pm UTC](https://forum.ansible.com/t/should-be-simple-seems-like-commands-chdir-parameter-doesnt-work/35541 "2021-07-23T17:41:39Z")

</div>

Seems like the module command: parameter isn’t working. Anyone have the same error? playbook:

---

## [Ansible playbook to check whether "retrieve the information of an email subject"](https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530)

<div class="topic-metadata">

**Author:** [@Tcl\_Salem](https://forum.ansible.com/u/Tcl_Salem)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 2:48pm UTC](https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530 "2021-07-22T14:48:58Z")

</div>

Hello Team, I was trying to explore something on email notifications, where I am able to send emails successfully, and also able to retrieve mail successfull messages by using the debug module. another thing i would lik…

---

## [Winrm configuration issue](https://forum.ansible.com/t/winrm-configuration-issue/35535)

<div class="topic-metadata">

**Author:** [@Thanh\_Nguyen\_Duc](https://forum.ansible.com/u/Thanh_Nguyen_Duc)\
**Replies:** 6\
**Last updated:** [July 22, 2021, 2:42pm UTC](https://forum.ansible.com/t/winrm-configuration-issue/35535 "2021-07-22T14:42:48Z")

</div>

Hi experts, I have an ansible server managing a lot of windows servers. Recently I encountered an issue with a few client with the error below. (attachments)

---

## [Using a module inside a folder](https://forum.ansible.com/t/using-a-module-inside-a-folder/35536)

<div class="topic-metadata">

**Author:** [@Mythicale](https://forum.ansible.com/u/Mythicale)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 2:28pm UTC](https://forum.ansible.com/t/using-a-module-inside-a-folder/35536 "2021-07-22T14:28:55Z")

</div>

Hi, I´ve made some changes on cisco.ios module and now i wanted to try it, but the problem is that i dont know how to use a module that is inside a folder. When i call cisco.ios module i just use ios\_config or ios\_comm…

---

## [Log file monitoring](https://forum.ansible.com/t/log-file-monitoring/35533)

<div class="topic-metadata">

**Author:** [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 6:33pm UTC](https://forum.ansible.com/t/log-file-monitoring/35533 "2021-07-21T18:33:45Z")

</div>

Hi guys Is there any way to monitor the log file(about web service deployment) in ansible which is in remote windows Server

---

## [Command module usage](https://forum.ansible.com/t/command-module-usage/35532)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 4\
**Last updated:** [July 21, 2021, 1:50pm UTC](https://forum.ansible.com/t/command-module-usage/35532 "2021-07-21T13:50:32Z")

</div>

Hi, i am using command module in my playbook where i generally want a uptime of my remote machine but whenever i run the playbook i am getting my control machine uptime for the remote hosts.

---

## [how to pass the variable holding the value to regex\_search for matching the output?](https://forum.ansible.com/t/how-to-pass-the-variable-holding-the-value-to-regex-search-for-matching-the-output/35525)

<div class="topic-metadata">

**Author:** [@Charles\_Daniel](https://forum.ansible.com/u/Charles_Daniel)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 7:29am UTC](https://forum.ansible.com/t/how-to-pass-the-variable-holding-the-value-to-regex-search-for-matching-the-output/35525 "2021-07-21T07:29:16Z")

</div>

Team, I would like to pass the variable holding value to regex to match the output. prim\_b2b\_ip is the variable which i need to use inside the regex search for matching whether the return output comes as expected or no…

---

## [Skipping plugin (filenam.py) as it seems to be invalid: The 'cryptography' distribution was not found and is required by ansible](https://forum.ansible.com/t/skipping-plugin-filenam-py-as-it-seems-to-be-invalid-the-cryptography-distribution-was-not-found-and-is-required-by-ansible/35529)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 6:17am UTC](https://forum.ansible.com/t/skipping-plugin-filenam-py-as-it-seems-to-be-invalid-the-cryptography-distribution-was-not-found-and-is-required-by-ansible/35529 "2021-07-21T06:17:50Z")

</div>

There is very little tangible information in your message. The error however still looks pretty clear to me. Try installing the cryptography package (pip install cryptography). I’m guessing that this will cause your f…

---

## [How to answer to prompt in configuration mode Cisco switch](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488)

<div class="topic-metadata">

**Author:** [@mana\_maghrebi](https://forum.ansible.com/u/mana_maghrebi)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 1:00am UTC](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488 "2021-07-21T01:00:21Z")

</div>

Hi all, I want to configure Radius do1x in 2960 cisco switch with ansible. As soon as I run command aaa accounting identity default start-stop group, a prompt pops up saying: This operation will permanently convert all …

---

## [Ansible-4.3.0 has been released](https://forum.ansible.com/t/ansible-4-3-0-has-been-released/35527)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 9:43pm UTC](https://forum.ansible.com/t/ansible-4-3-0-has-been-released/35527 "2021-07-20T21:43:24Z")

</div>

Hi all, We're happy to announce that the ansible-4.3.0 package has been released! The update contains bugfixes and new, backwards compatible features in the contained collections. How to get it

---

## [Ansible for Dasan](https://forum.ansible.com/t/ansible-for-dasan/35526)

<div class="topic-metadata">

**Author:** [@Cameron1](https://forum.ansible.com/u/Cameron1)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 2:10pm UTC](https://forum.ansible.com/t/ansible-for-dasan/35526 "2021-07-20T14:10:27Z")

</div>

Hi Team, Does anyone know whether Ansible supports Dasan Networks OLT’s or vice versa? It’s OS is similar to that of Cisco and Arista, but playbooks that run on those don’t typically work the same on the OLT, in partic…

---

## [lineinfile is skipped if one of the task ignored](https://forum.ansible.com/t/lineinfile-is-skipped-if-one-of-the-task-ignored/35517)

<div class="topic-metadata">

**Author:** [@Hanumantha\_Reddy\_Bas](https://forum.ansible.com/u/Hanumantha_Reddy_Bas)\
**Replies:** 1\
**Last updated:** [July 20, 2021, 5:16am UTC](https://forum.ansible.com/t/lineinfile-is-skipped-if-one-of-the-task-ignored/35517 "2021-07-20T05:16:45Z")

</div>

Hi All, I have a playbook as follows:

---

## [how to get values from dict in template with for loop ?](https://forum.ansible.com/t/how-to-get-values-from-dict-in-template-with-for-loop/35524)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 3:03am UTC](https://forum.ansible.com/t/how-to-get-values-from-dict-in-template-with-for-loop/35524 "2021-07-20T03:03:41Z")

</div>

I have two dict file like teams.yml { “teams”: \[{“gid”: 10125,“location”: \[“hq”\],“name”: “aa”,“users”: \[“chenhu”,“chouf”\]}, {“gid”: 10126,“location”: \[“hq”\],“name”: “ac”,“users”: \[“guoj”,“yangc”\]} \] } users.yml { …

---

## [New releases: ansible-core 2.11.3, ansible-base 2.10.12, ansible 2.9.24](https://forum.ansible.com/t/new-releases-ansible-core-2-11-3-ansible-base-2-10-12-ansible-2-9-24/35523)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 3:03am UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-11-3-ansible-base-2-10-12-ansible-2-9-24/35523 "2021-07-20T03:03:38Z")

</div>

Hi all- we're happy to announce the general release of: - ansible-core 2.11.3 - ansible-base 2.10.12 - ansible 2.9.24 How to get it

---

## [Stouck in Ansible](https://forum.ansible.com/t/stouck-in-ansible/35516)

<div class="topic-metadata">

**Author:** [@Abdul\_Waheed\_Khan](https://forum.ansible.com/u/Abdul_Waheed_Khan)\
**Replies:** 2\
**Last updated:** [July 20, 2021, 2:52am UTC](https://forum.ansible.com/t/stouck-in-ansible/35516 "2021-07-20T02:52:49Z")

</div>

Hi everyone, i am new in this forum . i am configuring ansible (tyk-ansible) but stuck in . please help me. Regards, Abdul waheed

---

## [list all files in directory and copy all content.](https://forum.ansible.com/t/list-all-files-in-directory-and-copy-all-content/35522)

<div class="topic-metadata">

**Author:** [@Vincent\_Nambatac](https://forum.ansible.com/u/Vincent_Nambatac)\
**Replies:** 1\
**Last updated:** [July 20, 2021, 1:49am UTC](https://forum.ansible.com/t/list-all-files-in-directory-and-copy-all-content/35522 "2021-07-20T01:49:06Z")

</div>

Hi there , I want to ask what approach I will do If I want to copy all content in an unzip files. I unzip the files and list all directories. the problem is I want to copy all files inside the directory but only 1 conten…

---

## [question about tags](https://forum.ansible.com/t/question-about-tags/35521)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 3\
**Last updated:** [July 19, 2021, 7:59pm UTC](https://forum.ansible.com/t/question-about-tags/35521 "2021-07-19T19:59:21Z")

</div>

I have a bit of a problem, and was wondering if anyone has ever done something like this. I have a playbook I am working on, where it updates firewalld rules for some kubernetes clusters we have. Rather than have a playb…

---

## [Ansible play freezes and never completes after copying part of the files using synchronize module](https://forum.ansible.com/t/ansible-play-freezes-and-never-completes-after-copying-part-of-the-files-using-synchronize-module/35519)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [July 19, 2021, 1:49pm UTC](https://forum.ansible.com/t/ansible-play-freezes-and-never-completes-after-copying-part-of-the-files-using-synchronize-module/35519 "2021-07-19T13:49:45Z")

</div>

Below is my playbook that helps transfer a set of files from remote source to local directory. name: “Play 1.5” hosts: “{{ groups\[‘dest\_nodes’\] | default(groups\[‘all’\]) }}” serial: 1 gather\_facts: false vars: ansi…

---

## [Upload var\_files based on a value or ignore if not exist](https://forum.ansible.com/t/upload-var-files-based-on-a-value-or-ignore-if-not-exist/35515)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [July 18, 2021, 7:36pm UTC](https://forum.ansible.com/t/upload-var-files-based-on-a-value-or-ignore-if-not-exist/35515 "2021-07-18T19:36:36Z")

</div>

hosts: server1 vars\_files: main.yml second.yml Hi, I have a a small playbook that is using variables based on a file. Main.yml the file will always exist while second.yml might exist. Is it possible to configure …

---

## [Parse a dynamic json response](https://forum.ansible.com/t/parse-a-dynamic-json-response/35514)

<div class="topic-metadata">

**Author:** [@Stephane\_Cremel](https://forum.ansible.com/u/Stephane_Cremel)\
**Replies:** 0\
**Last updated:** [July 16, 2021, 2:00pm UTC](https://forum.ansible.com/t/parse-a-dynamic-json-response/35514 "2021-07-16T14:00:00Z")

</div>

I work on role for administrate an elastic cluster. When i execute this : name: Get Statistic of index uri: url: “{{ update\_index }}” method: GET body: “” body\_format: json register: result\_stats when: index\_ …

---

## [To display the logs other than secret codes in a task](https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512)

<div class="topic-metadata">

**Author:** [@Aneesh](https://forum.ansible.com/u/Aneesh)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 8:14am UTC](https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512 "2021-07-16T08:14:34Z")

</div>

Hi I am using vault for database passwords and used for the execution of database tasks, With no\_log, the messages are getting censored. But if in case of any error from MySQL /database also not visible because of this …

---

## [Executing powershell script via ansible playbook is not working properly](https://forum.ansible.com/t/executing-powershell-script-via-ansible-playbook-is-not-working-properly/35502)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 3:59am UTC](https://forum.ansible.com/t/executing-powershell-script-via-ansible-playbook-is-not-working-properly/35502 "2021-07-16T03:59:48Z")

</div>

Hi, I’m trying to execute powershell script via ansible, however playbook is successfully running but its incomplete. same script if I run directely on windows server its perfectly working, its failing whenever i ran th…

---

## [After 23 attempts, failed to spawn pexpect session error](https://forum.ansible.com/t/after-23-attempts-failed-to-spawn-pexpect-session-error/35511)

<div class="topic-metadata">

**Author:** [@Suneel\_Hegde](https://forum.ansible.com/u/Suneel_Hegde)\
**Replies:** 0\
**Last updated:** [July 16, 2021, 3:49am UTC](https://forum.ansible.com/t/after-23-attempts-failed-to-spawn-pexpect-session-error/35511 "2021-07-16T03:49:50Z")

</div>

Hello Team, we are trying to copy NXOS image using ansible getting this error when we ran the playbook form the AWX anyone please help what is causing this issuefatal: \[switch\]: FAILED! =\> { “msg”: “After 23 attempts…

---

## [Ansible winrm Read timed out when running win\_update - intermittent](https://forum.ansible.com/t/ansible-winrm-read-timed-out-when-running-win-update-intermittent/35509)

<div class="topic-metadata">

**Author:** [@Robert\_Rozek](https://forum.ansible.com/u/Robert_Rozek)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 9:11pm UTC](https://forum.ansible.com/t/ansible-winrm-read-timed-out-when-running-win-update-intermittent/35509 "2021-07-15T21:11:52Z")

</div>

Hello, I have this intermittent issue where, when Windows Server servers are patching or rebooting I would get WinRM -Read Timed out. This is occruing intermittently so I cannot freely replicate it. Normally this would…

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

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