# Ansible Project

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

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

**Page:** 66

---

## [Ansible-4.5.0 has been released](https://forum.ansible.com/t/ansible-4-5-0-has-been-released/35693)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [August 31, 2021, 10:46pm UTC](https://forum.ansible.com/t/ansible-4-5-0-has-been-released/35693 "2021-08-31T22:46:56Z")

</div>

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

---

## [regex fails to match ^, $, \\b in multiline mode](https://forum.ansible.com/t/regex-fails-to-match-b-in-multiline-mode/35688)

<div class="topic-metadata">

**Author:** [@Dennis\_M](https://forum.ansible.com/u/Dennis_M)\
**Replies:** 3\
**Last updated:** [August 31, 2021, 7:43am UTC](https://forum.ansible.com/t/regex-fails-to-match-b-in-multiline-mode/35688 "2021-08-31T07:43:48Z")

</div>

Hi, I’m studying how to use regexp, and just follow documented examples, {{ ‘foo\\nBAR’ | regex\_search(“^bar”, multiline=True, ignorecase=True) }} expected result is: “bar”. Instead of “bar” it gets an empty string. …

---

## [creating collection skeleton using resource module builder](https://forum.ansible.com/t/creating-collection-skeleton-using-resource-module-builder/35683)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 7:33pm UTC](https://forum.ansible.com/t/creating-collection-skeleton-using-resource-module-builder/35683 "2021-08-30T19:33:34Z")

</div>

Hi, For creating custom collection scaffold i have used resource module builder from the below link: ansible-network/resource\_module\_builder: Scaffold and maintain resource modules (github.com) for, customisation purp…

---

## [need assistance to extract a text using Regex](https://forum.ansible.com/t/need-assistance-to-extract-a-text-using-regex/35686)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 7:14am UTC](https://forum.ansible.com/t/need-assistance-to-extract-a-text-using-regex/35686 "2021-08-30T07:14:40Z")

</div>

In below output taken from a cisco switch, i need to extract only ‘c2960x-universalk9-mz.155-4.E1.bin’, c2960x-universalk9-mz.155-2a.EX5, c2960x-universalk9-mz.155-7.E3 from each line. I wrote below script to extract us…

---

## [create NFS share on AWS storage gateway with ansible](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [August 29, 2021, 6:27am UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669 "2021-08-29T06:27:42Z")

</div>

does anyone know if there isa module to create nfs shares on aws storage gateway with ansible? I cannot find in the docs. only s3 buckets and ec2

---

## [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…

---

## [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…

---

## [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…

---

## [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

---

## [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 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…

---

## [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…

---

## [transforming survey values](https://forum.ansible.com/t/transforming-survey-values/35657)

<div class="topic-metadata">

**Author:** [@omoeko](https://forum.ansible.com/u/omoeko)\
**Replies:** 0\
**Last updated:** [August 21, 2021, 11:20am UTC](https://forum.ansible.com/t/transforming-survey-values/35657 "2021-08-21T11:20:03Z")

</div>

Hi All. I am looking to create transform the user input values from a user survey. The idea is to accept filenames as input, and the input will then be passed onto my script in this format. ‘file1’,‘file2’,‘file3’ Th…

---

## [Can't proceed with\_items and register](https://forum.ansible.com/t/cant-proceed-with-items-and-register/35652)

<div class="topic-metadata">

**Author:** [@user62](https://forum.ansible.com/u/user62)\
**Replies:** 2\
**Last updated:** [August 20, 2021, 4:07pm UTC](https://forum.ansible.com/t/cant-proceed-with-items-and-register/35652 "2021-08-20T16:07:53Z")

</div>

Hello! Here is the problem: name: Check for RSA-Key existence stat: path: /opt/cert/{{item.username}}.key with\_items: “{{roles}}” register: rsa name: debug debug: var: item.stat.exists loop: “{{rsa.results}…

---

## [become with runas  method not work on some of my machines](https://forum.ansible.com/t/become-with-runas-method-not-work-on-some-of-my-machines/35618)

<div class="topic-metadata">

**Author:** [@java\_ran](https://forum.ansible.com/u/java_ran)\
**Replies:** 2\
**Last updated:** [August 20, 2021, 3:48pm UTC](https://forum.ansible.com/t/become-with-runas-method-not-work-on-some-of-my-machines/35618 "2021-08-20T15:48:58Z")

</div>

hi there, I have a playbook which set runas as the become method, as I run it with AWX it wont work on some machine to run any task which has become set to yes. and it shows error as bellow. but if I comment “become\_met…

---

## [vmware tools installed but not running after reboot](https://forum.ansible.com/t/vmware-tools-installed-but-not-running-after-reboot/35654)

<div class="topic-metadata">

**Author:** [@Dmitry](https://forum.ansible.com/u/Dmitry)\
**Replies:** 0\
**Last updated:** [August 20, 2021, 3:28pm UTC](https://forum.ansible.com/t/vmware-tools-installed-but-not-running-after-reboot/35654 "2021-08-20T15:28:07Z")

</div>

Hi, here is my playbook for windows vm deployment with ansible and vsphere community. community.vmware.vmware\_guest\_tools\_wait waiting for tools installation but after next tasks they are not starts again. Why?

---

## [Ansible-PlayBook to set Password Complexity in Linux 7.6](https://forum.ansible.com/t/ansible-playbook-to-set-password-complexity-in-linux-7-6/35647)

<div class="topic-metadata">

**Author:** [@Rifky\_Ramadhana](https://forum.ansible.com/u/Rifky_Ramadhana)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 2:41pm UTC](https://forum.ansible.com/t/ansible-playbook-to-set-password-complexity-in-linux-7-6/35647 "2021-08-20T14:41:15Z")

</div>

Dear All, I have so many servers using RHEL 7.6. as pci dss compliance we should confugre the password complexity as PCI standard. I have plan to use ansible as automation tools to configure or hardening password comple…

---

## [Fetch rootdse from LDAP server](https://forum.ansible.com/t/fetch-rootdse-from-ldap-server/35644)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 2\
**Last updated:** [August 20, 2021, 2:07pm UTC](https://forum.ansible.com/t/fetch-rootdse-from-ldap-server/35644 "2021-08-20T14:07:31Z")

</div>

I am trying to use community.general.ldap\_search to return the RootDSE from a LDAP server (RedHat Directory Server). The LDAP server is configured to allow anonymous access to the RootDSE (nsslapd-allow-anonymous-access:…

---

## [Anisbie ad-hoc inventory on command line](https://forum.ansible.com/t/anisbie-ad-hoc-inventory-on-command-line/35648)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 3:04am UTC](https://forum.ansible.com/t/anisbie-ad-hoc-inventory-on-command-line/35648 "2021-08-20T03:04:21Z")

</div>

Is this the correct syntax for creating an ad-hoc, or on-the-fly inventory file from passed-in IP addresses? See the comma ( , ) before the end-quote of the inventory list?I I’m aware of inventory files and do use them. …

---

## [windows host automation](https://forum.ansible.com/t/windows-host-automation/35637)

<div class="topic-metadata">

**Author:** [@Sakshi\_Jain](https://forum.ansible.com/u/Sakshi_Jain)\
**Replies:** 2\
**Last updated:** [August 19, 2021, 10:41am UTC](https://forum.ansible.com/t/windows-host-automation/35637 "2021-08-19T10:41:06Z")

</div>

For windows host How to write tasks in ansible : Login into RDP machine Login into other machines from RDP machine Read email before starting the patching in the scheduled time Run any commands in rdp machine , like b…

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

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