# Archives

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

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

**Page:** 220

---

## [How to specify foldername with wildcard inside a jinja template](https://forum.ansible.com/t/how-to-specify-foldername-with-wildcard-inside-a-jinja-template/32414)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 7, 2020, 5:34pm UTC](https://forum.ansible.com/t/how-to-specify-foldername-with-wildcard-inside-a-jinja-template/32414 "2020-03-07T17:34:27Z")

</div>

I wish to check using if condition inside a jinja template where any of the folders starting with the name “dump\_” has any file starting with the name bad For for single folder the below jinja template works as suggeste…

---

## [Cloud formation - minimum BOTO version](https://forum.ansible.com/t/cloud-formation-minimum-boto-version/32413)

<div class="topic-metadata">

**Author:** [@Harish\_S](https://forum.ansible.com/u/Harish_S)\
**Replies:** 0\
**Last updated:** [March 7, 2020, 2:19am UTC](https://forum.ansible.com/t/cloud-formation-minimum-boto-version/32413 "2020-03-07T02:19:14Z")

</div>

Hi, The cloud formation documentation indicates both BOTO & BOTO3 as a requirement. It seems a bit ambiguous as they are two different versions - is it BOTO or BOTO3 to be exact? From amazon.aws.cloudformation module –…

---

## [Ansible Module for Azure - Application Gateway Scaling](https://forum.ansible.com/t/ansible-module-for-azure-application-gateway-scaling/32412)

<div class="topic-metadata">

**Author:** [@John\_Sebastian](https://forum.ansible.com/u/John_Sebastian)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 11:56pm UTC](https://forum.ansible.com/t/ansible-module-for-azure-application-gateway-scaling/32412 "2020-03-06T23:56:01Z")

</div>

I have seen Modules for creating new instance of Application gateway in Azure, But not Scale up/down Application Gateways which already exist. Can some one please help?

---

## [How to pylint and unit test module\_utils code in my local module/role?](https://forum.ansible.com/t/how-to-pylint-and-unit-test-module-utils-code-in-my-local-module-role/32408)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 4\
**Last updated:** [March 6, 2020, 10:07pm UTC](https://forum.ansible.com/t/how-to-pylint-and-unit-test-module-utils-code-in-my-local-module-role/32408 "2020-03-06T22:07:04Z")

</div>

When developing a role that has a local module with some code split into module\_utils, how do you set up your pythonpath or venv so that pylint and unit testing resolves the imports correctly? For example: https://githu…

---

## [Need win\_shell to run with elevated privileges](https://forum.ansible.com/t/need-win-shell-to-run-with-elevated-privileges/32411)

<div class="topic-metadata">

**Author:** [@Arielle\_Adams](https://forum.ansible.com/u/Arielle_Adams)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 10:03pm UTC](https://forum.ansible.com/t/need-win-shell-to-run-with-elevated-privileges/32411 "2020-03-06T22:03:32Z")

</div>

Hi, I’m unable to get win\_shell to run with elevated “run as admin” privileges. I have the details posted below in this issue: https://github.com/ansible/ansible/issues/68086 As stated, I tried to see if it could be a…

---

## [Can't start AWX web, connection rabbitmq, postgres timeout](https://forum.ansible.com/t/cant-start-awx-web-connection-rabbitmq-postgres-timeout/32169)

<div class="topic-metadata">

**Author:** [@Tat\_Dat\_Pham](https://forum.ansible.com/u/Tat_Dat_Pham)\
**Replies:** 17\
**Last updated:** [March 6, 2020, 6:10pm UTC](https://forum.ansible.com/t/cant-start-awx-web-connection-rabbitmq-postgres-timeout/32169 "2020-03-06T18:10:51Z")

</div>

ISSUE TYPE- Bug Report SUMMARY##### ENVIRONMENT- AWX version: 9.1.1 AWX install method: docker on centos8 Ansible version: 2.9.3 Operating System: Centos 8 Web Browser: Chrome latest STEPS TO REPRODUCE Install awx foll…

---

## [Retrieving a document to a unique name?](https://forum.ansible.com/t/retrieving-a-document-to-a-unique-name/32368)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 5:52pm UTC](https://forum.ansible.com/t/retrieving-a-document-to-a-unique-name/32368 "2020-03-06T17:52:11Z")

</div>

I will write a program that looks for network devices on its local network and created a report of the findings. That’s easy. Using Ansible to push out the program and execute the program is easy. But how do I pull the r…

---

## [Including a playbook that usually has a survey in front of it](https://forum.ansible.com/t/including-a-playbook-that-usually-has-a-survey-in-front-of-it/32410)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 5:41pm UTC](https://forum.ansible.com/t/including-a-playbook-that-usually-has-a-survey-in-front-of-it/32410 "2020-03-06T17:41:53Z")

</div>

Hi AWX Team - I have a “Build a VM” playbook that typically has a survey in front of it in Ansible Tower. When the user launches it, it asks for hostname and IP address. If I want to include this play in another playbo…

---

## [Unable to  access variables from host\_vars dir however can access the same variables when specified in roles/defaults/mail.yml](https://forum.ansible.com/t/unable-to-access-variables-from-host-vars-dir-however-can-access-the-same-variables-when-specified-in-roles-defaults-mail-yml/32382)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 5\
**Last updated:** [March 6, 2020, 4:05pm UTC](https://forum.ansible.com/t/unable-to-access-variables-from-host-vars-dir-however-can-access-the-same-variables-when-specified-in-roles-defaults-mail-yml/32382 "2020-03-06T16:05:00Z")

</div>

I have created multiple inventory files specific to dev , qa etc env. under inventory dir. inventory/dev.domain.net.yml Any suggestions, would help as I am stucked here…

---

## [Calling powershell function via Ansible](https://forum.ansible.com/t/calling-powershell-function-via-ansible/32396)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 3\
**Last updated:** [March 6, 2020, 3:51pm UTC](https://forum.ansible.com/t/calling-powershell-function-via-ansible/32396 "2020-03-06T15:51:00Z")

</div>

I have a function, it works perfectly if I run it directly from my target server. \` powershell.exe -ExecutionPolicy ByPass -file “C:\\Scripts\\USERNAME\\dfsadd\_func.ps1”; dfsadd -junction Apps -obj\_name toast -prd\_vserver…

---

## [Using vars\_files](https://forum.ansible.com/t/using-vars-files/32406)

<div class="topic-metadata">

**Author:** [@Brandon\_Daly](https://forum.ansible.com/u/Brandon_Daly)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 2:31pm UTC](https://forum.ansible.com/t/using-vars-files/32406 "2020-03-06T14:31:32Z")

</div>

I have a play that is creating yaml for each of my hosts and this is stored in './host\_vars/{{ inventory\_hostname }}/l3vpn.yml I then have a second play in which I wish to use this yaml. both are called from another pl…

---

## [Ansible Split JSON Return](https://forum.ansible.com/t/ansible-split-json-return/32392)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 7\
**Last updated:** [March 6, 2020, 1:38pm UTC](https://forum.ansible.com/t/ansible-split-json-return/32392 "2020-03-06T13:38:03Z")

</div>

Have the Following Playbook Which Returns the following ok: \[localhost\] =\> { “mdb.json”: \[ { “mac-address”: “xx:xx:xx:xx:xx” } \] }

---

## [Ansible "failed\_when" not working as desired](https://forum.ansible.com/t/ansible-failed-when-not-working-as-desired/32405)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 1:28pm UTC](https://forum.ansible.com/t/ansible-failed-when-not-working-as-desired/32405 "2020-03-06T13:28:37Z")

</div>

Hi, I have a task as follows: hosts: nodes gather\_facts: true tasks: name: CurlCP Status shell: “curl -Is -m 1 http://localhost:9113/cp/healthcheck” register: cp\_status failed\_when: “‘200 OK’ not in cp\_status.std…

---

## [How to incorporate if else statement in Jinja template.](https://forum.ansible.com/t/how-to-incorporate-if-else-statement-in-jinja-template/32404)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 14\
**Last updated:** [March 6, 2020, 1:01pm UTC](https://forum.ansible.com/t/how-to-incorporate-if-else-statement-in-jinja-template/32404 "2020-03-06T13:01:10Z")

</div>

Here is my variable file \` layers: name: APP things: cactus lotus jasmine rose name: WAS things: mango apple \` Below is my jinja template file: \` {% for layer in layers %} {% for item …

---

## [Ansible 2.8 hanging with bash command](https://forum.ansible.com/t/ansible-2-8-hanging-with-bash-command/32394)

<div class="topic-metadata">

**Author:** [@John1](https://forum.ansible.com/u/John1)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 12:41pm UTC](https://forum.ansible.com/t/ansible-2-8-hanging-with-bash-command/32394 "2020-03-06T12:41:16Z")

</div>

I have a task that searches logs for specific errors in various logs (up to 7 days worth of logs). When searching through just one log I never had an issue, but when searching through the 7 logs (used a wildcard to accom…

---

## [Getting a message if register failed inside a task](https://forum.ansible.com/t/getting-a-message-if-register-failed-inside-a-task/32402)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 11:47am UTC](https://forum.ansible.com/t/getting-a-message-if-register-failed-inside-a-task/32402 "2020-03-06T11:47:09Z")

</div>

HI, I have a task that create a folder on HDFS storage. If the folder exists I wish to show a message - hosts: gw become: true become\_user: hdfs tasks: - name: create folder in HDFS shell: hadoop dfs -mk…

---

## [Can't get NGINX HTTPS reverse proxy to work with AWS](https://forum.ansible.com/t/cant-get-nginx-https-reverse-proxy-to-work-with-aws/32393)

<div class="topic-metadata">

**Author:** [@Pierre\_Bardou](https://forum.ansible.com/u/Pierre_Bardou)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 9:26am UTC](https://forum.ansible.com/t/cant-get-nginx-https-reverse-proxy-to-work-with-aws/32393 "2020-03-06T09:26:08Z")

</div>

Hello, I set up a NGINX HTTPS reverse proxy to securely access AWX. I can’t login : the UI says invalid username/password Environment: - AWX version: 9.1.1 AWX install method: docker on linux Ansible version: 2.8.5 O…

---

## [Convert list to string in rendered Jinja template](https://forum.ansible.com/t/convert-list-to-string-in-rendered-jinja-template/32403)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 3\
**Last updated:** [March 6, 2020, 9:08am UTC](https://forum.ansible.com/t/convert-list-to-string-in-rendered-jinja-template/32403 "2020-03-06T09:08:12Z")

</div>

I have a variable files like below: \` layers: name: APP things: cactus lotus jasmine rose bgcolor: sky blue name: WAS things: mango apple bgcolor: yellow \` Below is my jinja templa…

---

## [Need help construct a complex HTML using Jinja template.](https://forum.ansible.com/t/need-help-construct-a-complex-html-using-jinja-template/32401)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 2:31am UTC](https://forum.ansible.com/t/need-help-construct-a-complex-html-using-jinja-template/32401 "2020-03-06T02:31:22Z")

</div>

Experts Hi, I have a variable file that has a set of flowers, colors, and countries. \` cat vars/DASHBOARD\_vars.yaml

---

## [New Ansible release 2.8.10](https://forum.ansible.com/t/new-ansible-release-2-8-10/32400)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 9:56pm UTC](https://forum.ansible.com/t/new-ansible-release-2-8-10/32400 "2020-03-05T21:56:20Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.8.10 is now available! How do you get it?

---

## [New Ansible release 2.8.10](https://forum.ansible.com/t/new-ansible-release-2-8-10/32399)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 9:56pm UTC](https://forum.ansible.com/t/new-ansible-release-2-8-10/32399 "2020-03-05T21:56:09Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.8.10 is now available! How do you get it?

---

## [File operations failing on shared file system #67410](https://forum.ansible.com/t/file-operations-failing-on-shared-file-system-67410/32358)

<div class="topic-metadata">

**Author:** [@Stephen\_Gevers](https://forum.ansible.com/u/Stephen_Gevers)\
**Replies:** 8\
**Last updated:** [March 5, 2020, 8:40pm UTC](https://forum.ansible.com/t/file-operations-failing-on-shared-file-system-67410/32358 "2020-03-05T20:40:39Z")

</div>

I opened an issue that was closed because the developer believes the problem is a race condition that can’t be dealt with in code. I created a playbook where two hosts that both mount a shared file system test for the ex…

---

## [Build a file based on list only when another part of list matches ansible\_hostname](https://forum.ansible.com/t/build-a-file-based-on-list-only-when-another-part-of-list-matches-ansible-hostname/32397)

<div class="topic-metadata">

**Author:** [@John1](https://forum.ansible.com/u/John1)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 8:35pm UTC](https://forum.ansible.com/t/build-a-file-based-on-list-only-when-another-part-of-list-matches-ansible-hostname/32397 "2020-03-05T20:35:17Z")

</div>

I need to create a file based on the output of the csv\_content variable. Specifically I want to extract the ErrorMessage only, but the caveat is that I want only the errors associated with ansible\_hostname. That way on e…

---

## [Know if a variable come from extra\_vars](https://forum.ansible.com/t/know-if-a-variable-come-from-extra-vars/32373)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 7:51pm UTC](https://forum.ansible.com/t/know-if-a-variable-come-from-extra-vars/32373 "2020-03-05T19:51:24Z")

</div>

Hi ! I think it's not possible, but is there a way to check than a variable came from extra\_vars and not from another location (inventory...) ?

---

## [Ansible deployng VM and transfering and execute shell script on remote host](https://forum.ansible.com/t/ansible-deployng-vm-and-transfering-and-execute-shell-script-on-remote-host/32386)

<div class="topic-metadata">

**Author:** [@Julio\_Cesar\_Caraca](https://forum.ansible.com/u/Julio_Cesar_Caraca)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 6:59pm UTC](https://forum.ansible.com/t/ansible-deployng-vm-and-transfering-and-execute-shell-script-on-remote-host/32386 "2020-03-05T18:59:02Z")

</div>

Hi Guys, I got a playbook to deploy virtual machines and it´s working very well. And now I´m trying to transfer and execute a shell script during the deploy of virtual machine but I´m getting many issues when changing …

---

## [I'm trying to find a way to get variables from AWX API](https://forum.ansible.com/t/im-trying-to-find-a-way-to-get-variables-from-awx-api/32391)

<div class="topic-metadata">

**Author:** [@DeLoVaN](https://forum.ansible.com/u/DeLoVaN)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 1:32pm UTC](https://forum.ansible.com/t/im-trying-to-find-a-way-to-get-variables-from-awx-api/32391 "2020-03-05T13:32:13Z")

</div>

Hi there, I use Gitlab-CI to build my products and they need a bunch of parameters to be built. I centralized them to Ansible (since many projects share the sames variables) and I am currently getting them by ssh-ing in…

---

## [New Ansible releases 2.9.6 and 2.8.9](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32390)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 8:38am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32390 "2020-03-05T08:38:30Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.6 and 2.8.9 are now available! How do you get it?

---

## [New Ansible releases 2.9.6 and 2.8.9](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32389)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 8:38am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32389 "2020-03-05T08:38:02Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.6 and 2.8.9 are now available! How do you get it?

---

## [snow\_record\_find Error](https://forum.ansible.com/t/snow-record-find-error/32388)

<div class="topic-metadata">

**Author:** [@Fitri\_Izuan\_Abdul\_Ro](https://forum.ansible.com/u/Fitri_Izuan_Abdul_Ro)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 7:25am UTC](https://forum.ansible.com/t/snow-record-find-error/32388 "2020-03-05T07:25:19Z")

</div>

Hi, I am newbie and this is my first time to write Ansible script in my project. Currently I am using snow\_record\_find module to search or retrieve record from SNOW however I got error mentioned "Failed to find record: …

---

## [How to copy image files to IOS-XR device ?](https://forum.ansible.com/t/how-to-copy-image-files-to-ios-xr-device/32387)

<div class="topic-metadata">

**Author:** [@Mysimpia](https://forum.ansible.com/u/Mysimpia)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 7:33pm UTC](https://forum.ansible.com/t/how-to-copy-image-files-to-ios-xr-device/32387 "2020-03-04T19:33:02Z")

</div>

Hi, there; In order to upgrade IOS-XR software, I need to copy IOS-XR image files to IOS-XR device. I was able to do it using scp from a Linux server CLI. However, I’d like to do it using Ansible playbook. Already trie…

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

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