# Ansible Project

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

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

**Page:** 61

---

## [Ansible 4.8.0 has been released](https://forum.ansible.com/t/ansible-4-8-0-has-been-released/35949)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 2:21pm UTC](https://forum.ansible.com/t/ansible-4-8-0-has-been-released/35949 "2021-11-02T14:21:12Z")

</div>

Hi all, We're happy to announce that the ansible-4.8.0 package has been released to PyPi: https://pypi.org/project/ansible/4.8.0/ This new version contains bug fixes as well as new, backwards compatible features in …

---

## [azcollection.azure\_rm\_keyvault  with RBAC](https://forum.ansible.com/t/azcollection-azure-rm-keyvault-with-rbac/35947)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 10:55am UTC](https://forum.ansible.com/t/azcollection-azure-rm-keyvault-with-rbac/35947 "2021-11-02T10:55:19Z")

</div>

Hello Team, I want to create Azure keyvault using azcollection.azure\_rm\_keyvault module and in this case I would like to enable the Azure role-based access control in permission module. By default is taking Vault acces…

---

## [Splunk cluster configuration using ansible playbook](https://forum.ansible.com/t/splunk-cluster-configuration-using-ansible-playbook/35925)

<div class="topic-metadata">

**Author:** [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Replies:** 2\
**Last updated:** [October 29, 2021, 2:39pm UTC](https://forum.ansible.com/t/splunk-cluster-configuration-using-ansible-playbook/35925 "2021-10-29T14:39:35Z")

</div>

Hello All, Have any one tried deploying Splunk Cluster using ansible playbook. Please share some details. regards Vinod

---

## [Want to add hidden password for url](https://forum.ansible.com/t/want-to-add-hidden-password-for-url/35911)

<div class="topic-metadata">

**Author:** [@vaishnavi\_kakad](https://forum.ansible.com/u/vaishnavi_kakad)\
**Replies:** 4\
**Last updated:** [October 29, 2021, 2:06pm UTC](https://forum.ansible.com/t/want-to-add-hidden-password-for-url/35911 "2021-10-29T14:06:42Z")

</div>

Hi All, How we can add the hidden password in Ansible ? For eg : name: Download image files get\_url: url: http://0.0.0.0/XYZ.tar.gz url\_username:XYZ url\_password: \*\*\*\*\*\*\*\*\* (I want to add hidden password here. ) …

---

## [Unable to run script using ansibl;e shell or raw module.](https://forum.ansible.com/t/unable-to-run-script-using-ansibl-e-shell-or-raw-module/35938)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 5:54am UTC](https://forum.ansible.com/t/unable-to-run-script-using-ansibl-e-shell-or-raw-module/35938 "2021-10-29T05:54:48Z")

</div>

My ansible target server is SunOS. Note: The script works fine when triggered manually as is on the remote solaris server/ I get Ansible error Shared connection to myhost1 closed. when using raw module for the same scr…

---

## [json query question](https://forum.ansible.com/t/json-query-question/35937)

<div class="topic-metadata">

**Author:** [@Tommy\_Tyrell](https://forum.ansible.com/u/Tommy_Tyrell)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 7:28pm UTC](https://forum.ansible.com/t/json-query-question/35937 "2021-10-28T19:28:52Z")

</div>

Forgive the noob question. I am new to Ansible. I am attempting to filter the json results of my playbook to only get specific information. Looking at the Ansible documentation, it is possible using community.general.jso…

---

## [Ansible error Shared connection to myhost1 closed. when using raw module](https://forum.ansible.com/t/ansible-error-shared-connection-to-myhost1-closed-when-using-raw-module/35936)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 1:04pm UTC](https://forum.ansible.com/t/ansible-error-shared-connection-to-myhost1-closed-when-using-raw-module/35936 "2021-10-28T13:04:02Z")

</div>

My ansible target server is SunOS. I get Ansible error Shared connection to myhost1 closed. when using raw module. The error does not show when i change module to shell however, the execution of script start.sh does no…

---

## [Store Timestamp As A Constant Value](https://forum.ansible.com/t/store-timestamp-as-a-constant-value/35914)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Replies:** 5\
**Last updated:** [October 27, 2021, 6:23pm UTC](https://forum.ansible.com/t/store-timestamp-as-a-constant-value/35914 "2021-10-27T18:23:01Z")

</div>

I’m trying to save the timestamp corresponding to when a playbook runs in a variable. I plan to use this variable across the playbook but I’m facing issues particularly since the lookup plugin runs and generates a new …

---

## [Troubles with conditions, register and loop](https://forum.ansible.com/t/troubles-with-conditions-register-and-loop/35933)

<div class="topic-metadata">

**Author:** [@Leonardo](https://forum.ansible.com/u/Leonardo)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 6:03pm UTC](https://forum.ansible.com/t/troubles-with-conditions-register-and-loop/35933 "2021-10-27T18:03:30Z")

</div>

Hi guys, I’m trying to create a lab file to restart a service only if it’s running. I have troubles when using variables, register and loop together. name: Restart a service only if it’s active. hosts: LAB vars: s…

---

## [installing postgres - error with initdb -D /path/to/pg\_data](https://forum.ansible.com/t/installing-postgres-error-with-initdb-d-path-to-pg-data/35932)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 7\
**Last updated:** [October 27, 2021, 6:01pm UTC](https://forum.ansible.com/t/installing-postgres-error-with-initdb-d-path-to-pg-data/35932 "2021-10-27T18:01:27Z")

</div>

I have a playbook to install postgresql on a rhel8 target one TASK should start the initdb process … \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ name: configure postgres - create database comm…

---

## [Error :winrm ## The kind of connection which ansible will make with remote windows node' was not found"](https://forum.ansible.com/t/error-winrm-the-kind-of-connection-which-ansible-will-make-with-remote-windows-node-was-not-found/35919)

<div class="topic-metadata">

**Author:** [@Rajesh\_Varma](https://forum.ansible.com/u/Rajesh_Varma)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 1:24pm UTC](https://forum.ansible.com/t/error-winrm-the-kind-of-connection-which-ansible-will-make-with-remote-windows-node-was-not-found/35919 "2021-10-27T13:24:35Z")

</div>

Hello Techies, I am learning the ansible on windows 10. I have configure the ubuntu and ansible on my laptop. Now i am trying to connect the windows from ubuntu … i am getting the below error message ansible windows …

---

## [Need info on any known issues for a paramiko/ ansible version](https://forum.ansible.com/t/need-info-on-any-known-issues-for-a-paramiko-ansible-version/35931)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 11:14am UTC](https://forum.ansible.com/t/need-info-on-any-known-issues-for-a-paramiko-ansible-version/35931 "2021-10-27T11:14:11Z")

</div>

Hi, I am using ansible 2.10.8 with python 3.9.2 and running ansible on Windows subsystem for linux (debian linux). Pramiko version is paramiko==2.7.2. I am seeing some network modules freezing for no apparent reason. P…

---

## [Not able to connect to the managed node](https://forum.ansible.com/t/not-able-to-connect-to-the-managed-node/35930)

<div class="topic-metadata">

**Author:** [@Komal\_Suthar](https://forum.ansible.com/u/Komal_Suthar)\
**Replies:** 3\
**Last updated:** [October 27, 2021, 10:22am UTC](https://forum.ansible.com/t/not-able-to-connect-to-the-managed-node/35930 "2021-10-27T10:22:37Z")

</div>

ansible all -m ping SSH password: 192.168.99.115 | FAILED! =\> { “msg”: “to use the ‘ssh’ connection type with passwords, you must install the sshpass program” } This is the error msg I’m getting while connecting to …

---

## [How to fill netplan config file with routes via ansible](https://forum.ansible.com/t/how-to-fill-netplan-config-file-with-routes-via-ansible/35929)

<div class="topic-metadata">

**Author:** [@Markus1](https://forum.ansible.com/u/Markus1)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 9:25am UTC](https://forum.ansible.com/t/how-to-fill-netplan-config-file-with-routes-via-ansible/35929 "2021-10-27T09:25:18Z")

</div>

I’m trying to manage netplan by using ansible. That worked well in the past, where I used the a static template. Now I have to add several lines to the route section: … bridges:… br0: … routes: … - to: 0.0.0.0/0 … vi…

---

## [ssh management ansible](https://forum.ansible.com/t/ssh-management-ansible/35912)

<div class="topic-metadata">

**Author:** [@Ndricim\_Danaj](https://forum.ansible.com/u/Ndricim_Danaj)\
**Replies:** 4\
**Last updated:** [October 26, 2021, 8:00am UTC](https://forum.ansible.com/t/ssh-management-ansible/35912 "2021-10-26T08:00:00Z")

</div>

TASK \[Set up multiple authorized ssh\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[web1\]: FAILED! =\> {“msg”: "The task includes an option with an undefined variable. The error was: ‘item’ is undefined\\n\\nThe error…

---

## [Grouping subelements](https://forum.ansible.com/t/grouping-subelements/35921)

<div class="topic-metadata">

**Author:** [@Anil\_Kommareddy](https://forum.ansible.com/u/Anil_Kommareddy)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 6:37pm UTC](https://forum.ansible.com/t/grouping-subelements/35921 "2021-10-25T18:37:56Z")

</div>

Hi All, How do I group sublement port under portnames? name: Test flatten - 1 debug: msg: “{{ item\[1\].port | join(‘,’) }}” with\_subelements: “{{ new\_host\_groups }}” portnames ----------------json file — { “name”…

---

## [How to run ansible playbook on multiple hosts with LDAP credentials?](https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916)

<div class="topic-metadata">

**Author:** [@Abhiroxxx](https://forum.ansible.com/u/Abhiroxxx)\
**Replies:** 1\
**Last updated:** [October 25, 2021, 12:57pm UTC](https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916 "2021-10-25T12:57:16Z")

</div>

Hello All, I want execute some playbooks on multiple hosts with LDAP credentials. I don’t want this activity password less. I don’t want to share SSH keys between hosts. Is it possible to run playbook with LDAP credenti…

---

## [ASA\_command module freezes for no apparent reason](https://forum.ansible.com/t/asa-command-module-freezes-for-no-apparent-reason/35913)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [October 23, 2021, 7:51pm UTC](https://forum.ansible.com/t/asa-command-module-freezes-for-no-apparent-reason/35913 "2021-10-23T19:51:06Z")

</div>

Hi, I have a written a script to do IOS upgrade of active-standby ASA firewall. Script first upgrades standby firewall and does post-upgrade verification and then switches to active firewall to upgrade it (multiple play…

---

## [kerberos: Bad HTTP response returned from server. Code 500](https://forum.ansible.com/t/kerberos-bad-http-response-returned-from-server-code-500/35801)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 1\
**Last updated:** [October 22, 2021, 10:28pm UTC](https://forum.ansible.com/t/kerberos-bad-http-response-returned-from-server-code-500/35801 "2021-10-22T22:28:27Z")

</div>

Good evening All I am facing a small issue, could you please let me out This works if i allow unencrypted is true : Set-Item -Path WSMan:\\localhost\\Service\\AllowUnencrypted -Value true Error: fatal: \[win-client-01.adc…

---

## [one email for multiple hosts](https://forum.ansible.com/t/one-email-for-multiple-hosts/35863)

<div class="topic-metadata">

**Author:** [@Raj](https://forum.ansible.com/u/Raj)\
**Replies:** 12\
**Last updated:** [October 22, 2021, 6:17pm UTC](https://forum.ansible.com/t/one-email-for-multiple-hosts/35863 "2021-10-22T18:17:23Z")

</div>

Hi All, I am trying to send one email to team after job is successfully completed. Issue is playbook sending (if inventory have 100 servers ). It is sending 100 emails. I tried in my code: delegate\_to: localhost and ru…

---

## [Ansible not installing the windows update](https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910)

<div class="topic-metadata">

**Author:** [@Lucky\_Lakshman](https://forum.ansible.com/u/Lucky_Lakshman)\
**Replies:** 1\
**Last updated:** [October 22, 2021, 1:12pm UTC](https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910 "2021-10-22T13:12:05Z")

</div>

Hello, I have used the below yaml file. The file is getting executing but the installation is not going on. hosts: win tasks: name: Return list of found updates and log to C:\\WinUpdates.txt win\_updates: category\_na…

---

## [mapping values are not allowed in this context](https://forum.ansible.com/t/mapping-values-are-not-allowed-in-this-context/35909)

<div class="topic-metadata">

**Author:** [@Yanni\_G](https://forum.ansible.com/u/Yanni_G)\
**Replies:** 0\
**Last updated:** [October 22, 2021, 10:44am UTC](https://forum.ansible.com/t/mapping-values-are-not-allowed-in-this-context/35909 "2021-10-22T10:44:15Z")

</div>

Hello everyone I had a small task that used to work fine but suddenly it gives me errors. FAILED! =\> {“msg”: “The conditional check ‘ACTION == "install"’ failed. The error was: error while evaluating conditional (ACTIO…

---

## [Determining the primary IP address](https://forum.ansible.com/t/determining-the-primary-ip-address/35908)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 3\
**Last updated:** [October 22, 2021, 1:50am UTC](https://forum.ansible.com/t/determining-the-primary-ip-address/35908 "2021-10-22T01:50:53Z")

</div>

Good afternoon. I have this snippet of code, that sets a proxy variable if the default ipv4 IP address is in 10 net space. I had read somewhere that using the ansible\_default\_ipv4 fact, wasn’t always reliable. So is the…

---

## [Playbook Variable and Jinja 2 -- Namespace Problem?](https://forum.ansible.com/t/playbook-variable-and-jinja-2-namespace-problem/35905)

<div class="topic-metadata">

**Author:** [@John-Paul\_Pagano](https://forum.ansible.com/u/John-Paul_Pagano)\
**Replies:** 4\
**Last updated:** [October 21, 2021, 12:18am UTC](https://forum.ansible.com/t/playbook-variable-and-jinja-2-namespace-problem/35905 "2021-10-21T00:18:47Z")

</div>

ansible-playbook \[core 2.11.5\] python version = 3.9.7 (default, Sep 3 2021, 12:45:31) \[Clang 12.0.0 (clang-1200.0.32.29)\] jinja version = 2.11.3 Hi, I’m trying to write a play that will connect to a managed Windows n…

---

## [how to run a shell command within a playbook repeatedly](https://forum.ansible.com/t/how-to-run-a-shell-command-within-a-playbook-repeatedly/35901)

<div class="topic-metadata">

**Author:** [@Hareesh\_Vn](https://forum.ansible.com/u/Hareesh_Vn)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 12:07am UTC](https://forum.ansible.com/t/how-to-run-a-shell-command-within-a-playbook-repeatedly/35901 "2021-10-21T00:07:18Z")

</div>

Hi Team Below is problem description on which i need help. I am adding single mongo db shards by running below shell command – this is working fine to install on one server name: “Creating the database” command: “sh…

---

## [ansible email and template](https://forum.ansible.com/t/ansible-email-and-template/35906)

<div class="topic-metadata">

**Author:** [@Mahesh\_Nalavade](https://forum.ansible.com/u/Mahesh_Nalavade)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 6:29pm UTC](https://forum.ansible.com/t/ansible-email-and-template/35906 "2021-10-20T18:29:35Z")

</div>

Hi All, I am trying to send email in html but email body display the same html file. Playbook: (attachments)

---

## [package TASK ... 'should be run under the root user'](https://forum.ansible.com/t/package-task-should-be-run-under-the-root-user/35904)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 5\
**Last updated:** [October 20, 2021, 3:01pm UTC](https://forum.ansible.com/t/package-task-should-be-run-under-the-root-user/35904 "2021-10-20T15:01:56Z")

</div>

I have this TASK in a playbook which should install a bunch of packages on my (rhel8) target rrequired for postgresql I am shooting my playbok as a user with root priviledges via sudo In earlier TASKS of the play…

---

## [Ansible Galaxy down?](https://forum.ansible.com/t/ansible-galaxy-down/35903)

<div class="topic-metadata">

**Author:** [@belaran](https://forum.ansible.com/u/belaran)\
**Replies:** 4\
**Last updated:** [October 20, 2021, 2:03pm UTC](https://forum.ansible.com/t/ansible-galaxy-down/35903 "2021-10-20T14:03:46Z")

</div>

Hi, It seems Ansible Galaxy is down (at least for me): https://galaxy.ansible.com/ Error 1016 Ray ID: 6a1137627e9ed463 • 2021-10-20 09:28:30 UTC Origin DNS error What happened? You’ve requested a page on a website (g…

---

## [Sorting a fact in Ansible](https://forum.ansible.com/t/sorting-a-fact-in-ansible/35899)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 6:25pm UTC](https://forum.ansible.com/t/sorting-a-fact-in-ansible/35899 "2021-10-19T18:25:35Z")

</div>

I am trying to sort a list when setting a fact in Ansible as follows: name: Get installed packages become: true become\_method: sudo package\_facts: register: installed name: Set package facts set\_fact: package…

---

## [Bash to ansible](https://forum.ansible.com/t/bash-to-ansible/35895)

<div class="topic-metadata">

**Author:** [@Mario\_Procopio](https://forum.ansible.com/u/Mario_Procopio)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 4:43am UTC](https://forum.ansible.com/t/bash-to-ansible/35895 "2021-10-19T04:43:42Z")

</div>

Hi there. I’m trying to use ansible to automate standard controls on redhat servers, I have several bash scripts that I currently run locally on each server so I can control them. Script in bash today=date host=ho…

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

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