# Ansible Project

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

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

**Page:** 55

---

## [Minio and Ansible](https://forum.ansible.com/t/minio-and-ansible/36215)

<div class="topic-metadata">

**Author:** [@Andreas\_Wachter](https://forum.ansible.com/u/Andreas_Wachter)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 6:29pm UTC](https://forum.ansible.com/t/minio-and-ansible/36215 "2022-01-18T18:29:56Z")

</div>

Hi, I try to download a file from my minio with the following playbook: name: download file aws\_s3: s3\_url: https://minio.xxx.yyy bucket: artifacts object: awesome/file.jar dest: /some/where/file.jar mode: get …

---

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

---

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

---

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

---

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

---

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

---

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

---

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

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

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