# Ansible Project

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

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

**Page:** 3

---

## [Is there a task/module to create a vaulted file?](https://forum.ansible.com/t/is-there-a-task-module-to-create-a-vaulted-file/38797)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 4\
**Last updated:** [May 28, 2024, 3:23pm UTC](https://forum.ansible.com/t/is-there-a-task-module-to-create-a-vaulted-file/38797 "2024-05-28T15:23:20Z")

</div>

Hii In one of my playbooks there is a task that is creating a token through an API. As the next task, I would like to store that token somewhere in my vars hierarchy. If it were a plain text variable that would be eas…

---

## [ansible 2.17 and fortinet.fortios compatibility](https://forum.ansible.com/t/ansible-2-17-and-fortinet-fortios-compatibility/38791)

<div class="topic-metadata">

**Author:** [@Azadeh\_Amirhosseini](https://forum.ansible.com/u/Azadeh_Amirhosseini)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 10:27am UTC](https://forum.ansible.com/t/ansible-2-17-and-fortinet-fortios-compatibility/38791 "2024-05-28T10:27:48Z")

</div>

Hi all, I have installed Ansible Core 2.17.0. My question is, is the Galaxy collection fortinet.fortios 2.3.6 compatible with this version? I am facing issues executing the related playbook, even though the same playbo…

---

## [win\_chocolatey not installed in AWX](https://forum.ansible.com/t/win-chocolatey-not-installed-in-awx/38795)

<div class="topic-metadata">

**Author:** [@narendermann](https://forum.ansible.com/u/narendermann)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 6:44pm UTC](https://forum.ansible.com/t/win-chocolatey-not-installed-in-awx/38795 "2024-05-27T18:44:32Z")

</div>

Dear Experts, I am new to Ansible and working on Ansible Tower. I have some basic configuration ad able to play around. I was trying to manage packages in windows using win\_chocolatey but its not in the AWX. Getting b…

---

## [Looping through a register variable](https://forum.ansible.com/t/looping-through-a-register-variable/38793)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 7\
**Last updated:** [May 24, 2024, 12:43pm UTC](https://forum.ansible.com/t/looping-through-a-register-variable/38793 "2024-05-24T12:43:12Z")

</div>

Good day, all. I hope I’m not wearing out my welcome with too many questions. In the following playbook, I first find any know\_host file for any user on a particular system. I then copy a file with the list of additions…

---

## [Create a variable based on a variable](https://forum.ansible.com/t/create-a-variable-based-on-a-variable/38772)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 6\
**Last updated:** [May 23, 2024, 11:19am UTC](https://forum.ansible.com/t/create-a-variable-based-on-a-variable/38772 "2024-05-23T11:19:33Z")

</div>

Hello, all. The subject of this post is probably terribly named. That said, here’s what I’m trying to accomplish: I have two VMware vCenter hosts - vcenter1.mycompany.com and vcenter2.mycompany.com. Within each host is…

---

## [vmware\_guest module network config for Redhat Linux version 9.X](https://forum.ansible.com/t/vmware-guest-module-network-config-for-redhat-linux-version-9-x/38792)

<div class="topic-metadata">

**Author:** [@Karthik](https://forum.ansible.com/u/Karthik)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 3:15pm UTC](https://forum.ansible.com/t/vmware-guest-module-network-config-for-redhat-linux-version-9-x/38792 "2024-05-22T15:15:24Z")

</div>

Hi, I am using vmware\_guest module to create a Redhat Linux 9.3 VM, so what happens is the VM is launched and is online, but the network configurations files are created under /etc/sysconfig/network-scripts/ which is th…

---

## [Use of register variable in following play(s)](https://forum.ansible.com/t/use-of-register-variable-in-following-play-s/38790)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 8:34pm UTC](https://forum.ansible.com/t/use-of-register-variable-in-following-play-s/38790 "2024-05-21T20:34:20Z")

</div>

Good day. I need to make changes in the know\_hosts files of users on various hosts. I’ll use a script to do the actual changes in known\_hosts. I have the following simple playbook, so far. It identifies users with known…

---

## [depending on extra variables call a template](https://forum.ansible.com/t/depending-on-extra-variables-call-a-template/38785)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 1:15am UTC](https://forum.ansible.com/t/depending-on-extra-variables-call-a-template/38785 "2024-05-21T01:15:44Z")

</div>

Hi experts, I m trying to add a feature to install db after installing vm. In my service catalog if I select Postgres db it is passing extra variable as Postgres to ansible platform. Using that variable how can a call a…

---

## [New Release: ansible-core v2.17.0](https://forum.ansible.com/t/new-release-ansible-core-v2-17-0/38789)

<div class="topic-metadata">

**Author:** [@ansible-announce](https://forum.ansible.com/u/ansible-announce)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 7:04pm UTC](https://forum.ansible.com/t/new-release-ansible-core-v2-17-0/38789 "2024-05-20T19:04:01Z")

</div>

ansible-core v2.17.0 View this release on: GitHub PyPI Changelog See the full changelog for the changes included in this release. Release Artifacts- Built Distribution: ansible\_core-2.17.0-py3-none-any.whl - ‍2191647…

---

## [New Release: ansible-core v2.16.7](https://forum.ansible.com/t/new-release-ansible-core-v2-16-7/38788)

<div class="topic-metadata">

**Author:** [@ansible-announce](https://forum.ansible.com/u/ansible-announce)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 7:02pm UTC](https://forum.ansible.com/t/new-release-ansible-core-v2-16-7/38788 "2024-05-20T19:02:58Z")

</div>

ansible-core v2.16.7 View this release on: GitHub PyPI Changelog See the full changelog for the changes included in this release. Release Artifacts- Built Distribution: ansible\_core-2.16.7-py3-none-any.whl - 2250690 …

---

## [New Release: ansible-core v2.15.12](https://forum.ansible.com/t/new-release-ansible-core-v2-15-12/38787)

<div class="topic-metadata">

**Author:** [@ansible-announce](https://forum.ansible.com/u/ansible-announce)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 7:01pm UTC](https://forum.ansible.com/t/new-release-ansible-core-v2-15-12/38787 "2024-05-20T19:01:56Z")

</div>

ansible-core v2.15.12 View this release on: GitHub PyPI Changelog See the full changelog for the changes included in this release. Release Artifacts- Built Distribution: ansible\_core-2.15.12-py3-none-any.whl - 225097…

---

## [New Release: ansible-core v2.14.17](https://forum.ansible.com/t/new-release-ansible-core-v2-14-17/38786)

<div class="topic-metadata">

**Author:** [@ansible-announce](https://forum.ansible.com/u/ansible-announce)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 6:31pm UTC](https://forum.ansible.com/t/new-release-ansible-core-v2-14-17/38786 "2024-05-20T18:31:28Z")

</div>

ansible-core v2.14.17 View this release on: GitHub PyPI Changelog See the full changelog for the changes included in this release. Release Artifacts- Built Distribution: ansible\_core-2.14.17-py3-none-any.whl - 221904…

---

## [wait\_for\_connection module waits more than timeout specified](https://forum.ansible.com/t/wait-for-connection-module-waits-more-than-timeout-specified/38774)

<div class="topic-metadata">

**Author:** [@Ismail\_Ett](https://forum.ansible.com/u/Ismail_Ett)\
**Replies:** 1\
**Last updated:** [May 14, 2024, 3:40pm UTC](https://forum.ansible.com/t/wait-for-connection-module-waits-more-than-timeout-specified/38774 "2024-05-14T15:40:13Z")

</div>

Hey everyone, I have multiple playbooks that runs on a schedule on lots of hosts, some are sometimes turned off for cost saving. Almost all jobs on AWX are marked as failed because there is at least 1 host that is powe…

---

## [become: true does not work but -b works](https://forum.ansible.com/t/become-true-does-not-work-but-b-works/38781)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 3\
**Last updated:** [May 14, 2024, 3:05pm UTC](https://forum.ansible.com/t/become-true-does-not-work-but-b-works/38781 "2024-05-14T15:05:14Z")

</div>

Hello team, I am running a role like below despite putting become true for install task i get error. However if run with -b it works. Getting error while running this , ansible-playbook prometheusjmxrole.yml -i …/inve…

---

## [become sudo not working for apt module](https://forum.ansible.com/t/become-sudo-not-working-for-apt-module/38780)

<div class="topic-metadata">

**Author:** [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Replies:** 3\
**Last updated:** [May 14, 2024, 2:44pm UTC](https://forum.ansible.com/t/become-sudo-not-working-for-apt-module/38780 "2024-05-14T14:44:23Z")

</div>

Hi I have a number of ubuntu servers that I want to update using ansible via AWX. my current test playbook :

---

## [AAP error: "template error while templating string: No module named 'ansible.module\_utils.compat.version'. String: {{ mountfact |  community.general.json\_query( query ) }}",](https://forum.ansible.com/t/aap-error-template-error-while-templating-string-no-module-named-ansible-module-utils-compat-version-string-mountfact-community-general-json-query-query/38783)

<div class="topic-metadata">

**Author:** [@G-train99](https://forum.ansible.com/u/G-train99)\
**Replies:** 0\
**Last updated:** [May 14, 2024, 1:54pm UTC](https://forum.ansible.com/t/aap-error-template-error-while-templating-string-no-module-named-ansible-module-utils-compat-version-string-mountfact-community-general-json-query-query/38783 "2024-05-14T13:54:06Z")

</div>

I’m not using ‘ansible.module\_utils.compat.version’. AAP is using that module, i guess. Underneath playbook works locally, not in AAP. The fact mountfact is a dict. I’ve also tried to add to\_json , from\_json, and both, …

---

## [Release announcement: Ansible community package 10.0.0a3 (Pre-Release)](https://forum.ansible.com/t/release-announcement-ansible-community-package-10-0-0a3-pre-release/38782)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [May 14, 2024, 1:40pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-10-0-0a3-pre-release/38782 "2024-05-14T13:40:23Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 10.0.0a3 package pre-release! Ansible 10.0.0a3 depends on ansible-core 2.17.0rc2 and includes a curated set of Ansible collections that provide a vast …

---

## [Possible to pass values back from an include\_tasks set of tasks to main playbook?](https://forum.ansible.com/t/possible-to-pass-values-back-from-an-include-tasks-set-of-tasks-to-main-playbook/38775)

<div class="topic-metadata">

**Author:** [@Sean\_Trimm](https://forum.ansible.com/u/Sean_Trimm)\
**Replies:** 1\
**Last updated:** [May 14, 2024, 11:12am UTC](https://forum.ansible.com/t/possible-to-pass-values-back-from-an-include-tasks-set-of-tasks-to-main-playbook/38775 "2024-05-14T11:12:29Z")

</div>

I would like to trim a large playbook down by looping through the tasks using include\_tasks in a parent playbook. However I need to be able to track the return code and stdout from those tasks in the parent playbook in o…

---

## [Ansible and aureport](https://forum.ansible.com/t/ansible-and-aureport/38773)

<div class="topic-metadata">

**Author:** [@John1](https://forum.ansible.com/u/John1)\
**Replies:** 3\
**Last updated:** [May 9, 2024, 9:17pm UTC](https://forum.ansible.com/t/ansible-and-aureport/38773 "2024-05-09T21:17:36Z")

</div>

I am running this in my task file (tried shell, command, and raw). Any idea why and how to work around the issue?: name: Check number of AVCs ansible.builtin.raw: “aureport | grep -i avc” register: avcreport debu…

---

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

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 10:56pm UTC](https://forum.ansible.com/t/ansible-loop-help/38771 "2024-05-08T22:56:13Z")

</div>

HI TEAM, below is my task to check the job completed status for the set of ips, and for an ip approximately taking 15 mins to get the status. if i am having 5 number of ips its taking too long to complete my task. so i…

---

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

<div class="topic-metadata">

**Author:** [@Sven\_Feyerabend](https://forum.ansible.com/u/Sven_Feyerabend)\
**Replies:** 3\
**Last updated:** [May 2, 2024, 1:45am UTC](https://forum.ansible.com/t/ansible-hangs-on-gathering-facts/38766 "2024-05-02T01:45:18Z")

</div>

Hi everyone, I have a host where Ansible used to run correctly. A while ago, all runs of Ansible on this host started to hang on Gathering Facts. I’ve searched on the internet for a solution, and found some tips on ho…

---

## [Use docker\_login and docker\_compose\_v2](https://forum.ansible.com/t/use-docker-login-and-docker-compose-v2/38769)

<div class="topic-metadata">

**Author:** [@Emilio\_Botero](https://forum.ansible.com/u/Emilio_Botero)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 6:42pm UTC](https://forum.ansible.com/t/use-docker-login-and-docker-compose-v2/38769 "2024-05-01T18:42:26Z")

</div>

Hi, I’m trying to authenticate to my private registry (AWS ECR) and use docker compose to start my container. I have something like this: name: Create AWS credentials file ansible.builtin.copy: dest: “{{ user\_detai…

---

## [Release announcement: Ansible community package 10.0.0a2 (Pre-Release)](https://forum.ansible.com/t/release-announcement-ansible-community-package-10-0-0a2-pre-release/38770)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [April 30, 2024, 8:14pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-10-0-0a2-pre-release/38770 "2024-04-30T20:14:15Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 10.0.0a2 package pre-release! Ansible 10.0.0a2 depends on ansible-core 2.17.0rc1 and includes a curated set of Ansible collections that provide a vast …

---

## [Getting error "Invalid operation" for VERSA SDWAN router in Ansible Automation](https://forum.ansible.com/t/getting-error-invalid-operation-for-versa-sdwan-router-in-ansible-automation/38767)

<div class="topic-metadata">

**Author:** [@vishal\_lad](https://forum.ansible.com/u/vishal_lad)\
**Replies:** 0\
**Last updated:** [April 29, 2024, 1:11pm UTC](https://forum.ansible.com/t/getting-error-invalid-operation-for-versa-sdwan-router-in-ansible-automation/38767 "2024-04-29T13:11:48Z")

</div>

I am facing issue while connecting to VERSA FLEXVNF router via SSH through Bastion host with LDAP user where are everything working file with local user. The main difference in the manual ssh login is that when I login …

---

## [Can't Use Standard become\_method As Have To Use rootsh. Options?](https://forum.ansible.com/t/cant-use-standard-become-method-as-have-to-use-rootsh-options/20822)

<div class="topic-metadata">

**Author:** [@Colin\_Anderson](https://forum.ansible.com/u/Colin_Anderson)\
**Replies:** 4\
**Last updated:** [April 26, 2024, 1:18pm UTC](https://forum.ansible.com/t/cant-use-standard-become-method-as-have-to-use-rootsh-options/20822 "2024-04-26T13:18:21Z")

</div>

Hi, The central IT function at my company allows developers root access to a server for a short period of time to allow us to install any required middelware and application software when we are commissioning a server. …

---

## [how to run play for subgroup when children has same name](https://forum.ansible.com/t/how-to-run-play-for-subgroup-when-children-has-same-name/38759)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 8:17pm UTC](https://forum.ansible.com/t/how-to-run-play-for-subgroup-when-children-has-same-name/38759 "2024-04-25T20:17:15Z")

</div>

I have an inventory something like this , each main cluster has children like broker. Now how do i run any tasks against perticular group.broker. When we pass the group with --limit it does not work it runs on all broke…

---

## [Unusal behaviour with set\_fact and add\_host](https://forum.ansible.com/t/unusal-behaviour-with-set-fact-and-add-host/38763)

<div class="topic-metadata">

**Author:** [@deewon](https://forum.ansible.com/u/deewon)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 7:30pm UTC](https://forum.ansible.com/t/unusal-behaviour-with-set-fact-and-add-host/38763 "2024-04-25T19:30:57Z")

</div>

ansible version: 2:11.2 jinja version: 3.0.3 python version: 3.6.8 Hello all I have a peculiar problem with a relatively simple playbook I have written. It basically checks 2 servers to determine which one has more t…

---

## [Getting hostnames from a fact](https://forum.ansible.com/t/getting-hostnames-from-a-fact/38765)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 6\
**Last updated:** [April 25, 2024, 2:10pm UTC](https://forum.ansible.com/t/getting-hostnames-from-a-fact/38765 "2024-04-25T14:10:18Z")

</div>

I have a playbook I’m developing where I’m trying to find any server that has a 0 length /var/log/messages files. When I find those, I want to restart the rsyslog service on those. So right now I’m setting this fact as f…

---

## [Release announcement: Ansible community package 9.5.1](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-5-1/38764)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 6:20am UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-5-1/38764 "2024-04-24T06:20:20Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 9.5.1 package! Ansible 9.5.1 depends on ansible-core 2.16.6 and includes a curated set of Ansible collections that provide a vast number of modules, p…

---

## [getting Asible.errors.AnsibleUndefinedVariable: 'broker' is undefined despite assigning in inventory file](https://forum.ansible.com/t/getting-asible-errors-ansibleundefinedvariable-broker-is-undefined-despite-assigning-in-inventory-file/38760)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 7:04pm UTC](https://forum.ansible.com/t/getting-asible-errors-ansibleundefinedvariable-broker-is-undefined-despite-assigning-in-inventory-file/38760 "2024-04-23T19:04:10Z")

</div>

Hello Team, I am putting broker: true and zookeeper: true in inventory file but i still getting below exception as its referred in j2 file An exception occurred during task execution. To see the full traceback, use -vv…

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

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