# Ansible Project

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

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

**Page:** 41

---

## [Ansible - AUtorizarion tokens with uri module](https://forum.ansible.com/t/ansible-autorizarion-tokens-with-uri-module/21169)

<div class="topic-metadata">

**Author:** [@John\_McCormack](https://forum.ansible.com/u/John_McCormack)\
**Replies:** 3\
**Last updated:** [July 18, 2022, 7:52pm UTC](https://forum.ansible.com/t/ansible-autorizarion-tokens-with-uri-module/21169 "2022-07-18T19:52:56Z")

</div>

Hi I am trying to use the uri module to connect to my cloud providers API’s curl commands work fine: curl -i -X POST https://api.madrid.gigas.com/token -d 'login=apiuser&password=apipswd' -H 'Accept: application/json' …

---

## [trying to create new user on remote machines](https://forum.ansible.com/t/trying-to-create-new-user-on-remote-machines/36864)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 4:04pm UTC](https://forum.ansible.com/t/trying-to-create-new-user-on-remote-machines/36864 "2022-07-18T16:04:32Z")

</div>

I got following task to create remote user but I do not have ssh keys setup on root or any user. what can i do to create the user? I dont have the become password tasks file for createuser include\_vars: dir: vars n…

---

## [Get info from Content Libraries with community.vmware](https://forum.ansible.com/t/get-info-from-content-libraries-with-community-vmware/36862)

<div class="topic-metadata">

**Author:** [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Replies:** 0\
**Last updated:** [July 18, 2022, 1:53pm UTC](https://forum.ansible.com/t/get-info-from-content-libraries-with-community-vmware/36862 "2022-07-18T13:53:19Z")

</div>

Please install vSphere Automation SDK on cn.localdomain with Python3.9

---

## ['copy' TASK won't copy a file - eventhough reporting 'ok'](https://forum.ansible.com/t/copy-task-wont-copy-a-file-eventhough-reporting-ok/36850)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 8\
**Last updated:** [July 18, 2022, 12:24pm UTC](https://forum.ansible.com/t/copy-task-wont-copy-a-file-eventhough-reporting-ok/36850 "2022-07-18T12:24:16Z")

</div>

I have a TASK that should copy ~/files/repo\_pgbackrest.conf to the remote as /etc/pgbackrest/pgbackrest.conf (note the differing file name). however, despite that fact playbook exection returns an ‘ok’ an that TASK, the…

---

## [Install Packages after VM is created in VSphere](https://forum.ansible.com/t/install-packages-after-vm-is-created-in-vsphere/36818)

<div class="topic-metadata">

**Author:** [@harsh\_chawda](https://forum.ansible.com/u/harsh_chawda)\
**Replies:** 8\
**Last updated:** [July 16, 2022, 3:58am UTC](https://forum.ansible.com/t/install-packages-after-vm-is-created-in-vsphere/36818 "2022-07-16T03:58:15Z")

</div>

Hello All, I am Creating VM in vCenter using community.vmware.vmware\_guest, after the VM is Created I have certain prerequisites to be fulfilled: Do Patching Do some package installation. And some more How to accompl…

---

## [Ansible hangs while gathering facts](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 4\
**Last updated:** [July 15, 2022, 11:28am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853 "2022-07-15T11:28:37Z")

</div>

Hi Team, got the following error: PLAY \[Common setup for all servers\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* After this, Ansible …

---

## [keep getting error : "module\_stderr": "Shared connection to host closed](https://forum.ansible.com/t/keep-getting-error-module-stderr-shared-connection-to-host-closed/36852)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 9:06pm UTC](https://forum.ansible.com/t/keep-getting-error-module-stderr-shared-connection-to-host-closed/36852 "2022-07-14T21:06:21Z")

</div>

any idea why?

---

## [Does vmware\_guest have an idempotency issue or do I hold it wrong?](https://forum.ansible.com/t/does-vmware-guest-have-an-idempotency-issue-or-do-i-hold-it-wrong/36385)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 8:13pm UTC](https://forum.ansible.com/t/does-vmware-guest-have-an-idempotency-issue-or-do-i-hold-it-wrong/36385 "2022-07-14T20:13:17Z")

</div>

Hey folks, I’m using the vmware\_guest module to clone virtual machines (VMs) from a template and customizing them. When running the same playbook with the same parameters/values again while the VMs already exist I would…

---

## [file does not do what it should - inside a role](https://forum.ansible.com/t/file-does-not-do-what-it-should-inside-a-role/36842)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 3:18pm UTC](https://forum.ansible.com/t/file-does-not-do-what-it-should-inside-a-role/36842 "2022-07-14T15:18:14Z")

</div>

I have a ./roles/pgBackRest\_install/tasks/main.yml aiming to install pgBackRest. the entire roles goes through without any problem but these 2 TASKS are practially not havin any effect on the target. neiter /etc/pgback…

---

## [email issues](https://forum.ansible.com/t/email-issues/36851)

<div class="topic-metadata">

**Author:** [@Rene\_Paquin](https://forum.ansible.com/u/Rene_Paquin)\
**Replies:** 0\
**Last updated:** [July 14, 2022, 2:59pm UTC](https://forum.ansible.com/t/email-issues/36851 "2022-07-14T14:59:53Z")

</div>

Attempting to send an email via ansible and running into issues. Here is the playbook hosts: localhost gather\_facts: no vars\_files: group\_vars/vars tasks: name: send an email community.general.mail: host: sign…

---

## [Community mail module not working](https://forum.ansible.com/t/community-mail-module-not-working/36847)

<div class="topic-metadata">

**Author:** [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 4:23am UTC](https://forum.ansible.com/t/community-mail-module-not-working/36847 "2022-07-14T04:23:46Z")

</div>

Hi, I’m running Ansible --version ansible 2.10.8 config file = /etc/ansible/ansible.cfg configured module search path = \[‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’\] ansible python module …

---

## [Regards refrence playbook](https://forum.ansible.com/t/regards-refrence-playbook/36844)

<div class="topic-metadata">

**Author:** [@Pritam\_Dadhe](https://forum.ansible.com/u/Pritam_Dadhe)\
**Replies:** 1\
**Last updated:** [July 13, 2022, 4:07pm UTC](https://forum.ansible.com/t/regards-refrence-playbook/36844 "2022-07-13T16:07:19Z")

</div>

Hello Team I need playbook for reference, trying to create playbook for Linux hardening. Task1 : need to ensure that below filesystem are disable. Below filesystem are already disabled just need to confirm filesystem a…

---

## [ssh via Ansible playbook and vagrant](https://forum.ansible.com/t/ssh-via-ansible-playbook-and-vagrant/36840)

<div class="topic-metadata">

**Author:** [@user50](https://forum.ansible.com/u/user50)\
**Replies:** 0\
**Last updated:** [July 13, 2022, 12:08pm UTC](https://forum.ansible.com/t/ssh-via-ansible-playbook-and-vagrant/36840 "2022-07-13T12:08:53Z")

</div>

I am using vagrant to run ubuntu VM on my Mac. I am trying to provision vagrant with the playbook I wrote but when I do im getting an error about the host. this is my Vagrant file: Vagrant.configure(“2”) do |config| …

---

## [Ansible Loop](https://forum.ansible.com/t/ansible-loop/36839)

<div class="topic-metadata">

**Author:** [@Gerry\_Hall](https://forum.ansible.com/u/Gerry_Hall)\
**Replies:** 0\
**Last updated:** [July 13, 2022, 11:24am UTC](https://forum.ansible.com/t/ansible-loop/36839 "2022-07-13T11:24:05Z")

</div>

I am installing several Tomcats on the same server which requires several different tasks. To do this I am using with\_items: “{{ TomCats }}” for each task where TomCats is something like the below and contained in a vars…

---

## [Passing a variable that is a list to a parameter that expects a list](https://forum.ansible.com/t/passing-a-variable-that-is-a-list-to-a-parameter-that-expects-a-list/36838)

<div class="topic-metadata">

**Author:** [@oloryn](https://forum.ansible.com/u/oloryn)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 8:57pm UTC](https://forum.ansible.com/t/passing-a-variable-that-is-a-list-to-a-parameter-that-expects-a-list/36838 "2022-07-12T20:57:22Z")

</div>

In a variables file, I have a series of ssh keys assigned to variables: samwise\_key: 'ssh-rsa..... legolas\_key: 'ssh-rsa.... gandalf\_key: 'ssh-rsa..... I then have variable defined to be a list of said keys: ssh\_key…

---

## [Need when condition / solution if possible for running task on a specific host](https://forum.ansible.com/t/need-when-condition-solution-if-possible-for-running-task-on-a-specific-host/36830)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 5:51pm UTC](https://forum.ansible.com/t/need-when-condition-solution-if-possible-for-running-task-on-a-specific-host/36830 "2022-07-12T17:51:25Z")

</div>

I have 3 applications hosted on three separate hosts and mentioned in the hosts file like below: cat my.hosts \[app1\_webapp\] host3.mybank.com \[app2\_webapp\] host5.mybank.com \[app3\_webapp\] host8.mybank.com My requir…

---

## [Ansible 6.1.0 has been released!](https://forum.ansible.com/t/ansible-6-1-0-has-been-released/36835)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 5:50pm UTC](https://forum.ansible.com/t/ansible-6-1-0-has-been-released/36835 "2022-07-12T17:50:32Z")

</div>

Hi all, We’re happy to announce that the Ansible 6.1.0 package has been released ! Ansible 6.1.0 will include ansible-core 2.13.1 as well as a curated set of Ansible collections to provide a vast number of modules and…

---

## [Change order of GTM wide ip pools](https://forum.ansible.com/t/change-order-of-gtm-wide-ip-pools/36834)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 4:14pm UTC](https://forum.ansible.com/t/change-order-of-gtm-wide-ip-pools/36834 "2022-07-12T16:14:00Z")

</div>

I’m trying to change the order of the two pools assigned to my F5 GTM wide IP. I have a playbook and with this playbook I’m able to change the load balance method but when I change the order for the pools nothing happens…

---

## [Create a list from a dictionary cycle](https://forum.ansible.com/t/create-a-list-from-a-dictionary-cycle/36833)

<div class="topic-metadata">

**Author:** [@Softmax23](https://forum.ansible.com/u/Softmax23)\
**Replies:** 5\
**Last updated:** [July 12, 2022, 1:59pm UTC](https://forum.ansible.com/t/create-a-list-from-a-dictionary-cycle/36833 "2022-07-12T13:59:14Z")

</div>

Hi I would like to create a list with this dict { “v3bf33-srv01”: “eu-west0-a”, “v3bf33-srv02”: “eu-west0-a”, “v3bf33-srv03”: “eu-west0-a”, “v3bf33-srv04”: “eu-west0-b”, “v3bf33-srv05”: “eu-west0-b”, “v3bf33-srv06…

---

## [Launch task with date in var](https://forum.ansible.com/t/launch-task-with-date-in-var/36832)

<div class="topic-metadata">

**Author:** [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 9:38am UTC](https://forum.ansible.com/t/launch-task-with-date-in-var/36832 "2022-07-12T09:38:22Z")

</div>

Hello, My playbook allows to create/disable users in the Active Directory, In my playbook, I’m going to look for my role which will allow me to generate my variables according to a CSV. In this CSV, I have a start dat…

---

## [Howto to deploy kerberos (krb5.conf) info during awx operator install?](https://forum.ansible.com/t/howto-to-deploy-kerberos-krb5-conf-info-during-awx-operator-install/36723)

<div class="topic-metadata">

**Author:** [@Urs\_Rau](https://forum.ansible.com/u/Urs_Rau)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 9:38am UTC](https://forum.ansible.com/t/howto-to-deploy-kerberos-krb5-conf-info-during-awx-operator-install/36723 "2022-07-12T09:38:14Z")

</div>

I am deploying awx 21.1.0 using the 0.22.0 operator into a minikube cluster doing what they call a ‘basic install’ by way of creating the documented kustomize.yml . https://github.com/ansible/awx-operator#basic-install …

---

## [Key Update depending on the OS version](https://forum.ansible.com/t/key-update-depending-on-the-os-version/36831)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 5:19am UTC](https://forum.ansible.com/t/key-update-depending-on-the-os-version/36831 "2022-07-12T05:19:52Z")

</div>

Hello Folk, Need one help in updating the key to sshd\_config file depending on the OS version. I ve folder structure like below roles sshd tasks main.yml vars main.yml template main.yml I want to update /template…

---

## [ANSIBLE\_JINJA2\_NATIVE not working in user module for expires key](https://forum.ansible.com/t/ansible-jinja2-native-not-working-in-user-module-for-expires-key/36828)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 9:35pm UTC](https://forum.ansible.com/t/ansible-jinja2-native-not-working-in-user-module-for-expires-key/36828 "2022-07-11T21:35:13Z")

</div>

I’m trying to pass a generic date to the expires key in the user module and convert it inline so that our inventory doesn’t have to include this same jinja over and over: users: name: asmith comment: Adam Smith key\_excl…

---

## [docker\_container - container stops without completing the commands](https://forum.ansible.com/t/docker-container-container-stops-without-completing-the-commands/36826)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 7:35pm UTC](https://forum.ansible.com/t/docker-container-container-stops-without-completing-the-commands/36826 "2022-07-11T19:35:39Z")

</div>

I want to create a docker container on a remote host and then, in a second step build a binary for pgBackRest inside that container. It fails with the task to create the container, install some packages for the build an…

---

## [\[Ext\] \[ansible-project\] RHCE exam question](https://forum.ansible.com/t/ext-ansible-project-rhce-exam-question/36827)

<div class="topic-metadata">

**Author:** [@rilindo](https://forum.ansible.com/u/rilindo)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 2:47pm UTC](https://forum.ansible.com/t/ext-ansible-project-rhce-exam-question/36827 "2022-07-11T14:47:38Z")

</div>

Hi Mahdi! Red Hat NDA actually prohibits you from discussing specific exam questions and can result in you and other people being banned from future exams as well as revocation of any Red Hat you may have already obtain…

---

## [Unable to create the partition](https://forum.ansible.com/t/unable-to-create-the-partition/36816)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 9\
**Last updated:** [July 11, 2022, 9:27am UTC](https://forum.ansible.com/t/unable-to-create-the-partition/36816 "2022-07-11T09:27:32Z")

</div>

Hi, I am trying to create the partition, but got the following error:

---

## [RHCE exam question](https://forum.ansible.com/t/rhce-exam-question/36824)

<div class="topic-metadata">

**Author:** [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 9:05am UTC](https://forum.ansible.com/t/rhce-exam-question/36824 "2022-07-11T09:05:35Z")

</div>

How close did you get? I suggest the best way to get assistance on somethng like this from the volunteers on this list is to show us the best thing you managed to come up with on your own, and tell us which part of th…

---

## [Use of ansible module input parameters in subsequent tasks](https://forum.ansible.com/t/use-of-ansible-module-input-parameters-in-subsequent-tasks/36823)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 8:33am UTC](https://forum.ansible.com/t/use-of-ansible-module-input-parameters-in-subsequent-tasks/36823 "2022-07-11T08:33:17Z")

</div>

Hi, I want to use region attribute from below task for subsequent task but that attribute is not a part of output , so how I can use it next tasks. name: get aws vpc detailsec2\_vpc\_net\_info: aws\_access\_key: #########…

---

## [Unable to install a package](https://forum.ansible.com/t/unable-to-install-a-package/36822)

<div class="topic-metadata">

**Author:** [@skratbag](https://forum.ansible.com/u/skratbag)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 8:17am UTC](https://forum.ansible.com/t/unable-to-install-a-package/36822 "2022-07-11T08:17:55Z")

</div>

Hi Folks, Having a problem with a rc 126 from yum. I have tried the following options and am receiving the following error messages. I did find a reference to this particular error but not on RHEL 2.9.27 (which is what …

---

## [need help for XML to JSON Parsing Error with Ansible using Parse\_xml](https://forum.ansible.com/t/need-help-for-xml-to-json-parsing-error-with-ansible-using-parse-xml/36815)

<div class="topic-metadata">

**Author:** [@maulik\_patel](https://forum.ansible.com/u/maulik_patel)\
**Replies:** 3\
**Last updated:** [July 10, 2022, 3:29pm UTC](https://forum.ansible.com/t/need-help-for-xml-to-json-parsing-error-with-ansible-using-parse-xml/36815 "2022-07-10T15:29:00Z")

</div>

hi , I was trying to parse a XML response to JSON using parse\_xml from an AWS VPN output, but I’m getting the below error. I am able to parse data with “vpn\_conn\_facts.vpn\_connections\[0\].customer\_gateway\_configuration” …

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

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