# Archives

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

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

**Page:** 110

---

## [Return List of Users with LDAP Query](https://forum.ansible.com/t/return-list-of-users-with-ldap-query/35684)

<div class="topic-metadata">

**Author:** [@david.burtton](https://forum.ansible.com/u/david.burtton)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 7:23pm UTC](https://forum.ansible.com/t/return-list-of-users-with-ldap-query/35684 "2021-08-27T19:23:17Z")

</div>

Hi All, I’m trying to use Ansible to query my Domain Controller to return a list of users with a specific set of criteria and then modify those returned users to add them to a group. How this looks in practice is that …

---

## [Doubt](https://forum.ansible.com/t/doubt/35681)

<div class="topic-metadata">

**Author:** [@Luiz\_Guilherme\_Nunes](https://forum.ansible.com/u/Luiz_Guilherme_Nunes)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 5:45am UTC](https://forum.ansible.com/t/doubt/35681 "2021-08-27T05:45:08Z")

</div>

Hi, I have problems with global configuration playbook. what is the correct setting? - hosts: all roles: - role: debian\_stock\_config when: ansible\_facts\[‘os\_family’\]|lower == ‘debian’ be elsewhere in the file depen…

---

## [When is ansible\_mounts defined?](https://forum.ansible.com/t/when-is-ansible-mounts-defined/35679)

<div class="topic-metadata">

**Author:** [@Gerrit\_Kuehn](https://forum.ansible.com/u/Gerrit_Kuehn)\
**Replies:** 6\
**Last updated:** [August 26, 2021, 7:59pm UTC](https://forum.ansible.com/t/when-is-ansible-mounts-defined/35679 "2021-08-26T19:59:34Z")

</div>

Hello, I've been using the ansible\_mounts variable for quite some time, but only now I recognise that it is not always defined. Some of my hosts just return:

---

## [tried to use pre-defined variable in WHEN conditional but not working, please assist](https://forum.ansible.com/t/tried-to-use-pre-defined-variable-in-when-conditional-but-not-working-please-assist/35680)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 2:19pm UTC](https://forum.ansible.com/t/tried-to-use-pre-defined-variable-in-when-conditional-but-not-working-please-assist/35680 "2021-08-26T14:19:12Z")

</div>

2 problems: too many moustaches (all conditionals aka \*when: have templating implied) when: ansible\_net\_version in ios\_image1.stdout\[0\] from the expression above, ios\_image1 does not have stdout, it is a strin…

---

## [Installing additional packages into an AWX K8S setup](https://forum.ansible.com/t/installing-additional-packages-into-an-awx-k8s-setup/35668)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 4\
**Last updated:** [August 26, 2021, 1:32pm UTC](https://forum.ansible.com/t/installing-additional-packages-into-an-awx-k8s-setup/35668 "2021-08-26T13:32:18Z")

</div>

We have AWX installed in a Kubernetes cluster. Everything is working great, however we have found a need to install some additional packages (i.e. openvpn) so jobs running from AWX can make use of them. What is the best …

---

## [Unable to impersonate as technical user through Ansible](https://forum.ansible.com/t/unable-to-impersonate-as-technical-user-through-ansible/35678)

<div class="topic-metadata">

**Author:** [@Sinduja\_Gururajan](https://forum.ansible.com/u/Sinduja_Gururajan)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 10:56am UTC](https://forum.ansible.com/t/unable-to-impersonate-as-technical-user-through-ansible/35678 "2021-08-26T10:56:51Z")

</div>

I have a simple playbook where i am impersonating as another user and execute a script which is there in test1 directory. playbook

---

## [getting error when trying to use 'at' module to schedule a script](https://forum.ansible.com/t/getting-error-when-trying-to-use-at-module-to-schedule-a-script/35658)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 6\
**Last updated:** [August 26, 2021, 1:44am UTC](https://forum.ansible.com/t/getting-error-when-trying-to-use-at-module-to-schedule-a-script/35658 "2021-08-26T01:44:36Z")

</div>

I tried to schdule a script to be run at a particular time as per the instruction in documentation for ‘at’ module. However iam getting below error. Not sure what iam doing wrong, please guide. First, i wrote a script w…

---

## [Best way to format complex findings for end-user consumption?](https://forum.ansible.com/t/best-way-to-format-complex-findings-for-end-user-consumption/35671)

<div class="topic-metadata">

**Author:** [@Johnnie\_Green](https://forum.ansible.com/u/Johnnie_Green)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 12:26am UTC](https://forum.ansible.com/t/best-way-to-format-complex-findings-for-end-user-consumption/35671 "2021-08-26T00:26:18Z")

</div>

Hi, Is there a clean and efficient ‘ansible’ way by which the playbook developer can gain more control over the formatting of information to be put in front of the resource that executes the playbook? I’m relatively ne…

---

## [Load balancer configuration for Awx in PKS cluster](https://forum.ansible.com/t/load-balancer-configuration-for-awx-in-pks-cluster/35667)

<div class="topic-metadata">

**Author:** [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 9:39pm UTC](https://forum.ansible.com/t/load-balancer-configuration-for-awx-in-pks-cluster/35667 "2021-08-25T21:39:46Z")

</div>

Hello, I am new to Ansible /Awx. We have deployed Awx on two PKS clusters. Both are connected to Postgres database in replica mode. Now, when we are trying to access Load balancer URL - we are getting ’ 503 no server f…

---

## [one common acl name with unique ip per device](https://forum.ansible.com/t/one-common-acl-name-with-unique-ip-per-device/35664)

<div class="topic-metadata">

**Author:** [@Josh\_Karki](https://forum.ansible.com/u/Josh_Karki)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 7:28pm UTC](https://forum.ansible.com/t/one-common-acl-name-with-unique-ip-per-device/35664 "2021-08-25T19:28:27Z")

</div>

I have about 5 ASAs and they all have one common ACL name say for example “allow\_test” now I need to add one more entry in the list for all 5 ASAs but each with different IP. Eg. access-list allow\_test standard permit …

---

## [create a dedicate log for every runned playbook](https://forum.ansible.com/t/create-a-dedicate-log-for-every-runned-playbook/35673)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 7:05pm UTC](https://forum.ansible.com/t/create-a-dedicate-log-for-every-runned-playbook/35673 "2021-08-25T19:05:59Z")

</div>

there is a way to have a dedicate ansible.log for every playbook runned? now prior tu run the playbook i export the log\_path and i set a custom name there is something smarter to achieve this? many thanks

---

## [AWX - Backup and restore](https://forum.ansible.com/t/awx-backup-and-restore/35677)

<div class="topic-metadata">

**Author:** [@agenttank](https://forum.ansible.com/u/agenttank)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 12:52pm UTC](https://forum.ansible.com/t/awx-backup-and-restore/35677 "2021-08-25T12:52:10Z")

</div>

Hi! I set up AWX 19.3.0 via minikube and I find it hard to backup and restore the instance. My plan for now is to dump my old database with this (seems to have worked) docker exec -t awx\_postgres pg\_dump -U awx awx \> …

---

## [AWX 17 very slow](https://forum.ansible.com/t/awx-17-very-slow/35660)

<div class="topic-metadata">

**Author:** [@Mili\_Beganovic](https://forum.ansible.com/u/Mili_Beganovic)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 12:00pm UTC](https://forum.ansible.com/t/awx-17-very-slow/35660 "2021-08-25T12:00:50Z")

</div>

Hi, I have AWX running in a Docker container and although all jobs have been removed and deleted + activity stream, the GUI runs very slowly. I googled pretty much everything that is possible, but unfortunately still t…

---

## [Check existence of a value from dictionary with list](https://forum.ansible.com/t/check-existence-of-a-value-from-dictionary-with-list/35676)

<div class="topic-metadata">

**Author:** [@Rijesh\_Puthiya\_Puray](https://forum.ansible.com/u/Rijesh_Puthiya_Puray)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 10:57am UTC](https://forum.ansible.com/t/check-existence-of-a-value-from-dictionary-with-list/35676 "2021-08-25T10:57:30Z")

</div>

Hello all, I have to implement a logic where I need to create a few secrets in kubernetes cluster using ansible. The login I am trying to implement is to get registered all the secrets in a namepsapce first, then create…

---

## [PowerShell script in windows host](https://forum.ansible.com/t/powershell-script-in-windows-host/35675)

<div class="topic-metadata">

**Author:** [@Sakshi\_Jain](https://forum.ansible.com/u/Sakshi_Jain)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 10:25am UTC](https://forum.ansible.com/t/powershell-script-in-windows-host/35675 "2021-08-25T10:25:23Z")

</div>

Steps get the latest file name , file name format : ‘.txt’ check the file content , upto line containing AMP , updated with today’s logs archive/compress the file delete the original file \[ansible@ip-172-31-25-114 pla…

---

## [powershell](https://forum.ansible.com/t/powershell/35674)

<div class="topic-metadata">

**Author:** [@Sakshi\_Jain](https://forum.ansible.com/u/Sakshi_Jain)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 10:24am UTC](https://forum.ansible.com/t/powershell/35674 "2021-08-25T10:24:59Z")

</div>

Steps get the latest file name , file name format : ‘.txt’ check the file content , upto line containing AMP , updated with today’s logs archive/compress the file delete the original file \[ansible@ip-172-31-25-114 pla…

---

## [How to find Virtual or Physical?](https://forum.ansible.com/t/how-to-find-virtual-or-physical/35665)

<div class="topic-metadata">

**Author:** [@Somasundaram\_R](https://forum.ansible.com/u/Somasundaram_R)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 2:55am UTC](https://forum.ansible.com/t/how-to-find-virtual-or-physical/35665 "2021-08-25T02:55:39Z")

</div>

Hi everyone, Please help me to find host is virtual or physical from ansible facts.Thanks. Is it possible to get the details from “ansible\_virtualization\_type”. Or is there any better idea. Thanks in advance

---

## [Ansible - Install Microsoft Office](https://forum.ansible.com/t/ansible-install-microsoft-office/35670)

<div class="topic-metadata">

**Author:** [@Gabriel\_Viegas](https://forum.ansible.com/u/Gabriel_Viegas)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 5:40pm UTC](https://forum.ansible.com/t/ansible-install-microsoft-office/35670 "2021-08-24T17:40:11Z")

</div>

I’m wanting to install Microsoft Office on notebooks, but I have machines that have 2016 and 2019 licenses. Can anyone tell me if it’s possible to choose between the two options and install only one with some module in A…

---

## [break this up into tasks and roles and variables](https://forum.ansible.com/t/break-this-up-into-tasks-and-roles-and-variables/35656)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 16\
**Last updated:** [August 24, 2021, 2:58pm UTC](https://forum.ansible.com/t/break-this-up-into-tasks-and-roles-and-variables/35656 "2021-08-24T14:58:39Z")

</div>

how do I break this play up into roles/tasks/variables etc…

---

## [Ansible-Galaxy collection error](https://forum.ansible.com/t/ansible-galaxy-collection-error/35666)

<div class="topic-metadata">

**Author:** [@agenttank](https://forum.ansible.com/u/agenttank)\
**Replies:** 6\
**Last updated:** [August 24, 2021, 1:24pm UTC](https://forum.ansible.com/t/ansible-galaxy-collection-error/35666 "2021-08-24T13:24:18Z")

</div>

Hi! Finally, after many hours, AWX 19.3.0 is working. Please, I hope you can help me with this… There is no “ansible-galaxy” command in the pod (I guess it wouldn’t even be persistent) to add ansible-galaxy collection…

---

## [Ansible windows unzip module is failing, how to fix that?](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 12:52pm UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045 "2021-08-24T12:52:31Z")

</div>

My task part of playbook. name: unzip mavenwin\_unzip: src: C:\\tools\\maven.zip dest: C:\\tools\\maven recurse: yes delete\_archive: yes output: TASK \[unzip maven\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [When creating a new directory permissions are always 644](https://forum.ansible.com/t/when-creating-a-new-directory-permissions-are-always-644/35663)

<div class="topic-metadata">

**Author:** [@CaptainBrewing](https://forum.ansible.com/u/CaptainBrewing)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 11:45pm UTC](https://forum.ansible.com/t/when-creating-a-new-directory-permissions-are-always-644/35663 "2021-08-23T23:45:13Z")

</div>

I have the following play to create a new directory name: Create DataDog Conf.d directory for Proprietary Apps file: path: “/etc/datadog-agent/conf.d/{{ applicaton\_name }}.d” state: directory mode: 0755 owner: “dd…

---

## [Basic help with roles and tasks](https://forum.ansible.com/t/basic-help-with-roles-and-tasks/35642)

<div class="topic-metadata">

**Author:** [@StephenW](https://forum.ansible.com/u/StephenW)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 11:25pm UTC](https://forum.ansible.com/t/basic-help-with-roles-and-tasks/35642 "2021-08-23T23:25:29Z")

</div>

I’m attempting to using AWX to deploy some playbooks using Roles. I’ve got a Project (‘webservers.git’) which I’m applying to an Inventory and it’s deploying the tasks held within it. But I want to migrate some of the t…

---

## [Retrieve facts from a lookup plugin](https://forum.ansible.com/t/retrieve-facts-from-a-lookup-plugin/35662)

<div class="topic-metadata">

**Author:** [@John\_Day](https://forum.ansible.com/u/John_Day)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 10:18pm UTC](https://forum.ansible.com/t/retrieve-facts-from-a-lookup-plugin/35662 "2021-08-23T22:18:08Z")

</div>

I am building a lookup plugin to help with identifying AWS resource ids from other relevant resource information, e.g. the Name tag. My issue is that I need the region, access key id, and secret access key to invoke the…

---

## [Lets encrypt (http to https) configure on ansible awx](https://forum.ansible.com/t/lets-encrypt-http-to-https-configure-on-ansible-awx/35631)

<div class="topic-metadata">

**Author:** [@MySQL\_tute\_s](https://forum.ansible.com/u/MySQL_tute_s)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 5:02pm UTC](https://forum.ansible.com/t/lets-encrypt-http-to-https-configure-on-ansible-awx/35631 "2021-08-23T17:02:48Z")

</div>

Hi Team, i want to run my ansible awx on https with lets encrypt enabled. can some one please help on how to configure this.

---

## [Run exe file with spaces in the filename using Win Command](https://forum.ansible.com/t/run-exe-file-with-spaces-in-the-filename-using-win-command/35655)

<div class="topic-metadata">

**Author:** [@david.burtton](https://forum.ansible.com/u/david.burtton)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 3:22pm UTC](https://forum.ansible.com/t/run-exe-file-with-spaces-in-the-filename-using-win-command/35655 "2021-08-23T15:22:29Z")

</div>

I’m trying to run an exe with a space in the filename using the Win Command module. For example ‘filenames with spaces.exe’ I have other playbooks that use win command to run exe files, but those files don’t have space…

---

## [x509\_certificate – Generate and/or check OpenSSL certificates](https://forum.ansible.com/t/x509-certificate-generate-and-or-check-openssl-certificates/35661)

<div class="topic-metadata">

**Author:** [@Adir](https://forum.ansible.com/u/Adir)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 2:59pm UTC](https://forum.ansible.com/t/x509-certificate-generate-and-or-check-openssl-certificates/35661 "2021-08-23T14:59:29Z")

</div>

Hi, Can i use x509\_certificate – Generate and/or check OpenSSL certificates Module over Windows target machines?? Thanks,

---

## [How to prevent ansible to suppress escaped quotes?](https://forum.ansible.com/t/how-to-prevent-ansible-to-suppress-escaped-quotes/35653)

<div class="topic-metadata">

**Author:** [@Gaetan\_QUENTIN](https://forum.ansible.com/u/Gaetan_QUENTIN)\
**Replies:** 6\
**Last updated:** [August 23, 2021, 2:09pm UTC](https://forum.ansible.com/t/how-to-prevent-ansible-to-suppress-escaped-quotes/35653 "2021-08-23T14:09:57Z")

</div>

Hi, in a json file we have this escaped quoted part: { inputs: { &quot;value&quot;: &quot;my \\\\&quot; value \\\\&quot; is here&quot; \[ .. \] this json file is read from extra var at command line: -e "@inputs.json" th…

---

## [DependsOn and ansible.windows.win\_dsc](https://forum.ansible.com/t/dependson-and-ansible-windows-win-dsc/35597)

<div class="topic-metadata">

**Author:** [@Tony\_Hogsten](https://forum.ansible.com/u/Tony_Hogsten)\
**Replies:** 2\
**Last updated:** [August 22, 2021, 7:20pm UTC](https://forum.ansible.com/t/dependson-and-ansible-windows-win-dsc/35597 "2021-08-22T19:20:54Z")

</div>

Hello! I’m trying to figure out how I can write dependsOn with the win\_dsc module. As far as I understand it, the dsc configuration itself isn’t started with a name, see https://github.com/ansible-collections/ansible.wi…

---

## [Ubuntu Server in gns3 project ssh with nat0 of my ubuntu OS](https://forum.ansible.com/t/ubuntu-server-in-gns3-project-ssh-with-nat0-of-my-ubuntu-os/35659)

<div class="topic-metadata">

**Author:** [@Vivek\_Sutar](https://forum.ansible.com/u/Vivek_Sutar)\
**Replies:** 0\
**Last updated:** [August 22, 2021, 5:57am UTC](https://forum.ansible.com/t/ubuntu-server-in-gns3-project-ssh-with-nat0-of-my-ubuntu-os/35659 "2021-08-22T05:57:42Z")

</div>

Hello Team, I am trying to establish ssh connection between nat0 with ubuntu server in gns3 as shown below I allowed PermitRootLogin Yes in /etc/ssh/sshd\_config and using ansible commands as a root user My Ssh con…

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

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