# Ansible Project

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

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

**Page:** 16

---

## [Ansible Tower error of Deploying Dynatrace Oneagent on Windows Host | "unexpected rc from install C:\\Temp\\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for more details", "rc": 1602, "reboot\_required"](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636)

<div class="topic-metadata">

**Author:** [@Richard\_Jusay](https://forum.ansible.com/u/Richard_Jusay)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 3:35pm UTC](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636 "2023-07-27T15:35:17Z")

</div>

Hi, I’m installing Dynatrace oneagent on Windows server, successfully downloaded the installer but it wont continue the installation because of this error. Ansible Tower Play: dynatrace oneagent install on windows Ta…

---

## [escalation problem with 'copy' TASK](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [July 27, 2023, 7:22am UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263 "2023-07-27T07:22:48Z")

</div>

I have a copy TASK

---

## [Date Time Conversion](https://forum.ansible.com/t/date-time-conversion/38261)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 3\
**Last updated:** [July 26, 2023, 7:25pm UTC](https://forum.ansible.com/t/date-time-conversion/38261 "2023-07-26T19:25:38Z")

</div>

Hi All, I want to convert the below time to human readable format, i tried some of the jinza formatter but it is failing . Failed {{ iso\_date|iso8601\_to\_time|datetimeformat(‘%a, %B %d’) }} requirement 2023-07-20 16:3…

---

## [TASK \[Check DB connection\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost\]: FAILED! =\> {"changed": false, "msg": "unable to connect, chec](https://forum.ansible.com/t/task-check-db-connection-fatal-localhost-failed-changed-false-msg-unable-to-connect-chec/38183)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 7\
**Last updated:** [July 26, 2023, 5:03pm UTC](https://forum.ansible.com/t/task-check-db-connection-fatal-localhost-failed-changed-false-msg-unable-to-connect-chec/38183 "2023-07-26T17:03:54Z")

</div>

Any idea about this error, the username and password are correct those are dbo creds. I am able to connect through ssms with the same creds but not working through ansible also I don’t see @sysconfdir@/freetds.conf / ${…

---

## [Variable to be selected from the options](https://forum.ansible.com/t/variable-to-be-selected-from-the-options/38262)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 2:44pm UTC](https://forum.ansible.com/t/variable-to-be-selected-from-the-options/38262 "2023-07-26T14:44:35Z")

</div>

Hi, I have the below variable defined in my playbook. reboot\_option: IfRequired Never Always while calling the same variable from the playbook , the value "IfRequired’ must be the default. “rebootSetting”: “{{ rebo…

---

## [Is there a way to get job running Start/Finish time from tower .](https://forum.ansible.com/t/is-there-a-way-to-get-job-running-start-finish-time-from-tower/38257)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 12:07pm UTC](https://forum.ansible.com/t/is-there-a-way-to-get-job-running-start-finish-time-from-tower/38257 "2023-07-26T12:07:02Z")

</div>

Hi All Is there a way to get job running Start/Finish time from tower .

---

## [inventory works ad-hoc but not for playbooks](https://forum.ansible.com/t/inventory-works-ad-hoc-but-not-for-playbooks/38260)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [July 26, 2023, 9:09am UTC](https://forum.ansible.com/t/inventory-works-ad-hoc-but-not-for-playbooks/38260 "2023-07-26T09:09:06Z")

</div>

i have an inventory vm-414001-0315.ini that looks like this \[vm-414001-0315\] vm-414001-0315.step.zrz.dvz.cn-mv.de this works wit ad-hoc commands but throws an error with ansible-playbook #######################…

---

## [debconf multiselect is converted to string](https://forum.ansible.com/t/debconf-multiselect-is-converted-to-string/38259)

<div class="topic-metadata">

**Author:** [@Ann\_Elliott](https://forum.ansible.com/u/Ann_Elliott)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 4:02pm UTC](https://forum.ansible.com/t/debconf-multiselect-is-converted-to-string/38259 "2023-07-25T16:02:46Z")

</div>

While debconf is working for me just fine when setting string values, when I try to use vtype: multiselect, my list is converted into a string and only the last item gets selected. The relevant section of the yaml file: …

---

## [how to install window patches on Multiple Servers thru Ansible](https://forum.ansible.com/t/how-to-install-window-patches-on-multiple-servers-thru-ansible/38258)

<div class="topic-metadata">

**Author:** [@DushYant\_Parmar](https://forum.ansible.com/u/DushYant_Parmar)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 2:41pm UTC](https://forum.ansible.com/t/how-to-install-window-patches-on-multiple-servers-thru-ansible/38258 "2023-07-25T14:41:13Z")

</div>

How to install window patches on multiple servers parallel Flow is Copy the patch file from the central server to the destination server Installation start parallel on multiple servers once the installation is complet…

---

## [azure.azcollection azure\_rm.yml inventory plugin failing to use az login credentials in execution environment](https://forum.ansible.com/t/azure-azcollection-azure-rm-yml-inventory-plugin-failing-to-use-az-login-credentials-in-execution-environment/38255)

<div class="topic-metadata">

**Author:** [@Will\_McDonald](https://forum.ansible.com/u/Will_McDonald)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 11:45am UTC](https://forum.ansible.com/t/azure-azcollection-azure-rm-yml-inventory-plugin-failing-to-use-az-login-credentials-in-execution-environment/38255 "2023-07-25T11:45:24Z")

</div>

Hi all, I was looking for some help debugging an unusual issue I’m seeing with azure.azcollection and the azure-cli in an Ansible execution environment. TL;DR, if I manually build a container, pip install ansible-core,…

---

## [issue while runing script](https://forum.ansible.com/t/issue-while-runing-script/38248)

<div class="topic-metadata">

**Author:** [@Saillesh\_Satam](https://forum.ansible.com/u/Saillesh_Satam)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 7:29pm UTC](https://forum.ansible.com/t/issue-while-runing-script/38248 "2023-07-24T19:29:48Z")

</div>

I am getting below error FAILED! =\> {“changed”: false, “msg”: “The Python 2 yum module is needed for this module. If you require Python 3 support use the dnf Ansible module instead.”} Please help

---

## [Calling a secondary inventory file](https://forum.ansible.com/t/calling-a-secondary-inventory-file/38251)

<div class="topic-metadata">

**Author:** [@Endure\_Kona](https://forum.ansible.com/u/Endure_Kona)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 12:59pm UTC](https://forum.ansible.com/t/calling-a-secondary-inventory-file/38251 "2023-07-24T12:59:32Z")

</div>

I looking to see if it is possible to call a inventory file that is built during the playbook? The role Set mailbox server to inventory file builds a new inventory file and I want to use that in Mailbox Statistics Collec…

---

## [Failed to install package NTP](https://forum.ansible.com/t/failed-to-install-package-ntp/38253)

<div class="topic-metadata">

**Author:** [@arjungoel\_1995](https://forum.ansible.com/u/arjungoel_1995)\
**Replies:** 9\
**Last updated:** [July 23, 2023, 5:52pm UTC](https://forum.ansible.com/t/failed-to-install-package-ntp/38253 "2023-07-23T17:52:57Z")

</div>

Hi, I was just testing a basic playbook in Ansible. Here is the playbook code:

---

## [AWX 22.5 upgrade on 2 K8S cluster - facing issue with Load balancer - Urgent business is down](https://forum.ansible.com/t/awx-22-5-upgrade-on-2-k8s-cluster-facing-issue-with-load-balancer-urgent-business-is-down/38247)

<div class="topic-metadata">

**Author:** [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 9:31pm UTC](https://forum.ansible.com/t/awx-22-5-upgrade-on-2-k8s-cluster-facing-issue-with-load-balancer-urgent-business-is-down/38247 "2023-07-20T21:31:29Z")

</div>

We have an AWX with 2 cluster K8S configuration (common external postgress db), with container instances as execution envs. When we fire up only 1 cluster, all works fine. When we bring up the second cluster, the “awx.…

---

## [Passing MariaDB query result](https://forum.ansible.com/t/passing-mariadb-query-result/38249)

<div class="topic-metadata">

**Author:** [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Replies:** 8\
**Last updated:** [July 20, 2023, 7:44pm UTC](https://forum.ansible.com/t/passing-mariadb-query-result/38249 "2023-07-20T19:44:03Z")

</div>

Hello, I need to collect some hostnames from a MariaDB database but don’t know exactly how to properly parse the result of my query… Could somebody help? This how the tasks look like: name: Collect devices in down s…

---

## [Ansible - variable to select artifact](https://forum.ansible.com/t/ansible-variable-to-select-artifact/38228)

<div class="topic-metadata">

**Author:** [@David\_Nadelson](https://forum.ansible.com/u/David_Nadelson)\
**Replies:** 6\
**Last updated:** [July 20, 2023, 4:01pm UTC](https://forum.ansible.com/t/ansible-variable-to-select-artifact/38228 "2023-07-20T16:01:25Z")

</div>

Hi All, I’m a DBA learning to use ansible to automate. I’m wondering if anyone can point me to docs on how to use ansible to select a file based on the value of a variable. i.e. if variable=x than choose 1.txt if variab…

---

## [ansible loop with when condition a register variable for more then one match string instance](https://forum.ansible.com/t/ansible-loop-with-when-condition-a-register-variable-for-more-then-one-match-string-instance/38242)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 1:20pm UTC](https://forum.ansible.com/t/ansible-loop-with-when-condition-a-register-variable-for-more-then-one-match-string-instance/38242 "2023-07-20T13:20:11Z")

</div>

Hi Team, I am trying to loop with a condition to match vm\_name for all the VM groups I see that the loop stops at the first instance match . I need help how can I run the loop for all the vm group name in the variable o…

---

## [Getting Permission Denied Error at vault mpount point path](https://forum.ansible.com/t/getting-permission-denied-error-at-vault-mpount-point-path/38243)

<div class="topic-metadata">

**Author:** [@Sonali\_Sarade](https://forum.ansible.com/u/Sonali_Sarade)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 8:07am UTC](https://forum.ansible.com/t/getting-permission-denied-error-at-vault-mpount-point-path/38243 "2023-07-20T08:07:02Z")

</div>

hi Team, I’m trying to capture a vault signed key from vault via ansible. But getting permission denied to given mount point path. Checked for policy attached.It’s create, read, update, patch. Still it’s giving me per…

---

## [Huawei ne error by playbook run](https://forum.ansible.com/t/huawei-ne-error-by-playbook-run/38082)

<div class="topic-metadata">

**Author:** [@Azadeh\_Amirhosseini](https://forum.ansible.com/u/Azadeh_Amirhosseini)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 7:56am UTC](https://forum.ansible.com/t/huawei-ne-error-by-playbook-run/38082 "2023-07-19T07:56:29Z")

</div>

Hi All, To run my playbook which connects to a Huawei ne as its host, i get bellow error message. Any idea how can i resolve it please: TASK \[Commands NE Huawei\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* …

---

## [Release Announcement: Ansible Community package 8.2.0](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-2-0/38240)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 5:42pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-2-0/38240 "2023-07-18T17:42:10Z")

</div>

Hello everyone, We’re happy to announce the release of the Ansible 8.2.0 package! Ansible 8.2.0 includes latest version of ansible-core 2.15.2 and includes a curated set of Ansible collections that provides a vast numb…

---

## [Please help me understand nested loops](https://forum.ansible.com/t/please-help-me-understand-nested-loops/38231)

<div class="topic-metadata">

**Author:** [@Werner\_van\_der\_Merwe](https://forum.ansible.com/u/Werner_van_der_Merwe)\
**Replies:** 4\
**Last updated:** [July 18, 2023, 2:03pm UTC](https://forum.ansible.com/t/please-help-me-understand-nested-loops/38231 "2023-07-18T14:03:40Z")

</div>

Hi, This code works, I just don’t understand the indexing and loop behaviour. Hoping someone can help me understand the indexing, and why the variables are equal to the values. Here the code: engineers: - username: us…

---

## [Output from "top" in shell module does not display the entire "COMMAND" column string](https://forum.ansible.com/t/output-from-top-in-shell-module-does-not-display-the-entire-command-column-string/38230)

<div class="topic-metadata">

**Author:** [@Luiz\_Gustavo](https://forum.ansible.com/u/Luiz_Gustavo)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 9:48am UTC](https://forum.ansible.com/t/output-from-top-in-shell-module-does-not-display-the-entire-command-column-string/38230 "2023-07-18T09:48:14Z")

</div>

Hello, ansible -i \<inventory\_file\> -m shell -a “top -b -n 1 -d 1” -K -b --become-user=root Look at pid 4 where the result is “rcu\_par\*\*+\*\*” and should be “rcu\_par\_gp”. Why?: ansible output: | CHANGED | rc=0 \>…

---

## [New release: ansible-core 2.13.11](https://forum.ansible.com/t/new-release-ansible-core-2-13-11/38237)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 2:31am UTC](https://forum.ansible.com/t/new-release-ansible-core-2-13-11/38237 "2023-07-18T02:31:55Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.13.11 How to get it

---

## [New release: ansible-core 2.14.8](https://forum.ansible.com/t/new-release-ansible-core-2-14-8/38236)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 2:27am UTC](https://forum.ansible.com/t/new-release-ansible-core-2-14-8/38236 "2023-07-18T02:27:24Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.14.8 How to get it

---

## [New release: ansible-core 2.15.2](https://forum.ansible.com/t/new-release-ansible-core-2-15-2/38235)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 2:23am UTC](https://forum.ansible.com/t/new-release-ansible-core-2-15-2/38235 "2023-07-18T02:23:52Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.15.2 How to get it

---

## [Use ansible adhoc command with vmware](https://forum.ansible.com/t/use-ansible-adhoc-command-with-vmware/38232)

<div class="topic-metadata">

**Author:** [@Wael\_ElMasry](https://forum.ansible.com/u/Wael_ElMasry)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 2:07pm UTC](https://forum.ansible.com/t/use-ansible-adhoc-command-with-vmware/38232 "2023-07-17T14:07:41Z")

</div>

I am new to Ansible, is it possible to use the adhoc command with ansible module (vmware.vmware\_rest.\*) ? I am trying to run a simple comma to get virtual machine info. ansible -m vmware.vmware\_rest.vcenter\_vm\_info -a …

---

## [The module failed to execute correctly, you probably need to set the interpreter.\\nSee stdout/stderr for the exact error](https://forum.ansible.com/t/the-module-failed-to-execute-correctly-you-probably-need-to-set-the-interpreter-nsee-stdout-stderr-for-the-exact-error/38204)

<div class="topic-metadata">

**Author:** [@gusto](https://forum.ansible.com/u/gusto)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 1:52pm UTC](https://forum.ansible.com/t/the-module-failed-to-execute-correctly-you-probably-need-to-set-the-interpreter-nsee-stdout-stderr-for-the-exact-error/38204 "2023-07-17T13:52:14Z")

</div>

Hi, I am new to ansible. I have installed ansible and am testing 2 debian servers (ping module) and it works fine ansible all -m ping server1 | SUCCESS =\> { “changed”: false, “ping”: “pong” } server2 | SUCCESS =\> …

---

## [Passing the var set in the 1st play to 2nd in the single playbook](https://forum.ansible.com/t/passing-the-var-set-in-the-1st-play-to-2nd-in-the-single-playbook/38229)

<div class="topic-metadata">

**Author:** [@Raj\_Kumar](https://forum.ansible.com/u/Raj_Kumar)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 1:50pm UTC](https://forum.ansible.com/t/passing-the-var-set-in-the-1st-play-to-2nd-in-the-single-playbook/38229 "2023-07-17T13:50:23Z")

</div>

I am trying to set the var in the 1st play for same hosts and using the same in 2nd play in the same playbook for the same hosts but somehow the variable value is not getting passed to the 2nd play. How can i do this wit…

---

## [Access Vault Pass from inside dynamic inventory](https://forum.ansible.com/t/access-vault-pass-from-inside-dynamic-inventory/19245)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 4\
**Last updated:** [July 17, 2023, 1:46pm UTC](https://forum.ansible.com/t/access-vault-pass-from-inside-dynamic-inventory/19245 "2023-07-17T13:46:58Z")

</div>

I have an executable python file that produces an inventory. Can I access the vault password passed on the command line from the script, or is the script run in isolation from everything else?

---

## [\[ansible-project \] getting unsafe ansible text when I trying to parse ansible register variable](https://forum.ansible.com/t/ansible-project-getting-unsafe-ansible-text-when-i-trying-to-parse-ansible-register-variable/38223)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 5\
**Last updated:** [July 17, 2023, 10:59am UTC](https://forum.ansible.com/t/ansible-project-getting-unsafe-ansible-text-when-i-trying-to-parse-ansible-register-variable/38223 "2023-07-17T10:59:15Z")

</div>

Hi Groups , I am trying to parse the list variable but I am getting ansible unsafe text I need to match the vm name and get the corresponding vm group from the registered variable vm\_groups. tasks: name: “Gather DRS…

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

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