# Archives

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

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

**Page:** 197

---

## [Running Ruby 2.6 from /etc/profile.d via Ansible Playbook in RHEL 7](https://forum.ansible.com/t/running-ruby-2-6-from-etc-profile-d-via-ansible-playbook-in-rhel-7/33092)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 0\
**Last updated:** [June 4, 2020, 2:20pm UTC](https://forum.ansible.com/t/running-ruby-2-6-from-etc-profile-d-via-ansible-playbook-in-rhel-7/33092 "2020-06-04T14:20:47Z")

</div>

I have a role I’m testing that will install Redmine (www.redmine.org) on to a RHEL 7.8 machine. Redmine requires Ruby \>= 2.3. So I’m installing Ruby 2.6.2 via the rhel-server-rhscl-7-rpms repository. If I log into the ma…

---

## [Add new line “\\n” character to Ansible set\_fact variable](https://forum.ansible.com/t/add-new-line-n-character-to-ansible-set-fact-variable/33084)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 13\
**Last updated:** [June 4, 2020, 12:25pm UTC](https://forum.ansible.com/t/add-new-line-n-character-to-ansible-set-fact-variable/33084 "2020-06-04T12:25:54Z")

</div>

How can I add new line characters to Ansible variable mailbody. This mailbody variable is used for mail module's body attribute. I tried the below from suggestions but none of them works. 1. - set\_fact: mail…

---

## [Issue while parsing Complex Regular expression  in YAML file](https://forum.ansible.com/t/issue-while-parsing-complex-regular-expression-in-yaml-file/33088)

<div class="topic-metadata">

**Author:** [@Pawan\_Kumar1](https://forum.ansible.com/u/Pawan_Kumar1)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 7:46am UTC](https://forum.ansible.com/t/issue-while-parsing-complex-regular-expression-in-yaml-file/33088 "2020-06-04T07:46:02Z")

</div>

“\[1\]{9,430}$” Tried other options like a-zA-Z0-9-+.#$%&~\*/=?^\_ '"\\! ↩︎

---

## [AWX Logs - Not able to link schedule log with workflow Job](https://forum.ansible.com/t/awx-logs-not-able-to-link-schedule-log-with-workflow-job/33081)

<div class="topic-metadata">

**Author:** [@Ajitkumar\_Tanwade](https://forum.ansible.com/u/Ajitkumar_Tanwade)\
**Replies:** 1\
**Last updated:** [June 4, 2020, 3:40am UTC](https://forum.ansible.com/t/awx-logs-not-able-to-link-schedule-log-with-workflow-job/33081 "2020-06-04T03:40:55Z")

</div>

Hi All, We are using AWX version 10.0.0. We are not able to link the schedule with a workflow event. Please find below sample event Schedule event {“@timestamp”: “2020-06-02T14:47:46.278Z”, “message”: “Activity Strea…

---

## [AWX and group\_vars, host\_vars from external source](https://forum.ansible.com/t/awx-and-group-vars-host-vars-from-external-source/33087)

<div class="topic-metadata">

**Author:** [@Onno](https://forum.ansible.com/u/Onno)\
**Replies:** 0\
**Last updated:** [June 4, 2020, 3:31am UTC](https://forum.ansible.com/t/awx-and-group-vars-host-vars-from-external-source/33087 "2020-06-04T03:31:02Z")

</div>

I am using an Git repo as a source of my inventory. This repo also contains group\_vars and host\_vars directories. When using regular Ansible, Ansible will look for those directories in the location where the hosts file. …

---

## [Not able to access the AWX 11.2.0 portal from Browser](https://forum.ansible.com/t/not-able-to-access-the-awx-11-2-0-portal-from-browser/33080)

<div class="topic-metadata">

**Author:** [@Ramakanta\_Sahoo](https://forum.ansible.com/u/Ramakanta_Sahoo)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 7:08pm UTC](https://forum.ansible.com/t/not-able-to-access-the-awx-11-2-0-portal-from-browser/33080 "2020-06-03T19:08:57Z")

</div>

Hi Team, Need an urgent help on where to look out for issues. I have just built a new AWX 11.2.0 container and currently docker compose port forwarding for awxx\_web to 8000 how ever I get the socket timeout when accessi…

---

## [EKS AWX install](https://forum.ansible.com/t/eks-awx-install/33083)

<div class="topic-metadata">

**Author:** [@Staggerlee011](https://forum.ansible.com/u/Staggerlee011)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 6:54pm UTC](https://forum.ansible.com/t/eks-awx-install/33083 "2020-06-03T18:54:04Z")

</div>

Hi doing a eks install of the latest awx. Does anyone else get constant install errors. normally like below, it seems to dip and out. i can run it again and it will pass this section fine then fail at another. Im not ha…

---

## [Convert Ansible playbook to bash script](https://forum.ansible.com/t/convert-ansible-playbook-to-bash-script/33085)

<div class="topic-metadata">

**Author:** [@Sushant\_Sawant](https://forum.ansible.com/u/Sushant_Sawant)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 6:53pm UTC](https://forum.ansible.com/t/convert-ansible-playbook-to-bash-script/33085 "2020-06-03T18:53:13Z")

</div>

Hi guys, Little bit of background, I have a project which has ansible playbook vagrant installation. This runs on my local machine Ubuntu 18.04 There is no developer working on this, I have no experience on ansible. T…

---

## [Getting the version of an Ansible Galaxy role](https://forum.ansible.com/t/getting-the-version-of-an-ansible-galaxy-role/32971)

<div class="topic-metadata">

**Author:** [@Pablo\_Baeyens](https://forum.ansible.com/u/Pablo_Baeyens)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 2:15pm UTC](https://forum.ansible.com/t/getting-the-version-of-an-ansible-galaxy-role/32971 "2020-06-03T14:15:17Z")

</div>

Hi, I want to know the version of a role (from Galaxy) from inside that role (versions correspond to git tags in the source repo). Is there any special variable I can get with the version of a role being executed? Any…

---

## [What is the default user when running job/playbook from AWX?](https://forum.ansible.com/t/what-is-the-default-user-when-running-job-playbook-from-awx/33047)

<div class="topic-metadata">

**Author:** [@karol\_sipos](https://forum.ansible.com/u/karol_sipos)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 8:16am UTC](https://forum.ansible.com/t/what-is-the-default-user-when-running-job-playbook-from-awx/33047 "2020-06-03T08:16:56Z")

</div>

I am running a job/playbook (git source) from AWX GUI, but it keeps connecting over ssh to managed hosts as a root user. In credentials I filled SSH PRIVATE KEY, USERNAME is blank and the default configuration /etc/ansi…

---

## [Parse uri content for filename, save as variable](https://forum.ansible.com/t/parse-uri-content-for-filename-save-as-variable/33077)

<div class="topic-metadata">

**Author:** [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Replies:** 0\
**Last updated:** [June 2, 2020, 10:32pm UTC](https://forum.ansible.com/t/parse-uri-content-for-filename-save-as-variable/33077 "2020-06-02T22:32:42Z")

</div>

Hello All, I have a command using uri that gives me data from a url “msg”: “An item: \<td valign="top"\>\<img src="/icons/unknown.gif" alt=""\>\<a href="errata-20200601.iso"\>errata-20200601.iso \<td align="right"\>2020-06-01 …

---

## [Choosing Cipher In openssl\_privatekey Module With Cryptography Back End](https://forum.ansible.com/t/choosing-cipher-in-openssl-privatekey-module-with-cryptography-back-end/33076)

<div class="topic-metadata">

**Author:** [@B.H](https://forum.ansible.com/u/B.H)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 10:06pm UTC](https://forum.ansible.com/t/choosing-cipher-in-openssl-privatekey-module-with-cryptography-back-end/33076 "2020-06-02T22:06:45Z")

</div>

With the pyOpenSSL back end of the openssl\_privatekey module deprecated in Ansible 2.9, a colleague started looking at the cryptography back end. According to the documentation: openssl\_privatekey – Generate OpenSSL pri…

---

## [how to use ansible tags with conditional includes?](https://forum.ansible.com/t/how-to-use-ansible-tags-with-conditional-includes/33052)

<div class="topic-metadata">

**Author:** [@Tony\_Walsh](https://forum.ansible.com/u/Tony_Walsh)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 7:01pm UTC](https://forum.ansible.com/t/how-to-use-ansible-tags-with-conditional-includes/33052 "2020-06-02T19:01:39Z")

</div>

Hey folks, I have run into a problem that I have not been able to solve – I hope somebody out there has had better luck than I have. Here’s the setup: At the top level directory there is an executive shell script that …

---

## [Problem with DOCUMENTATION.version\_added value in sanity tests](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 5:49pm UTC](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075 "2020-06-02T17:49:27Z")

</div>

Hello All, For a couple of days I’ve been getting the following error in the Ansible sanity tests… ERROR: plugins/modules/cassandra\_autocompaction.py:0:0: module-invalid-version-added: DOCUMENTATION.version\_added: inva…

---

## [How to connect to cdh docker image using Ansible](https://forum.ansible.com/t/how-to-connect-to-cdh-docker-image-using-ansible/32974)

<div class="topic-metadata">

**Author:** [@Galena\_Teneva](https://forum.ansible.com/u/Galena_Teneva)\
**Replies:** 1\
**Last updated:** [June 2, 2020, 5:13pm UTC](https://forum.ansible.com/t/how-to-connect-to-cdh-docker-image-using-ansible/32974 "2020-06-02T17:13:33Z")

</div>

I want to use Hadoop from CDH docker image. CDH image is already installed on my machine and I can run it. docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS…

---

## [Localhost unreachable on Windows Subsystem for Linux (WSL2, Ubuntu) (Git Issue #: 69765)](https://forum.ansible.com/t/localhost-unreachable-on-windows-subsystem-for-linux-wsl2-ubuntu-git-issue-69765/33069)

<div class="topic-metadata">

**Author:** [@Leo2](https://forum.ansible.com/u/Leo2)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 3:02pm UTC](https://forum.ansible.com/t/localhost-unreachable-on-windows-subsystem-for-linux-wsl2-ubuntu-git-issue-69765/33069 "2020-06-02T15:02:16Z")

</div>

Hi everyone, I opened an issue at Github project but unfortunately got closed unexpectedly. I still believe the there are some compatibility problems between Ansible and WSL, because the scenario I described in the issu…

---

## [An exception occurred during task execution.](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 10\
**Last updated:** [June 2, 2020, 2:54pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066 "2020-06-02T14:54:26Z")

</div>

I am trying to deploy new vmware vcsa appliance from iso usibg ansible below is playbook

---

## [How can i get ip addresses of group hostnames](https://forum.ansible.com/t/how-can-i-get-ip-addresses-of-group-hostnames/33073)

<div class="topic-metadata">

**Author:** [@Arko\_Kost](https://forum.ansible.com/u/Arko_Kost)\
**Replies:** 6\
**Last updated:** [June 2, 2020, 11:29am UTC](https://forum.ansible.com/t/how-can-i-get-ip-addresses-of-group-hostnames/33073 "2020-06-02T11:29:31Z")

</div>

I can’t find anywhere, how can i get ip addresses of hosts in specific group - hosts: opmon tasks: - lineinfile: create: true line: "host\\t'op-monitor'\\topmonitor\\t{{ item}}/24\\t\\tmd5" dest: /…

---

## ["kerberos: HTTPSConnectionPool(host='win-xx.ca.local', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'\[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed (\_ssl.c:618)'),))"](https://forum.ansible.com/t/kerberos-httpsconnectionpool-host-win-xx-ca-local-port-5986-max-retries-exceeded-with-url-wsman-caused-by-sslerror-sslerror-1-u-ssl-certificate-verify-failed-certificate-verify-failed-ssl-c-618/33072)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 8:18am UTC](https://forum.ansible.com/t/kerberos-httpsconnectionpool-host-win-xx-ca-local-port-5986-max-retries-exceeded-with-url-wsman-caused-by-sslerror-sslerror-1-u-ssl-certificate-verify-failed-certificate-verify-failed-ssl-c-618/33072 "2020-06-02T08:18:33Z")

</div>

Hello I am getting error below “msg”: “kerberos: HTTPSConnectionPool(host=‘win-xx.ca.local’, port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u’\[SSL: CERTIFICATE\_VERIFY\_FAILED\] certific…

---

## [PHPIPAM](https://forum.ansible.com/t/phpipam/33061)

<div class="topic-metadata">

**Author:** [@Naresh\_Kasula](https://forum.ansible.com/u/Naresh_Kasula)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 7:50am UTC](https://forum.ansible.com/t/phpipam/33061 "2020-06-02T07:50:15Z")

</div>

Hi Team, I have installed PHPIPAM on linux centos server now want retrieve the subnet/ipaddress details using Ansible scripts. Can someone please guide to get the details. PHPIPAM is basically IPAddress management too…

---

## [mso\_schema\_site\_anp\_epg\_domain module issue?](https://forum.ansible.com/t/mso-schema-site-anp-epg-domain-module-issue/33063)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 5:55am UTC](https://forum.ansible.com/t/mso-schema-site-anp-epg-domain-module-issue/33063 "2020-06-02T05:55:00Z")

</div>

Hello all, I have tried using the mso\_schema\_site\_anp\_epg\_domain module today with the code syntax below but keep getting the following error message. Any ideas on what the issues? Or has someone else seen this before? …

---

## [src module not working as mentioned/expected.](https://forum.ansible.com/t/src-module-not-working-as-mentioned-expected/33068)

<div class="topic-metadata">

**Author:** [@SUNU](https://forum.ansible.com/u/SUNU)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 5:02am UTC](https://forum.ansible.com/t/src-module-not-working-as-mentioned-expected/33068 "2020-06-02T05:02:47Z")

</div>

As per the definition src module will deploy the local file, but it doesn’t do the same and getting file not available/file reallt exist ? exception. Instead lookup and templates have to be used. Please remove src from t…

---

## [Molecule Testing for multiple roles](https://forum.ansible.com/t/molecule-testing-for-multiple-roles/33071)

<div class="topic-metadata">

**Author:** [@JDM](https://forum.ansible.com/u/JDM)\
**Replies:** 0\
**Last updated:** [June 2, 2020, 4:45am UTC](https://forum.ansible.com/t/molecule-testing-for-multiple-roles/33071 "2020-06-02T04:45:42Z")

</div>

Hi Guys, Has anyone tried testing multiple ansible roles together. Best Regards, Jagdish

---

## [ec2 instance launch failing with error subnet id does not exit](https://forum.ansible.com/t/ec2-instance-launch-failing-with-error-subnet-id-does-not-exit/33070)

<div class="topic-metadata">

**Author:** [@Sanjay\_Chakraborty](https://forum.ansible.com/u/Sanjay_Chakraborty)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 4:23am UTC](https://forum.ansible.com/t/ec2-instance-launch-failing-with-error-subnet-id-does-not-exit/33070 "2020-06-02T04:23:42Z")

</div>

Hi there, Can anyone please let me know what should be the correct syntax for defining vpc subnet id ? This is my playbook:

---

## [Setting Variable across multiple hosts blocks](https://forum.ansible.com/t/setting-variable-across-multiple-hosts-blocks/33058)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 6\
**Last updated:** [June 1, 2020, 10:51pm UTC](https://forum.ansible.com/t/setting-variable-across-multiple-hosts-blocks/33058 "2020-06-01T22:51:50Z")

</div>

Hello All, I am having an issue when I set a fact, I am not able to see that fact after I have another host block in my playbook. I get the error variable is undefined. The issue occurs in my - name: Launch instance

---

## [Which module can I use to run command on command prompt on all my hosts ?](https://forum.ansible.com/t/which-module-can-i-use-to-run-command-on-command-prompt-on-all-my-hosts/33067)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 7:07pm UTC](https://forum.ansible.com/t/which-module-can-i-use-to-run-command-on-command-prompt-on-all-my-hosts/33067 "2020-06-01T19:07:09Z")

</div>

Hi, Which module can I use as a task to run a command on the command prompt on all my hosts? example - cmd: gpupdate/force Thanks,

---

## [Where is the source of the alternatives module](https://forum.ansible.com/t/where-is-the-source-of-the-alternatives-module/33035)

<div class="topic-metadata">

**Author:** [@Gunther\_Grill](https://forum.ansible.com/u/Gunther_Grill)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 5:46pm UTC](https://forum.ansible.com/t/where-is-the-source-of-the-alternatives-module/33035 "2020-06-01T17:46:41Z")

</div>

Hi, a coupe of month ago, the source code of the alternatives module was in the ansibel-modules-extra (or something similar) repo. Then it as moved to the core ansible repo. But now, I can’t find it anymore. Was it mov…

---

## [partial dictionary merge available?](https://forum.ansible.com/t/partial-dictionary-merge-available/33065)

<div class="topic-metadata">

**Author:** [@Toni\_Mueller](https://forum.ansible.com/u/Toni_Mueller)\
**Replies:** 2\
**Last updated:** [June 1, 2020, 5:07pm UTC](https://forum.ansible.com/t/partial-dictionary-merge-available/33065 "2020-06-01T17:07:27Z")

</div>

Hi, I've just read that there is a way to merge dictionaries, to accumulate values across the variable hierarchy, but it is supposed to be a very bad idea. Would it be difficult to allow this merge feature on just a …

---

## [How to efficiently 'delegate\_to'?](https://forum.ansible.com/t/how-to-efficiently-delegate-to/33064)

<div class="topic-metadata">

**Author:** [@Toni\_Mueller](https://forum.ansible.com/u/Toni_Mueller)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 3:59pm UTC](https://forum.ansible.com/t/how-to-efficiently-delegate-to/33064 "2020-06-01T15:59:22Z")

</div>

Hi, in a project to provision stuff, I would like to set a lot of variables on a host, which I want to use in a playbook, but take the values for that variable from the host I am delegating to. Ie, in my inventory, I …

---

## [Making an unsafe variable safe](https://forum.ansible.com/t/making-an-unsafe-variable-safe/33059)

<div class="topic-metadata">

**Author:** [@Vadim\_Eisenberg](https://forum.ansible.com/u/Vadim_Eisenberg)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 3:51pm UTC](https://forum.ansible.com/t/making-an-unsafe-variable-safe/33059 "2020-06-01T15:51:10Z")

</div>

Hello, I have the following use case: I want to read a string from some source into a variable, marking it unsafe. Then I want to perform my own sanitation checks and then make the variable safe so I could use Jinja2 te…

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

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