# Ansible Project

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

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

**Page:** 5

---

## [hostvars vs lookup(vars)](https://forum.ansible.com/t/hostvars-vs-lookup-vars/38723)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 4:07pm UTC](https://forum.ansible.com/t/hostvars-vs-lookup-vars/38723 "2024-03-25T16:07:49Z")

</div>

This question is targeted at Matt Martz and Brian Coca (but anyone should feel free to jump in). I recently asked a question about how to access a variable in a task. Matt, you recommended hostvars\[inventory\_hostname\]\[it…

---

## [what is the default for DEFAULT\_GATHER\_TIMEOUT?](https://forum.ansible.com/t/what-is-the-default-for-default-gather-timeout/38727)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 3:51pm UTC](https://forum.ansible.com/t/what-is-the-default-for-default-gather-timeout/38727 "2024-03-25T15:51:59Z")

</div>

Hii While upgrading ansible we run into a deprecation warning: \[DEPRECATION WARNING\]: DEFAULT\_GATHER\_TIMEOUT option, the module\_defaults keyword is a more generic version and can apply to all calls to the M(ansible.b…

---

## [running handlers](https://forum.ansible.com/t/running-handlers/38726)

<div class="topic-metadata">

**Author:** [@mdidomenico](https://forum.ansible.com/u/mdidomenico)\
**Replies:** 3\
**Last updated:** [March 23, 2024, 8:50pm UTC](https://forum.ansible.com/t/running-handlers/38726 "2024-03-23T20:50:54Z")

</div>

i’m trying to copy a bunch of ssl ca certs into a directory. this works file with the copy module and if it sees a new one it runs a handler to rehash all the certs in the directory to create \*.0 symlinks to each of the …

---

## [referring file from different repo](https://forum.ansible.com/t/referring-file-from-different-repo/38725)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 2\
**Last updated:** [March 23, 2024, 6:17pm UTC](https://forum.ansible.com/t/referring-file-from-different-repo/38725 "2024-03-23T18:17:46Z")

</div>

Hello guys, below is my playbook, actually i have csv file called subnetsheet in my git repo where i have kept my playbook, in my first task i am reading my yaml file and then based on the value “location\_network” i am …

---

## [Getting past "non-zero return code"](https://forum.ansible.com/t/getting-past-non-zero-return-code/38724)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 9\
**Last updated:** [March 21, 2024, 6:52pm UTC](https://forum.ansible.com/t/getting-past-non-zero-return-code/38724 "2024-03-21T18:52:06Z")

</div>

Good day. I want tp parse root’s history to return the last occurrence of yum update that includes the string “disablerepo”. I would have thought that this would work:

---

## [interpolation of loop variables](https://forum.ansible.com/t/interpolation-of-loop-variables/38715)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 11\
**Last updated:** [March 19, 2024, 11:05am UTC](https://forum.ansible.com/t/interpolation-of-loop-variables/38715 "2024-03-19T11:05:23Z")

</div>

Hi all - I recently upgraded to Ansible core 2.15, and started hitting “Conditional is marked as unsafe, and cannot be evaluated.” As discussed at https://docs.ansible.com/ansible/latest/porting\_guides/porting\_guide\_9.ht…

---

## [hostname in chroot](https://forum.ansible.com/t/hostname-in-chroot/38716)

<div class="topic-metadata">

**Author:** [@mdidomenico](https://forum.ansible.com/u/mdidomenico)\
**Replies:** 1\
**Last updated:** [March 15, 2024, 1:29pm UTC](https://forum.ansible.com/t/hostname-in-chroot/38716 "2024-03-15T13:29:26Z")

</div>

i have a series of playbooks that use ansible\_hostname to determine whether tasks should run. on a host these work fine as one would expect, but when running ansible inside a chroot environment with /proc,sys,dev mounted…

---

## [need help on awx.awx](https://forum.ansible.com/t/need-help-on-awx-awx/38718)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 9:09am UTC](https://forum.ansible.com/t/need-help-on-awx-awx/38718 "2024-03-15T09:09:26Z")

</div>

hi all, below is my playbook and even i installed collection but i am facing the error can anyone guide me name: Add host host: controller\_host: “{{ awx\_url }}” controller\_password: “{{ username }}” controller\_user…

---

## [ansible fails to use renewed ssh certificates with ansible\_ssh\_executable is used](https://forum.ansible.com/t/ansible-fails-to-use-renewed-ssh-certificates-with-ansible-ssh-executable-is-used/38714)

<div class="topic-metadata">

**Author:** [@Harshavardhan\_Musana](https://forum.ansible.com/u/Harshavardhan_Musana)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 11:26am UTC](https://forum.ansible.com/t/ansible-fails-to-use-renewed-ssh-certificates-with-ansible-ssh-executable-is-used/38714 "2024-03-14T11:26:41Z")

</div>

Hello, Reposting from https://github.com/ansible/ansible/issues/82808. We use timebound ssh certificates to connect to target virtual machines. The expiry time is set to 65 minutes. We have written a custom ansible\_ssh…

---

## [Is there any  Ansible module to Encrypt a log file during the play book execution](https://forum.ansible.com/t/is-there-any-ansible-module-to-encrypt-a-log-file-during-the-play-book-execution/38712)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 6:39am UTC](https://forum.ansible.com/t/is-there-any-ansible-module-to-encrypt-a-log-file-during-the-play-book-execution/38712 "2024-03-14T06:39:44Z")

</div>

Hi All, I need recommendation to use encryption and decryption of generated log files during the playbook execution . I was going through ansible documentation and I don’t see any module except use of ansible-vault . I …

---

## [Failed to create stack lambda-layer-test5: An error occurred (ValidationError) when calling the CreateStack operation: ParameterValue for ParameterKey Content is required](https://forum.ansible.com/t/failed-to-create-stack-lambda-layer-test5-an-error-occurred-validationerror-when-calling-the-createstack-operation-parametervalue-for-parameterkey-content-is-required/38713)

<div class="topic-metadata">

**Author:** [@kegmysta.dev](https://forum.ansible.com/u/kegmysta.dev)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:59pm UTC](https://forum.ansible.com/t/failed-to-create-stack-lambda-layer-test5-an-error-occurred-validationerror-when-calling-the-createstack-operation-parametervalue-for-parameterkey-content-is-required/38713 "2024-03-12T18:59:02Z")

</div>

name: Deploy CloudFormation Stack cloudformation: stack\_name: “{{ stack\_name }}” state: present region: “{{ region }}” template: “{{ template }}” template\_parameters: LayerName: “{{ item.1 }}” Runtime: “{{ item.…

---

## [Ansible-builder help](https://forum.ansible.com/t/ansible-builder-help/38697)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 5:57am UTC](https://forum.ansible.com/t/ansible-builder-help/38697 "2024-03-12T05:57:34Z")

</div>

Hi all, I am trying to build an execution environment for my AWX. I am facing the below error in my CentOS 7. Can any one help me in this regard? my versions i have installed ansible-builder when i tried to bu…

---

## [\[WARNING\]: No python interpreters found for host](https://forum.ansible.com/t/warning-no-python-interpreters-found-for-host/38711)

<div class="topic-metadata">

**Author:** [@Chris\_Bachmeyer](https://forum.ansible.com/u/Chris_Bachmeyer)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 3:53pm UTC](https://forum.ansible.com/t/warning-no-python-interpreters-found-for-host/38711 "2024-03-08T15:53:46Z")

</div>

Hey all, I set up a deployment pipeline using GitHub actions and am experiencing an issue with Ansible seemingly not being able to find the python interpreter. The step in the job is as follows. I set the interpreter\_p…

---

## [Event Driven Ansible and target hosts in rulebooks](https://forum.ansible.com/t/event-driven-ansible-and-target-hosts-in-rulebooks/38706)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 12:01pm UTC](https://forum.ansible.com/t/event-driven-ansible-and-target-hosts-in-rulebooks/38706 "2024-03-08T12:01:34Z")

</div>

Hi, I want to write a rulebook that triggers a playbook run on some specific event. Basically I want to configure an interface of a router. My event passes all the interface data in the event.payload.data. The core par…

---

## [Loop over an array and assigning to url within uri module](https://forum.ansible.com/t/loop-over-an-array-and-assigning-to-url-within-uri-module/38710)

<div class="topic-metadata">

**Author:** [@Mohammed\_Reehan](https://forum.ansible.com/u/Mohammed_Reehan)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 12:35am UTC](https://forum.ansible.com/t/loop-over-an-array-and-assigning-to-url-within-uri-module/38710 "2024-03-08T00:35:58Z")

</div>

Hi Team i have an array from my previous playbook and saving it as a fact called as “ansible\_facts”{ “response\_cloud\_id”: \[ “34eedfc”, “6733fdc” \] }, I want to use this response\_cloud\_id for each object as a vari…

---

## [Ternary or when in ansible](https://forum.ansible.com/t/ternary-or-when-in-ansible/38707)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 11:38pm UTC](https://forum.ansible.com/t/ternary-or-when-in-ansible/38707 "2024-03-07T23:38:30Z")

</div>

Hi Ansible experts I am confused which one to use I want to subscribe US servers default but if the server is in UK I want to subscription should Point to UK capsule server… If IS\_UK= TRUE Subscription-manager then …

---

## [Connection timed out](https://forum.ansible.com/t/connection-timed-out/38709)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 8:42pm UTC](https://forum.ansible.com/t/connection-timed-out/38709 "2024-03-07T20:42:48Z")

</div>

hi team, i am facing below issue intermittently even i specify IP address in the inventory list and mentioned in LImit section of my AWX template i can’t understand why its giving error with DNS name even i mention ip …

---

## [Set variable based on a file's string search](https://forum.ansible.com/t/set-variable-based-on-a-files-string-search/38708)

<div class="topic-metadata">

**Author:** [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Replies:** 6\
**Last updated:** [March 7, 2024, 6:56pm UTC](https://forum.ansible.com/t/set-variable-based-on-a-files-string-search/38708 "2024-03-07T18:56:37Z")

</div>

Hello, (And apologies if this is something too trivial…) I have a working playbook that searches and collects a string from a file and, based on that string, sets another variable. But I’m retrieving the string using …

---

## [Parsing a local file to get variables](https://forum.ansible.com/t/parsing-a-local-file-to-get-variables/38705)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 4\
**Last updated:** [March 6, 2024, 10:31pm UTC](https://forum.ansible.com/t/parsing-a-local-file-to-get-variables/38705 "2024-03-06T22:31:35Z")

</div>

Good morning. Here’s a bit of a challenge. I’m working on a playbook to get certs from letsencrypt, then put those into zone files. Rather than use the Ansible letsencrypt module, we’ve written a Perl script to get the c…

---

## [Getting complete package update information](https://forum.ansible.com/t/getting-complete-package-update-information/38702)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 4\
**Last updated:** [March 6, 2024, 1:43pm UTC](https://forum.ansible.com/t/getting-complete-package-update-information/38702 "2024-03-06T13:43:40Z")

</div>

The following playbook gets packages available for update, returning package name and version:

---

## [jinja2\_native behavior](https://forum.ansible.com/t/jinja2-native-behavior/38704)

<div class="topic-metadata">

**Author:** [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 6:16pm UTC](https://forum.ansible.com/t/jinja2-native-behavior/38704 "2024-03-04T18:16:29Z")

</div>

Is this expected behavior? % ANSIBLE\_JINJA2\_NATIVE=true ansible -i localhost, localhost -m debug -a var=this -e “this=‘None’” localhost | SUCCESS =\> { “this”: null } % ANSIBLE\_JINJA2\_NATIVE=false ansible -i localhos…

---

## [ansible question](https://forum.ansible.com/t/ansible-question/38703)

<div class="topic-metadata">

**Author:** [@Christoph\_Christ](https://forum.ansible.com/u/Christoph_Christ)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 11:01am UTC](https://forum.ansible.com/t/ansible-question/38703 "2024-03-04T11:01:57Z")

</div>

Hi all, i have to implement an ansible task. where the action is, to reload the dconf for Gnome. It is telling me: the requested handler “reload dconf” was not found in either the main handlers list nor in the listenin…

---

## [Windows: CS1504 Failed to compile C# code](https://forum.ansible.com/t/windows-cs1504-failed-to-compile-c-code/38690)

<div class="topic-metadata">

**Author:** [@Alexander\_Schomburg](https://forum.ansible.com/u/Alexander_Schomburg)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 12:21am UTC](https://forum.ansible.com/t/windows-cs1504-failed-to-compile-c-code/38690 "2024-02-28T00:21:24Z")

</div>

Dear Ansible community, Initially, I wanted to reply to this old conversation: https://groups.google.com/g/ansible-project/c/UVyj6hxgDAA/m/W7VjjynPGwAJ As it has been closed for a few years, I can’t directly answer to …

---

## [Release announcement: Ansible community package 9.3.0](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-3-0/38701)

<div class="topic-metadata">

**Author:** [@gotmax23](https://forum.ansible.com/u/gotmax23)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 6:25pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-3-0/38701 "2024-02-27T18:25:15Z")

</div>

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

---

## [/tmp issue](https://forum.ansible.com/t/tmp-issue/37046)

<div class="topic-metadata">

**Author:** [@Dhirender\_Yadav](https://forum.ansible.com/u/Dhirender_Yadav)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 10:54am UTC](https://forum.ansible.com/t/tmp-issue/37046 "2024-02-27T10:54:31Z")

</div>

Hi All, We are getting the floating issue in ansible. Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing t…

---

## [docker\_purge with several labels in filter](https://forum.ansible.com/t/docker-purge-with-several-labels-in-filter/38700)

<div class="topic-metadata">

**Author:** [@bigfootspi](https://forum.ansible.com/u/bigfootspi)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:19am UTC](https://forum.ansible.com/t/docker-purge-with-several-labels-in-filter/38700 "2024-02-27T09:19:14Z")

</div>

Hello everybody. I am trying to launch a container purge command by filtering on several labels in my container. my command does not work. filters seem poorly formatted Have you an idea ? docker\_prune: containers: …

---

## [Issue with selectattr](https://forum.ansible.com/t/issue-with-selectattr/38698)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 13\
**Last updated:** [February 26, 2024, 8:54pm UTC](https://forum.ansible.com/t/issue-with-selectattr/38698 "2024-02-26T20:54:44Z")

</div>

I am trying to determine when user’s password’s are going to expire in the next 10 days. After I traverse my FreeIPA users and store those users into a variable, I try to set a fact like so: name: Find users who’s pass…

---

## [Use Ansible to replace \*.desktop files by custom versions ?](https://forum.ansible.com/t/use-ansible-to-replace-desktop-files-by-custom-versions/38699)

<div class="topic-metadata">

**Author:** [@microlinux](https://forum.ansible.com/u/microlinux)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 5:29pm UTC](https://forum.ansible.com/t/use-ansible-to-replace-desktop-files-by-custom-versions/38699 "2024-02-26T17:29:32Z")

</div>

Hi, Up until recently I’ve been using a bone-headed setup.sh shell script to setup my desktop clients based on Rocky Linux 8 and a heavily customized KDE desktop: \* https://gitlab.com/kikinovak/rocky-8-desktop I’ve be…

---

## [Rhel 7-\> 8 upgrade](https://forum.ansible.com/t/rhel-7-8-upgrade/38696)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 5\
**Last updated:** [February 25, 2024, 3:28pm UTC](https://forum.ansible.com/t/rhel-7-8-upgrade/38696 "2024-02-25T15:28:01Z")

</div>

Hello all, Upgrading from Rhel7-\> 8 using ansible. In the pre upgrade task I performed few checks like space check and yum update and subscription-manager registration. No issues in the beginning tasks… But when perfor…

---

## [trigger --ask-become-pass with playbook variable?](https://forum.ansible.com/t/trigger-ask-become-pass-with-playbook-variable/38694)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 6\
**Last updated:** [February 23, 2024, 9:31am UTC](https://forum.ansible.com/t/trigger-ask-become-pass-with-playbook-variable/38694 "2024-02-23T09:31:56Z")

</div>

Hii, I would like to have a playbook trigger the asking of the become password, but I couldn’t find how to do it. Is there perhaps some variable that can be set in a playbook (or play) to do this? I was thinking of som…

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

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