# Archives

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

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

**Page:** 92

---

## [Trick to remove a backslash liternal in Ansible?](https://forum.ansible.com/t/trick-to-remove-a-backslash-liternal-in-ansible/36202)

<div class="topic-metadata">

**Author:** [@Jibun\_no\_Kage](https://forum.ansible.com/u/Jibun_no_Kage)\
**Replies:** 2\
**Last updated:** [January 18, 2022, 3:27am UTC](https://forum.ansible.com/t/trick-to-remove-a-backslash-liternal-in-ansible/36202 "2022-01-18T03:27:23Z")

</div>

New to Ansible, having trouble doing the following: shell command returns a “This is a test\\u0000” string. I can’t seem to find a way to trim the ‘\\u0000’. Since it seem to be tricking to remove a backslash literal in An…

---

## [Using Ansible with IAP tunneling returns \[Errno -3\] Temporary failure in name resolution](https://forum.ansible.com/t/using-ansible-with-iap-tunneling-returns-errno-3-temporary-failure-in-name-resolution/36211)

<div class="topic-metadata">

**Author:** [@Halima\_Mounsiit](https://forum.ansible.com/u/Halima_Mounsiit)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 10:08pm UTC](https://forum.ansible.com/t/using-ansible-with-iap-tunneling-returns-errno-3-temporary-failure-in-name-resolution/36211 "2022-01-17T22:08:47Z")

</div>

Hello, I am trying to run ansible playbooks using IAP tunneling to connect to my virtual machines on GCP that do not have external IP addresses. But, I am having this error : test-vm-ee64a2421adb46ba-1 | UNREACHABLE! =\>…

---

## [Can I modify Ansible 'remote\_tmp' on a per task basis?](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36210)

<div class="topic-metadata">

**Author:** [@BOB\_BOB](https://forum.ansible.com/u/BOB_BOB)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 10:00pm UTC](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36210 "2022-01-17T22:00:28Z")

</div>

I am running some tasks with delegate\_to. When those tasks run, they use the same remote\_tmp directory setup from the ansible.cfg. However, due to permissions and directory size issues, I need to change the remote\_tmp d…

---

## [mariadb install from tar archive - systemd daemon-reload fails](https://forum.ansible.com/t/mariadb-install-from-tar-archive-systemd-daemon-reload-fails/36206)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 4:40pm UTC](https://forum.ansible.com/t/mariadb-install-from-tar-archive-systemd-daemon-reload-fails/36206 "2022-01-17T16:40:56Z")

</div>

I am trying to install mariadb from a tar-archive and then make systemd mange the service with these 5 TASKS name: install mariadb - run the install script shell: cmd: ./mariadb-install-db --defaults-file=/opt/db/da…

---

## [How to verify cookies collected/configured](https://forum.ansible.com/t/how-to-verify-cookies-collected-configured/36209)

<div class="topic-metadata">

**Author:** [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 4:03pm UTC](https://forum.ansible.com/t/how-to-verify-cookies-collected-configured/36209 "2022-01-17T16:03:26Z")

</div>

Hello, Greetings. I am looking for somehelp on how to find what cookies Awx is collecting and how it’s used in application. Can you help me with references to it? Thank you Venkata

---

## [ansible 2.12 is slower than 2.7](https://forum.ansible.com/t/ansible-2-12-is-slower-than-2-7/36207)

<div class="topic-metadata">

**Author:** [@Rahul\_Bhatu](https://forum.ansible.com/u/Rahul_Bhatu)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 2:40pm UTC](https://forum.ansible.com/t/ansible-2-12-is-slower-than-2-7/36207 "2022-01-17T14:40:12Z")

</div>

hello everyone, we upgraded ansible to ansible \[core 2.12.1\] from ansible 2.7 and now the playbook are executing slower than before. the same playbook on ansible 2.7 is being completed in less than 5 min, whereas it ta…

---

## [Unable to get collections to work](https://forum.ansible.com/t/unable-to-get-collections-to-work/36200)

<div class="topic-metadata">

**Author:** [@Mark\_vd\_Boogaard](https://forum.ansible.com/u/Mark_vd_Boogaard)\
**Replies:** 5\
**Last updated:** [January 17, 2022, 12:49pm UTC](https://forum.ansible.com/t/unable-to-get-collections-to-work/36200 "2022-01-17T12:49:20Z")

</div>

I just installed AWX recently and I’ve some problems getting the collections working. I installed AWX via the AWX operator on a k3s instance (single node). I followed the instructions according to the AWX-operator page …

---

## [How to fix TypeError : Cant compile non template nodes While running ansible-test](https://forum.ansible.com/t/how-to-fix-typeerror-cant-compile-non-template-nodes-while-running-ansible-test/36201)

<div class="topic-metadata">

**Author:** [@selvigp](https://forum.ansible.com/u/selvigp)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 11:34am UTC](https://forum.ansible.com/t/how-to-fix-typeerror-cant-compile-non-template-nodes-while-running-ansible-test/36201 "2022-01-16T11:34:03Z")

</div>

Hey, I have used Ubuntu 18.04 LTS and installed ansible 2.9.27 and python 2.7.17. I am going to test ansible-collection with the ansible-test command. When I give “ansible-test unit” , I am getting the below error. Kind…

---

## [AWX marks long running jobs in ERROR, though the job completes successfully](https://forum.ansible.com/t/awx-marks-long-running-jobs-in-error-though-the-job-completes-successfully/36183)

<div class="topic-metadata">

**Author:** [@Kannan\_Somaiah](https://forum.ansible.com/u/Kannan_Somaiah)\
**Replies:** 7\
**Last updated:** [January 15, 2022, 11:02pm UTC](https://forum.ansible.com/t/awx-marks-long-running-jobs-in-error-though-the-job-completes-successfully/36183 "2022-01-15T23:02:51Z")

</div>

We have a long running asynchronous job which will run for 5 hours. After job completes, instead of marking it as successful, AWX marks it as ERROR. We had this error in AWX version 19.4.0. If anyone is aware of this is…

---

## [replace a line in a file with lineinfile](https://forum.ansible.com/t/replace-a-line-in-a-file-with-lineinfile/36205)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 7\
**Last updated:** [January 15, 2022, 10:02pm UTC](https://forum.ansible.com/t/replace-a-line-in-a-file-with-lineinfile/36205 "2022-01-15T22:02:04Z")

</div>

I want to change replace a particular line in an exiting file (after having pushed a template of it to the remote) this is ant extract of the file content cat bin/.myenv Mysql Environment … MYBASE=/opt/db/mysql/mar…

---

## [Odd results from query of /proc/meminfo?](https://forum.ansible.com/t/odd-results-from-query-of-proc-meminfo/36204)

<div class="topic-metadata">

**Author:** [@Jibun\_no\_Kage](https://forum.ansible.com/u/Jibun_no_Kage)\
**Replies:** 1\
**Last updated:** [January 14, 2022, 7:22pm UTC](https://forum.ansible.com/t/odd-results-from-query-of-proc-meminfo/36204 "2022-01-14T19:22:17Z")

</div>

Odd results from query of /proc/meminfo? When I do the following from shell... # cat /proc/meminfo | grep MemTotal MemTotal: 8087276 kB But when I do the same via Ansible... ok: \[192.168.1.212\] =\> { "msg": "…

---

## [Email results , either failure or success](https://forum.ansible.com/t/email-results-either-failure-or-success/36203)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 1\
**Last updated:** [January 14, 2022, 4:16pm UTC](https://forum.ansible.com/t/email-results-either-failure-or-success/36203 "2022-01-14T16:16:08Z")

</div>

We have 3 playbooks, that all acheive different tasks when building a server. Each playbook can have either a role in it or a module from collection. How can I email result of when either a task fails in any of 3 playb…

---

## [RPM tools for ansible 5.2.0 available for Fedora, RHEL 7, RHEL 8](https://forum.ansible.com/t/rpm-tools-for-ansible-5-2-0-available-for-fedora-rhel-7-rhel-8/36199)

<div class="topic-metadata">

**Author:** [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Replies:** 0\
**Last updated:** [January 14, 2022, 3:48am UTC](https://forum.ansible.com/t/rpm-tools-for-ansible-5-2-0-available-for-fedora-rhel-7-rhel-8/36199 "2022-01-14T03:48:46Z")

</div>

I've updated my published RPM building tools for ansible-core and ansible at: https://github.com/nkadel/ansiblerepo/ They build ansible 5.2.0 for RHEL 7, RHEL 8, and Fedora 35, and they build ansible-core 2.11.7 f…

---

## [Unable to create EC2 Instance](https://forum.ansible.com/t/unable-to-create-ec2-instance/36198)

<div class="topic-metadata">

**Author:** [@Karuppasamy\_Nallusam](https://forum.ansible.com/u/Karuppasamy_Nallusam)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 7:20pm UTC](https://forum.ansible.com/t/unable-to-create-ec2-instance/36198 "2022-01-13T19:20:26Z")

</div>

Hi, I just started learning Ansible. I am trying to create EC2 instance from my managed host, configured on Mac OS Sierra but getting below error. Playbook: Output Error: Kindly help.

---

## [Need assist with Ansible conn to Cisco router](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 12:44pm UTC](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196 "2022-01-13T12:44:01Z")

</div>

It’s pretty basic playbook so not sure why its not working. name: Config Sys hosts: router2 vars: ansible\_network\_os: ios ansible\_connection: network\_cli ansible\_user: Mxxxxx ansible\_password: password ansible\_b…

---

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

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

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