# Latest

**URL:** https://forum.ansible.com/latest.md?page=266

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

**Page:** 267

---

## [Ansible 5.2.0 has been released](https://forum.ansible.com/t/ansible-5-2-0-has-been-released/36193)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 3:02am UTC](https://forum.ansible.com/t/ansible-5-2-0-has-been-released/36193 "2022-01-13T03:02:29Z")

</div>

Hi all, We're happy to announce that the Ansible 5.2.0 package has been released ! Ansible 5.2.0 includes the newly released ansible-core 2.12.1 as well as a curated set of Ansible collections to provide a vast number…

---

## [Using ansible-playbook --tags=xxx with dynamic inventory](https://forum.ansible.com/t/using-ansible-playbook-tags-xxx-with-dynamic-inventory/36195)

<div class="topic-metadata">

**Author:** [@Alex\_D](https://forum.ansible.com/u/Alex_D)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 11:01pm UTC](https://forum.ansible.com/t/using-ansible-playbook-tags-xxx-with-dynamic-inventory/36195 "2022-01-12T23:01:00Z")

</div>

Hi, I tried to run a playbook with a dynamic inventory (see my playbook below) using e.g. ansible-playbook -i nms-vms init-vrf-nms.yml --extra-vars “nms=nms-sz” --tags=basic Unfortunately, i got the following error:

---

## [Dynamic types for module arguments](https://forum.ansible.com/t/dynamic-types-for-module-arguments/36194)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [January 12, 2022, 8:49pm UTC](https://forum.ansible.com/t/dynamic-types-for-module-arguments/36194 "2022-01-12T20:49:02Z")

</div>

Hi Rhys, The original ssl\_cert\_reqs argument is a string. These string values map to the new boolean values. I basically want to map the strings as follows.. CERT\_NONE - True CERT\_REQUIRED - False But also allow b…

---

## [Apply weight to the elb\_application\_lb](https://forum.ansible.com/t/apply-weight-to-the-elb-application-lb/36192)

<div class="topic-metadata">

**Author:** [@Anita](https://forum.ansible.com/u/Anita)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 7:03pm UTC](https://forum.ansible.com/t/apply-weight-to-the-elb-application-lb/36192 "2022-01-12T19:03:42Z")

</div>

Hello, In terraform you can attach a weight to the default\_action under listeners to forward a percentage of traffic to another target group https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb…

---

## [Submitting PR for vyos.vyos module](https://forum.ansible.com/t/submitting-pr-for-vyos-vyos-module/35649)

<div class="topic-metadata">

**Author:** [@pigriffin](https://forum.ansible.com/u/pigriffin)\
**Replies:** 5\
**Last updated:** [January 11, 2022, 11:22pm UTC](https://forum.ansible.com/t/submitting-pr-for-vyos-vyos-module/35649 "2022-01-11T23:22:15Z")

</div>

Hi all. I haven’t submitted to ansible before and need a bit of guidance if anyone’s got time! My actual change is to add a single parameter in the vyos.vyos collection, and is only a few lines. But to get to the point,…

---

## [include\_roles, with tags from a dictionary loop?](https://forum.ansible.com/t/include-roles-with-tags-from-a-dictionary-loop/36189)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 6\
**Last updated:** [January 11, 2022, 8:02pm UTC](https://forum.ansible.com/t/include-roles-with-tags-from-a-dictionary-loop/36189 "2022-01-11T20:02:54Z")

</div>

Hey; I’m having difficulty coming up with the right syntax to add/include roles, with tags, from a loop such that I can limit execution to specific tags. In the tasks section, this syntax works:

---

## [Can you please assist me with a role where I wish to gather mount details of ansible client and then compare it with expected value provided by client](https://forum.ansible.com/t/can-you-please-assist-me-with-a-role-where-i-wish-to-gather-mount-details-of-ansible-client-and-then-compare-it-with-expected-value-provided-by-client/36191)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 6:09pm UTC](https://forum.ansible.com/t/can-you-please-assist-me-with-a-role-where-i-wish-to-gather-mount-details-of-ansible-client-and-then-compare-it-with-expected-value-provided-by-client/36191 "2022-01-11T18:09:37Z")

</div>

Hi All, I have a role to check the partition ( mount ) details of ansible client and then compare its value with the values provided by the customer, however the output of ansible\_mounts is too huge once I playbook exec…

---

## [Replace indented string in file](https://forum.ansible.com/t/replace-indented-string-in-file/36186)

<div class="topic-metadata">

**Author:** [@Tony1](https://forum.ansible.com/u/Tony1)\
**Replies:** 5\
**Last updated:** [January 11, 2022, 5:11pm UTC](https://forum.ansible.com/t/replace-indented-string-in-file/36186 "2022-01-11T17:11:03Z")

</div>

I am trying to replace a specific part of an indented string, but I cannot get it working with lineinfile/replace modules for some reason. What I would like: before: Substitute “s~(src|href)=('|")/((?!version).\*)~$1=$2…

---

## [Cisco Generate Crypto Keys](https://forum.ansible.com/t/cisco-generate-crypto-keys/36188)

<div class="topic-metadata">

**Author:** [@Omar\_Hegazy](https://forum.ansible.com/u/Omar_Hegazy)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 2:31pm UTC](https://forum.ansible.com/t/cisco-generate-crypto-keys/36188 "2022-01-11T14:31:08Z")

</div>

Hello, I’m trying to generate new RSA keys & Certificates on Cisco switches/routers. The process should be as below. My problem is that i want to execute the first command. then wait to see (\[OK\]) in the output before …

---

## [Copy: "source not found" from an action plugin](https://forum.ansible.com/t/copy-source-not-found-from-an-action-plugin/36182)

<div class="topic-metadata">

**Author:** [@yves\_baumes](https://forum.ansible.com/u/yves_baumes)\
**Replies:** 1\
**Last updated:** [January 10, 2022, 5:36pm UTC](https://forum.ansible.com/t/copy-source-not-found-from-an-action-plugin/36182 "2022-01-10T17:36:04Z")

</div>

Hello, I am trying to create my own action plugin. Here it is : myAction.py: from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task\_vars=None): super(ActionModule,…

---

## [Is it possible to get LDAP password user session into playbook as var?](https://forum.ansible.com/t/is-it-possible-to-get-ldap-password-user-session-into-playbook-as-var/36179)

<div class="topic-metadata">

**Author:** [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Replies:** 1\
**Last updated:** [January 10, 2022, 4:16pm UTC](https://forum.ansible.com/t/is-it-possible-to-get-ldap-password-user-session-into-playbook-as-var/36179 "2022-01-10T16:16:28Z")

</div>

Hi I already use the very convinient tower\_user\_name job var to extract the LDAP user that launchs the job. Multiple LDAP users should launch the same template, this is the reason why I can’t use AWX\_PASSWORD env var. …

---

## [cannot resolve community modules](https://forum.ansible.com/t/cannot-resolve-community-modules/36094)

<div class="topic-metadata">

**Author:** [@Tony1](https://forum.ansible.com/u/Tony1)\
**Replies:** 4\
**Last updated:** [January 10, 2022, 2:17pm UTC](https://forum.ansible.com/t/cannot-resolve-community-modules/36094 "2022-01-10T14:17:14Z")

</div>

Can anyone help with this? I have had this problem with all community AWS modules: ERROR! couldn’t resolve module/action ‘community.aws.ec2\_eip’. This often indicates a misspelling, missing collection, or incorrect mod…

---

## [Replace indented string in file](https://forum.ansible.com/t/replace-indented-string-in-file/36187)

<div class="topic-metadata">

**Author:** [@john.westcott.iv](https://forum.ansible.com/u/john.westcott.iv)\
**Replies:** 0\
**Last updated:** [January 10, 2022, 2:09pm UTC](https://forum.ansible.com/t/replace-indented-string-in-file/36187 "2022-01-10T14:09:59Z")

</div>

Can you give me some more details around this? From what I am understanding you have a playbook executing from AWX which is trying to do a replace in a file it looks like you are trying to change the string ‘/version/‘ …

---

## [Need an assist for an ansible playbook where is am receiving error while comparing ansible value with the customer provided value.](https://forum.ansible.com/t/need-an-assist-for-an-ansible-playbook-where-is-am-receiving-error-while-comparing-ansible-value-with-the-customer-provided-value/36185)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 3\
**Last updated:** [January 10, 2022, 7:17am UTC](https://forum.ansible.com/t/need-an-assist-for-an-ansible-playbook-where-is-am-receiving-error-while-comparing-ansible-value-with-the-customer-provided-value/36185 "2022-01-10T07:17:18Z")

</div>

Hi All, I need to work on ansible role, where after the ansible module is executed I need to compare that value with the value provided by the customer. I am able to fetch the value through ansible role however I am fa…

---

## [Ansible collection is installed but playbook can't find it.](https://forum.ansible.com/t/ansible-collection-is-installed-but-playbook-cant-find-it/36147)

<div class="topic-metadata">

**Author:** [@nishant\_shah](https://forum.ansible.com/u/nishant_shah)\
**Replies:** 16\
**Last updated:** [January 8, 2022, 12:45am UTC](https://forum.ansible.com/t/ansible-collection-is-installed-but-playbook-cant-find-it/36147 "2022-01-08T00:45:23Z")

</div>

Hi, I am trying to run a simple ansible playbook to create a user in Juniper device. junipernetworks.junos.junos\_user – Manage local user accounts on Juniper JUNOS devices — Ansible Documentation I have all the collec…

---

## [another python API question](https://forum.ansible.com/t/another-python-api-question/36184)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 10:30pm UTC](https://forum.ansible.com/t/another-python-api-question/36184 "2022-01-06T22:30:11Z")

</div>

Hii Triggered by a previous poster, I sometimes need to access specific host vars from python but don’t know how. An example deployment would consist of a directory like this: (venv) dvs@GA0267 deploy1$ tree . ├── a…

---

## [(Python API question) Recursively expanding Ansible host vars from a standalone Python script](https://forum.ansible.com/t/python-api-question-recursively-expanding-ansible-host-vars-from-a-standalone-python-script/36178)

<div class="topic-metadata">

**Author:** [@arviasf](https://forum.ansible.com/u/arviasf)\
**Replies:** 4\
**Last updated:** [January 6, 2022, 9:18pm UTC](https://forum.ansible.com/t/python-api-question-recursively-expanding-ansible-host-vars-from-a-standalone-python-script/36178 "2022-01-06T21:18:01Z")

</div>

Hi folks - In a standalone Python script, I need to enumerate and expand all host variables from a given Ansible inventory file. In this inventory file, there are variables which reference other variables using Jinja2 te…

---

## [community.aws.rds\_instance module](https://forum.ansible.com/t/community-aws-rds-instance-module/36170)

<div class="topic-metadata">

**Author:** [@Tony1](https://forum.ansible.com/u/Tony1)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 5:51pm UTC](https://forum.ansible.com/t/community-aws-rds-instance-module/36170 "2022-01-06T17:51:03Z")

</div>

I want to use the community.aws.rds\_instance module to create an Aurora DB. However I am a bit stuck on the cluster element when using the below example: name: create minimal aurora instance in default VPC and default…

---

## [playbook with molecule test in git repository](https://forum.ansible.com/t/playbook-with-molecule-test-in-git-repository/36181)

<div class="topic-metadata">

**Author:** [@Willi\_Brune](https://forum.ansible.com/u/Willi_Brune)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 1:11pm UTC](https://forum.ansible.com/t/playbook-with-molecule-test-in-git-repository/36181 "2022-01-06T13:11:07Z")

</div>

Hello Folks, I’m using ansible for a couple of month but still feel like a beginner. I began with one git repository for my /etc/ansible. In there i have my inventories, playbooks and roles. I watched Jeff Geerlings …

---

## [Variabilisation of url with url\_get to download a file on artifactory](https://forum.ansible.com/t/variabilisation-of-url-with-url-get-to-download-a-file-on-artifactory/36180)

<div class="topic-metadata">

**Author:** [@guillaume\_payen](https://forum.ansible.com/u/guillaume_payen)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 9:51am UTC](https://forum.ansible.com/t/variabilisation-of-url-with-url-get-to-download-a-file-on-artifactory/36180 "2022-01-06T09:51:55Z")

</div>

Hello ! I am new on Ansible and wanted to know if there was an easy way to download the last or specified version of a file from an artifactory repo. Here is what i am trying to do : vars: artifactory\_base\_url: https:…

---

## [How to pass extra\_var and inventory in awx launch job template api using curl](https://forum.ansible.com/t/how-to-pass-extra-var-and-inventory-in-awx-launch-job-template-api-using-curl/36174)

<div class="topic-metadata">

**Author:** [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Replies:** 4\
**Last updated:** [January 6, 2022, 6:06am UTC](https://forum.ansible.com/t/how-to-pass-extra-var-and-inventory-in-awx-launch-job-template-api-using-curl/36174 "2022-01-06T06:06:00Z")

</div>

Hi! Shall I know how to pass extra\_var and inventory details as json format to curl command to awx api? “defaults”: { “extra\_vars”: “—”, “diff\_mode”: false, “limit”: “”, “job\_tags”: “”, “skip\_tags”: “”, “job\_type…

---

## [Literal scalar expands to a dictionary](https://forum.ansible.com/t/literal-scalar-expands-to-a-dictionary/36173)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 4\
**Last updated:** [January 5, 2022, 10:58pm UTC](https://forum.ansible.com/t/literal-scalar-expands-to-a-dictionary/36173 "2022-01-05T22:58:42Z")

</div>

For example, given "val1: foo" - set\_fact: \_var1: | {"key1": "{{ val1 }}"} \_var2: | {"key1": "foo"} - debug: var: \_var1|type\_debug - debug: var: \_v…

---

## [Can we limit parallel executions in AWX/Ansible](https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 9:35pm UTC](https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121 "2022-01-05T21:35:24Z")

</div>

I am using AWX 15.0.1 and Ansible 2.9.x (not upgraded to latest version due to docker limitation) on RHEL7. Recently we have started facing CPU thresholds due to which jobs either get stuck or fail in AWX/ansible. I know…

---

## [update submodules when cloning project](https://forum.ansible.com/t/update-submodules-when-cloning-project/36126)

<div class="topic-metadata">

**Author:** [@Andrei\_Tudor\_Cordune](https://forum.ansible.com/u/Andrei_Tudor_Cordune)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 9:31pm UTC](https://forum.ansible.com/t/update-submodules-when-cloning-project/36126 "2022-01-05T21:31:54Z")

</div>

Hi everybody, I need to keep track of a submodule dependency across multiple playbooks on git; I was wondering if it’s possible to override the default behaviour of awx when cloning the playbook prior to a job run, lik…

---

## [AWX - configure notification as e-mail](https://forum.ansible.com/t/awx-configure-notification-as-e-mail/36128)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 9:02pm UTC](https://forum.ansible.com/t/awx-configure-notification-as-e-mail/36128 "2022-01-05T21:02:38Z")

</div>

Hi everyone, I’ve tried to configure the notification (E-Mail) through Administration → Notifications on AWX but unfortunately It’s failed. I’m thinking about whether I should configure other things at the pod level or…

---

## [venvs in Custom virtual Environment Paths return \[Errno 2\] No such file or directory:](https://forum.ansible.com/t/venvs-in-custom-virtual-environment-paths-return-errno-2-no-such-file-or-directory/36151)

<div class="topic-metadata">

**Author:** [@deltafiber\_thijn](https://forum.ansible.com/u/deltafiber_thijn)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 8:51pm UTC](https://forum.ansible.com/t/venvs-in-custom-virtual-environment-paths-return-errno-2-no-such-file-or-directory/36151 "2022-01-05T20:51:36Z")

</div>

Hi, I inherited an AWX installation that has in SETTINGS / SYSTEM a “Custom virtual environment paths” to /data/virtualenv I’m running AWX 15.0.1 AWX is running in a docker container where this path is a mounted /dev…

---

## [AWX version 19 and HTTPS WWW](https://forum.ansible.com/t/awx-version-19-and-https-www/36133)

<div class="topic-metadata">

**Author:** [@Marek\_Koscielny](https://forum.ansible.com/u/Marek_Koscielny)\
**Replies:** 9\
**Last updated:** [January 5, 2022, 8:44pm UTC](https://forum.ansible.com/t/awx-version-19-and-https-www/36133 "2022-01-05T20:44:02Z")

</div>

How to install AWX to the latest version and perform HTTPS configuration?

---

## [AWX 19 & Netbox 3.1 integration](https://forum.ansible.com/t/awx-19-netbox-3-1-integration/36152)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 3\
**Last updated:** [January 5, 2022, 8:37pm UTC](https://forum.ansible.com/t/awx-19-netbox-3-1-integration/36152 "2022-01-05T20:37:33Z")

</div>

Happy holiday to all, I am trying to integrate AWX v19 & Netbox v3.1 but having trouble to execute playbooks I have a remote-host inventory item created which has remote host information My project is created & syn…

---

## [Variable state depending on existence of a file on host system - possible?](https://forum.ansible.com/t/variable-state-depending-on-existence-of-a-file-on-host-system-possible/36176)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 19\
**Last updated:** [January 5, 2022, 7:53pm UTC](https://forum.ansible.com/t/variable-state-depending-on-existence-of-a-file-on-host-system-possible/36176 "2022-01-05T19:53:45Z")

</div>

I’m currently having a var in my ./vars/default.yml, which is used at several points in my playbook for branching installation operations. boolean\_var: true Depending on this I’m performing (or not) install steps … w…

---

## [run task based on host network](https://forum.ansible.com/t/run-task-based-on-host-network/36177)

<div class="topic-metadata">

**Author:** [@user88](https://forum.ansible.com/u/user88)\
**Replies:** 0\
**Last updated:** [January 5, 2022, 7:51pm UTC](https://forum.ansible.com/t/run-task-based-on-host-network/36177 "2022-01-05T19:51:12Z")

</div>

Hi I am trying to run a task based on ansible facts ipv4 of the host currently I am able to do so with “when” and regex it works when I am trying to match this for example: “192.168.\[1,2\].” but I need another subnet…

[Previous page](https://forum.ansible.com/latest.md?page=265)

[Next page](https://forum.ansible.com/latest.md?page=267)
