# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=170

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

**Page:** 171

---

## [Deploy directory hierarchy of templates](https://forum.ansible.com/t/deploy-directory-hierarchy-of-templates/31639)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 3\
**Last updated:** [September 21, 2020, 5:28pm UTC](https://forum.ansible.com/t/deploy-directory-hierarchy-of-templates/31639 "2020-09-21T17:28:54Z")

</div>

Hi I’m looking to deploy a number of configuration files using the template module. The files are structured in a directory hierarchy that needs to be maintained. So for this purpose I want to use the with\_filetree look…

---

## [gcp\_compute\_instance\_info \>\> filters](https://forum.ansible.com/t/gcp-compute-instance-info-filters/33859)

<div class="topic-metadata">

**Author:** [@Yantram\_Cloud](https://forum.ansible.com/u/Yantram_Cloud)\
**Replies:** 2\
**Last updated:** [September 21, 2020, 3:04pm UTC](https://forum.ansible.com/t/gcp-compute-instance-info-filters/33859 "2020-09-21T15:04:40Z")

</div>

I am trying to implemet filtering based on the tags which my vm has. unfortunately have not been able to get it to work. Can someone share an example here. here is my current playbook. name: Locate Instance hosts: l…

---

## [Generic error, definitely non standard module.](https://forum.ansible.com/t/generic-error-definitely-non-standard-module/33858)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 2:12pm UTC](https://forum.ansible.com/t/generic-error-definitely-non-standard-module/33858 "2020-09-21T14:12:31Z")

</div>

Alright, So I’m using NetApp Ansible modules to try and just pass CLI commands, as seen below. I’m getting the further error (very bottom), no matter what I do for some awful reason. Wtf am I doing wrong? No workie …

---

## [Reading partial string](https://forum.ansible.com/t/reading-partial-string/33855)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 6:43am UTC](https://forum.ansible.com/t/reading-partial-string/33855 "2020-09-21T06:43:24Z")

</div>

Hi, I have a simple playbook that takes an IP address from the input file and update this IP including hostname under /etc/hosts. The problem is that in the input file the IP is written with subnet – 1.1.1.1/24 While …

---

## [Ansible set\_fact with with\_items always prints last item](https://forum.ansible.com/t/ansible-set-fact-with-with-items-always-prints-last-item/33848)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 3\
**Last updated:** [September 21, 2020, 6:29am UTC](https://forum.ansible.com/t/ansible-set-fact-with-with-items-always-prints-last-item/33848 "2020-09-21T06:29:30Z")

</div>

Hi Experts, I am looking to capture certain service status using ansible the problem is debug prints only last item.Below is the expected output. Hostname : test httpd → Running ntpd → Running Below are the playbook…

---

## [Ansible - url check for multiple hosts](https://forum.ansible.com/t/ansible-url-check-for-multiple-hosts/33853)

<div class="topic-metadata">

**Author:** [@priyanka\_prabhune](https://forum.ansible.com/u/priyanka_prabhune)\
**Replies:** 2\
**Last updated:** [September 20, 2020, 4:38pm UTC](https://forum.ansible.com/t/ansible-url-check-for-multiple-hosts/33853 "2020-09-20T16:38:09Z")

</div>

I am writing the Ansible playbook to check the URL status for multiple IPs from the hosts file, however, it is not working when I am giving input as a group\_name, but is working for single IP. Here is my playbook,

---

## [mail module](https://forum.ansible.com/t/mail-module/33846)

<div class="topic-metadata">

**Author:** [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Replies:** 7\
**Last updated:** [September 20, 2020, 2:33pm UTC](https://forum.ansible.com/t/mail-module/33846 "2020-09-20T14:33:29Z")

</div>

hi team i need one help with the mail module it is throwing error address family not supported if anyone know how to send mail when the task failed please help thanks prajwal h g

---

## [using ansible inside wsl2](https://forum.ansible.com/t/using-ansible-inside-wsl2/33854)

<div class="topic-metadata">

**Author:** [@Wayne\_Douglas](https://forum.ansible.com/u/Wayne_Douglas)\
**Replies:** 0\
**Last updated:** [September 20, 2020, 1:41pm UTC](https://forum.ansible.com/t/using-ansible-inside-wsl2/33854 "2020-09-20T13:41:54Z")

</div>

Hi I am trying to use ansible in wsl2 and have started getting errors like: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/wayne/.kube/config Has anyone else seen this? Goo…

---

## [KodeKloud Project](https://forum.ansible.com/t/kodekloud-project/33845)

<div class="topic-metadata">

**Author:** [@Melvin\_C\_Varghese](https://forum.ansible.com/u/Melvin_C_Varghese)\
**Replies:** 1\
**Last updated:** [September 20, 2020, 5:04am UTC](https://forum.ansible.com/t/kodekloud-project/33845 "2020-09-20T05:04:41Z")

</div>

Hi All, I am trying to deploy a LAMP stack using Ansible to 2 targets So I have 3 instances on Google Cloud: ansible-controller 10.140.0.5 ansible-target1 10.140.0.6 ansible-target2 10.140.0.7 I get an error when I…

---

## [Ansible: Is the any chance of maintain same tag same role but diffrent host name in main yml file by putting any when condition from tasks inside role.](https://forum.ansible.com/t/ansible-is-the-any-chance-of-maintain-same-tag-same-role-but-diffrent-host-name-in-main-yml-file-by-putting-any-when-condition-from-tasks-inside-role/33847)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 1\
**Last updated:** [September 19, 2020, 6:41pm UTC](https://forum.ansible.com/t/ansible-is-the-any-chance-of-maintain-same-tag-same-role-but-diffrent-host-name-in-main-yml-file-by-putting-any-when-condition-from-tasks-inside-role/33847 "2020-09-19T18:41:49Z")

</div>

I have tried to maintain my main yml file like below

---

## [firmware gathering - ansible prints last value](https://forum.ansible.com/t/firmware-gathering-ansible-prints-last-value/33852)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 0\
**Last updated:** [September 19, 2020, 11:01am UTC](https://forum.ansible.com/t/firmware-gathering-ansible-prints-last-value/33852 "2020-09-19T11:01:21Z")

</div>

Hi Experts, I am using below playbook to gather firmware from dell servers it works well but the problem is when same component shows twice or more with different value it just print last value.My requirement to print f…

---

## [Extreme network switch backup - ansible issue](https://forum.ansible.com/t/extreme-network-switch-backup-ansible-issue/33850)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 0\
**Last updated:** [September 19, 2020, 10:42am UTC](https://forum.ansible.com/t/extreme-network-switch-backup-ansible-issue/33850 "2020-09-19T10:42:10Z")

</div>

Hi Experts, We are planning to automate extreme network switch backup through ansible facing issues with few hosts.The playbook works for few hosts and shows below errors for remaining hosts. Is something need to be ch…

---

## [azure dynamic inventory - store static file](https://forum.ansible.com/t/azure-dynamic-inventory-store-static-file/33849)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 0\
**Last updated:** [September 19, 2020, 10:37am UTC](https://forum.ansible.com/t/azure-dynamic-inventory-store-static-file/33849 "2020-09-19T10:37:25Z")

</div>

Hi Experts, I have ansible setup that pulls inventory dynamically using below playbook from azure.We have an requirement to store these hosts in static file for other requirement.Could you someone help here? ansible al…

---

## [Ansible World](https://forum.ansible.com/t/ansible-world/33839)

<div class="topic-metadata">

**Author:** [@madan\_gopal](https://forum.ansible.com/u/madan_gopal)\
**Replies:** 3\
**Last updated:** [September 19, 2020, 3:36am UTC](https://forum.ansible.com/t/ansible-world/33839 "2020-09-19T03:36:31Z")

</div>

Hello All, I am completely new to Ansible and wanted to start my first baby steps with simple playbook which will help me out in my day-to-day works Problem Statement: To verify remote server uptime both Windows and Li…

---

## [windows custom facts help](https://forum.ansible.com/t/windows-custom-facts-help/33835)

<div class="topic-metadata">

**Author:** [@Dennis\_McCarthy1](https://forum.ansible.com/u/Dennis_McCarthy1)\
**Replies:** 6\
**Last updated:** [September 18, 2020, 7:30pm UTC](https://forum.ansible.com/t/windows-custom-facts-help/33835 "2020-09-18T19:30:24Z")

</div>

Can anyone point me in the direction of how to setup custom/local facts on Windows please? not just use fact\_path… Reading the docs I’ve found so far, it looks like you can’t just have a file with key:value like Linux u…

---

## [Ansible output customize](https://forum.ansible.com/t/ansible-output-customize/32377)

<div class="topic-metadata">

**Author:** [@Parveen\_Datt](https://forum.ansible.com/u/Parveen_Datt)\
**Replies:** 6\
**Last updated:** [September 18, 2020, 6:23pm UTC](https://forum.ansible.com/t/ansible-output-customize/32377 "2020-09-18T18:23:33Z")

</div>

Hi Team I have written a playbook and using debug variable we are reading the output in multiple play. Is there any way we can customize the output of each registered variable and print it nicely formatted . Any suggest…

---

## [Timeout (12s) waiting for privilege escalation prompt WITH PIPELINING](https://forum.ansible.com/t/timeout-12s-waiting-for-privilege-escalation-prompt-with-pipelining/33844)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 2\
**Last updated:** [September 18, 2020, 5:14pm UTC](https://forum.ansible.com/t/timeout-12s-waiting-for-privilege-escalation-prompt-with-pipelining/33844 "2020-09-18T17:14:26Z")

</div>

Hey all - I’m hitting the infamous Timeout (12s) waiting for privilege escalation prompt error but only under specific conditions. The task that fails is a loop: name: copy files from blob shell: “{{ blob\_ssodba\_downl…

---

## [unable to ping windows machine](https://forum.ansible.com/t/unable-to-ping-windows-machine/33842)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 8\
**Last updated:** [September 18, 2020, 2:18pm UTC](https://forum.ansible.com/t/unable-to-ping-windows-machine/33842 "2020-09-18T14:18:34Z")

</div>

i got the below error when i am trying to ping windows machine i have ran that configurepowershell.ps1 power script also and my winrm service is running successfully nut still facing same issue, please give me a solut…

---

## [Sending email with results](https://forum.ansible.com/t/sending-email-with-results/33812)

<div class="topic-metadata">

**Author:** [@Sandy\_Toshev](https://forum.ansible.com/u/Sandy_Toshev)\
**Replies:** 17\
**Last updated:** [September 18, 2020, 7:04am UTC](https://forum.ansible.com/t/sending-email-with-results/33812 "2020-09-18T07:04:12Z")

</div>

Hi guys, So I have been using the following simple playbook to keep a folder clean from files. Everything is working fine. However, I got into thinking that it will not hurt, if I get a notification, containing what has…

---

## [Best way to provide vault password in CI](https://forum.ansible.com/t/best-way-to-provide-vault-password-in-ci/33819)

<div class="topic-metadata">

**Author:** [@Luke\_Schlather](https://forum.ansible.com/u/Luke_Schlather)\
**Replies:** 9\
**Last updated:** [September 17, 2020, 10:31pm UTC](https://forum.ansible.com/t/best-way-to-provide-vault-password-in-ci/33819 "2020-09-17T22:31:08Z")

</div>

I’m trying to figure out what the best way to provide a vault password for a CI process is. My organization uses Azure Devops, where it is standard to create a secret environment variable, and make that available to the …

---

## [How to verify all disk size equal](https://forum.ansible.com/t/how-to-verify-all-disk-size-equal/33841)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 2:11pm UTC](https://forum.ansible.com/t/how-to-verify-all-disk-size-equal/33841 "2020-09-17T14:11:44Z")

</div>

Hi Team I need to verify if all disk size equal I have n number of disk. I have written a loop that gives size of disk. Now how do I verify all disks are equal size? name: Check the size of the disk shell: | bootin…

---

## ["/var/lib/awx/venv/awx/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) FileExistsError: \[Errno 17\] File exists:](https://forum.ansible.com/t/var-lib-awx-venv-awx-lib64-python3-6-os-py-line-220-in-makedirs-mkdir-name-mode-fileexistserror-errno-17-file-exists/33838)

<div class="topic-metadata">

**Author:** [@prabhu\_sridhar](https://forum.ansible.com/u/prabhu_sridhar)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 10:09am UTC](https://forum.ansible.com/t/var-lib-awx-venv-awx-lib64-python3-6-os-py-line-220-in-makedirs-mkdir-name-mode-fileexistserror-errno-17-file-exists/33838 "2020-09-17T10:09:51Z")

</div>

HI AWX version :11.2.0 We see the below error and one or two jobs failing(not all jobs failing) when multiple jobs are running. can you please advise what is the cause of the error and any suggestion to fix the issue? …

---

## [Ansible-pull issue.](https://forum.ansible.com/t/ansible-pull-issue/33837)

<div class="topic-metadata">

**Author:** [@Nahum\_Eliash](https://forum.ansible.com/u/Nahum_Eliash)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 9:25am UTC](https://forum.ansible.com/t/ansible-pull-issue/33837 "2020-09-17T09:25:30Z")

</div>

hello, i have a lab environments with a couple of Linux Ubuntu 18.04, and i’m trying to figure out why ansible-pull command is not working properly. i was viewing a great tutorial on how to build and execute the lab, a…

---

## [AWX job - remote host command output](https://forum.ansible.com/t/awx-job-remote-host-command-output/33825)

<div class="topic-metadata">

**Author:** [@Naveen\_Kumar](https://forum.ansible.com/u/Naveen_Kumar)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 8:57am UTC](https://forum.ansible.com/t/awx-job-remote-host-command-output/33825 "2020-09-17T08:57:39Z")

</div>

Hello, When I run job on any host its shows real time output till local host reach, when it goes for remote host command it waits to show output until job gets completed. Please help on how to see real time output of r…

---

## [netbox inventory source: set token in a vault](https://forum.ansible.com/t/netbox-inventory-source-set-token-in-a-vault/33836)

<div class="topic-metadata">

**Author:** [@szelga](https://forum.ansible.com/u/szelga)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 6:57am UTC](https://forum.ansible.com/t/netbox-inventory-source-set-token-in-a-vault/33836 "2020-09-17T06:57:12Z")

</div>

hello. i’m tinkering with netbox inventory source plugin and noticed , that i must set then auth token either in the inventory file, or in a env variable. but i’d rather have it in a vault file. my attempts to import t…

---

## [galaxy.yml tags length max?](https://forum.ansible.com/t/galaxy-yml-tags-length-max/33834)

<div class="topic-metadata">

**Author:** [@ddimatos](https://forum.ansible.com/u/ddimatos)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 2:52am UTC](https://forum.ansible.com/t/galaxy-yml-tags-length-max/33834 "2020-09-17T02:52:27Z")

</div>

Hello everyone, Early on when we started developing Ansible collections, I had a tag that was 42 chars long and it was accepted on Galaxy yet later rejected on Hub. I know it was long , call it naive or pass it off as a…

---

## [wrong task state with network\_cli (failed/unreachable)](https://forum.ansible.com/t/wrong-task-state-with-network-cli-failed-unreachable/33824)

<div class="topic-metadata">

**Author:** [@Greg\_Monroe](https://forum.ansible.com/u/Greg_Monroe)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 10:30pm UTC](https://forum.ansible.com/t/wrong-task-state-with-network-cli-failed-unreachable/33824 "2020-09-16T22:30:43Z")

</div>

Hello! I’m evaluating ansible to configure network switches and observed that the task result is not correct if the switch is not reachable. Using network\_cli it’s always ‘failed’ where I’d expect 'unreachable". A minima…

---

## [Ansible 2.5.1 APC Battery Backup Playbook to Reboot Outlet Group](https://forum.ansible.com/t/ansible-2-5-1-apc-battery-backup-playbook-to-reboot-outlet-group/33832)

<div class="topic-metadata">

**Author:** [@Calvin\_Kalabat](https://forum.ansible.com/u/Calvin_Kalabat)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 9:09pm UTC](https://forum.ansible.com/t/ansible-2-5-1-apc-battery-backup-playbook-to-reboot-outlet-group/33832 "2020-09-16T21:09:36Z")

</div>

I’ve been trying my hand with a playbook that would connect to a APC UPS and reboot a specific outlet group. The command is very simple in order to get the outlet group to reboot but I’m having issues with submitting the…

---

## [Generate group\_var file from Ansible playbook](https://forum.ansible.com/t/generate-group-var-file-from-ansible-playbook/33831)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 8:32pm UTC](https://forum.ansible.com/t/generate-group-var-file-from-ansible-playbook/33831 "2020-09-16T20:32:32Z")

</div>

Hello, I need to use an Ansible playbook to dynamically generate Ansible group\_var type file. Here is my inventory file: \[group1\] server1.example.com server2.example.com \[group2\] server3.example.com server4.exampl…

---

## [Processing data from Node](https://forum.ansible.com/t/processing-data-from-node/33830)

<div class="topic-metadata">

**Author:** [@Scott\_Fadden](https://forum.ansible.com/u/Scott_Fadden)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 6:49pm UTC](https://forum.ansible.com/t/processing-data-from-node/33830 "2020-09-16T18:49:35Z")

</div>

What is the best approach using ansible to Query data from a VM Operate on the results I need to look up the sd device serial numbers on the VM then process that locally (on node running ansible) then run another play…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=169)

[Next page](https://forum.ansible.com/c/archives/31.md?page=171)
