# Ansible Project

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

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

**Page:** 25

---

## [unreachable and retries](https://forum.ansible.com/t/unreachable-and-retries/37785)

<div class="topic-metadata">

**Author:** [@Francisco\_Palomares](https://forum.ansible.com/u/Francisco_Palomares)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 7:57pm UTC](https://forum.ansible.com/t/unreachable-and-retries/37785 "2023-03-20T19:57:47Z")

</div>

Hi Ansible Experts ! I am working in a playbook that executes a long running task (patching), that if the session gets disconnected half-way in the execution can cause serious damage in the target server. Using async m…

---

## [Ansible Molecule help](https://forum.ansible.com/t/ansible-molecule-help/37786)

<div class="topic-metadata">

**Author:** [@kyle\_jones](https://forum.ansible.com/u/kyle_jones)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 6:54pm UTC](https://forum.ansible.com/t/ansible-molecule-help/37786 "2023-03-20T18:54:04Z")

</div>

Hey folks, I have been attempting to configure a consistent Ansible Molecule stack, but I seem to never find up to date instructions and I have had issues with the using Molecule’s documentation (which probably issues o…

---

## [Vmware.Collection: vmware\_guest\_snapshot setting expiration](https://forum.ansible.com/t/vmware-collection-vmware-guest-snapshot-setting-expiration/37757)

<div class="topic-metadata">

**Author:** [@kyle\_jones](https://forum.ansible.com/u/kyle_jones)\
**Replies:** 6\
**Last updated:** [March 20, 2023, 6:49pm UTC](https://forum.ansible.com/t/vmware-collection-vmware-guest-snapshot-setting-expiration/37757 "2023-03-20T18:49:12Z")

</div>

Hello, Does anyone have any documentation or know what parameters to use when using vmware\_guest\_snapshot to take snapshot, but adding an expiration period? I looked over the ansible docs a few times and I did not see …

---

## [Not able to pass hostname as extra var from ansible tower](https://forum.ansible.com/t/not-able-to-pass-hostname-as-extra-var-from-ansible-tower/37780)

<div class="topic-metadata">

**Author:** [@Abhiroxxx](https://forum.ansible.com/u/Abhiroxxx)\
**Replies:** 5\
**Last updated:** [March 20, 2023, 12:58am UTC](https://forum.ansible.com/t/not-able-to-pass-hostname-as-extra-var-from-ansible-tower/37780 "2023-03-20T00:58:08Z")

</div>

Hi there, I want to pass hostname as extra variable from ansible tower to Playbook.how can i do this and how can i add this hostname to playbook? Regards, Abhi

---

## [ansible error](https://forum.ansible.com/t/ansible-error/37781)

<div class="topic-metadata">

**Author:** [@Ismayil\_Eyyublu](https://forum.ansible.com/u/Ismayil_Eyyublu)\
**Replies:** 2\
**Last updated:** [March 18, 2023, 9:02pm UTC](https://forum.ansible.com/t/ansible-error/37781 "2023-03-18T21:02:40Z")

</div>

Hi, there is some problem with ansible-playbook. I want to lock multiple laptops using i3lock.

---

## [Failed host list from 'rescue' task](https://forum.ansible.com/t/failed-host-list-from-rescue-task/37774)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 8\
**Last updated:** [March 17, 2023, 4:18pm UTC](https://forum.ansible.com/t/failed-host-list-from-rescue-task/37774 "2023-03-17T16:18:32Z")

</div>

Hello Everyone, Greetings! I am working to get failed hosts from ‘rescue’ section into a CSV file. When i run task for 'inventory\_hostname’ from ‘rescue’ section: rescue: name: inventory\_host name list debug debu…

---

## [How to use roles/../tests directory](https://forum.ansible.com/t/how-to-use-roles-tests-directory/37778)

<div class="topic-metadata">

**Author:** [@Ngoc\_Quan\_Pham](https://forum.ansible.com/u/Ngoc_Quan_Pham)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 2:49pm UTC](https://forum.ansible.com/t/how-to-use-roles-tests-directory/37778 "2023-03-17T14:49:40Z")

</div>

Hi everyone, As you know, the standard structure of a Ansible role has the directories /default, /handlers, /meta, /tasks, /templates, /vars and /tests. I have basic question of the directory /tests in Ansible roles, bu…

---

## [Disabling arguments\_spec logs](https://forum.ansible.com/t/disabling-arguments-spec-logs/37776)

<div class="topic-metadata">

**Author:** [@Nicolas\_Bouchard](https://forum.ansible.com/u/Nicolas_Bouchard)\
**Replies:** 2\
**Last updated:** [March 17, 2023, 12:53pm UTC](https://forum.ansible.com/t/disabling-arguments-spec-logs/37776 "2023-03-17T12:53:28Z")

</div>

Hi! I want to disable the “Validating arguments against arg spec…” from the logs because it cause a lot of noise. It prints even if some roles are skipped using tags. Couldn’t find how to achieve that, hope someone here…

---

## [Become sudo hangs on first sudo on OSX](https://forum.ansible.com/t/become-sudo-hangs-on-first-sudo-on-osx/37777)

<div class="topic-metadata">

**Author:** [@user120](https://forum.ansible.com/u/user120)\
**Replies:** 0\
**Last updated:** [March 17, 2023, 9:38am UTC](https://forum.ansible.com/t/become-sudo-hangs-on-first-sudo-on-osx/37777 "2023-03-17T09:38:09Z")

</div>

Hi, ansible community! I have encountered an issue where if sudo -i has not been executed in the current command line session before, the become:true portion in Ansible will get stuck. - hosts: localhost connection: lo…

---

## [printing the items on dictionary format](https://forum.ansible.com/t/printing-the-items-on-dictionary-format/37762)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 6:05pm UTC](https://forum.ansible.com/t/printing-the-items-on-dictionary-format/37762 "2023-03-16T18:05:40Z")

</div>

I have the items defined in the file vars/myvars.yml as below: world: asia: country: india state: maha city: mumbai n\_america: nation: canada province : quebec city: montreal When I try to print them with a loo…

---

## [Ansible Powershell Usage](https://forum.ansible.com/t/ansible-powershell-usage/37767)

<div class="topic-metadata">

**Author:** [@callmeshawn](https://forum.ansible.com/u/callmeshawn)\
**Replies:** 4\
**Last updated:** [March 15, 2023, 5:50pm UTC](https://forum.ansible.com/t/ansible-powershell-usage/37767 "2023-03-15T17:50:46Z")

</div>

I’m trying to use Powershell from Ansible. This is the code: name: Log into Azure ansible.windows.win\_powershell: script: | \[CmdletBinding()\] param ( \[String\] $TenantID, \[String\] $AccountID, \[SecureString\] $…

---

## [community.vmware.vmware\_host\_facts - vcenter username/pass](https://forum.ansible.com/t/community-vmware-vmware-host-facts-vcenter-username-pass/37766)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 8:07pm UTC](https://forum.ansible.com/t/community-vmware-vmware-host-facts-vcenter-username-pass/37766 "2023-03-14T20:07:17Z")

</div>

can i get help on how to put my vcenter credentials vcenter\_username vcenter\_password into a vault file and then run playbook using vault file. I dont want to put the info into the pb thanks

---

## [how to parse variable in patterns by find module](https://forum.ansible.com/t/how-to-parse-variable-in-patterns-by-find-module/37759)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 4\
**Last updated:** [March 14, 2023, 7:00am UTC](https://forum.ansible.com/t/how-to-parse-variable-in-patterns-by-find-module/37759 "2023-03-14T07:00:51Z")

</div>

Hi everyone, I’ve tried to using a variable in find module by pattern by it doesn’t seems to work. Here’s below a example. I also looked at another solution with set\_facts but I doesn’t run too. I want to list all the …

---

## ['dict object' has no attribute 'stdout'](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/37758)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 1\
**Last updated:** [March 13, 2023, 3:39pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/37758 "2023-03-13T15:39:46Z")

</div>

\- name: Save output to file ansible.builtin.copy: content: |- {{ '\\n'.join(output.stdout\_lines\[0:1\]) }} dest: "show-output/{{ inventory\_hostname }}.ios" when output.stdout\_lines is defined

---

## [install vmware tools via ansible playbook (winrm)](https://forum.ansible.com/t/install-vmware-tools-via-ansible-playbook-winrm/37754)

<div class="topic-metadata">

**Author:** [@Shay\_Cohen](https://forum.ansible.com/u/Shay_Cohen)\
**Replies:** 2\
**Last updated:** [March 11, 2023, 2:33am UTC](https://forum.ansible.com/t/install-vmware-tools-via-ansible-playbook-winrm/37754 "2023-03-11T02:33:54Z")

</div>

.I am trying to install a vmare tools on windows machine but noting happen I manage to copy the file but when I am trying to install I don’t see any error or installation running in the background.

---

## [Track list of failed/success tasks into a file.](https://forum.ansible.com/t/track-list-of-failed-success-tasks-into-a-file/37748)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 5\
**Last updated:** [March 10, 2023, 5:29pm UTC](https://forum.ansible.com/t/track-list-of-failed-success-tasks-into-a-file/37748 "2023-03-10T17:29:29Z")

</div>

Dear All, I have static inventory which contains more then 100 hosts/cluster. While running ansible playbook, there is a chance any of host/cluster got failed to execute the task due to some reason. We have to capture…

---

## [read password from a variable](https://forum.ansible.com/t/read-password-from-a-variable/37747)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 6\
**Last updated:** [March 10, 2023, 4:23pm UTC](https://forum.ansible.com/t/read-password-from-a-variable/37747 "2023-03-10T16:23:21Z")

</div>

While sourcing a profile file , I have to enter a password in my play. my\_pwd: hiddenpass - name: source the environment variable file shell: " source ./myenv" while executing i am prompted with a password so I am u…

---

## [lookup.ini plugin doesn't work](https://forum.ansible.com/t/lookup-ini-plugin-doesnt-work/37752)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 10\
**Last updated:** [March 10, 2023, 3:08pm UTC](https://forum.ansible.com/t/lookup-ini-plugin-doesnt-work/37752 "2023-03-10T15:08:55Z")

</div>

Hi Team, I have created one file where I have specify a variable: path: /opt/si/ansible/conf/virtual\_host transient\_partition\_size = 200G And then trying to print the variable by using lookup through another playbook…

---

## [JOB | Lead Linux Sysadmin (Edinburgh/London)](https://forum.ansible.com/t/job-lead-linux-sysadmin-edinburgh-london/37742)

<div class="topic-metadata">

**Author:** [@ghost\_advocate](https://forum.ansible.com/u/ghost_advocate)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 11:01am UTC](https://forum.ansible.com/t/job-lead-linux-sysadmin-edinburgh-london/37742 "2023-03-08T11:01:16Z")

</div>

Hello, I'm working with an employer that is looking to hire someone in (Edinburgh or London) that can administer on-prem and vmware platforms. Consequently, I had hoped that some members of this group may like to dis…

---

## [Ansible variable data to CSV file](https://forum.ansible.com/t/ansible-variable-data-to-csv-file/37735)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 12\
**Last updated:** [March 7, 2023, 6:08pm UTC](https://forum.ansible.com/t/ansible-variable-data-to-csv-file/37735 "2023-03-07T18:08:50Z")

</div>

Hi All, Could anyone please help for storing data into CSV file from variable with required structure ? Thank you I have csv variable data from other set\_fact as mentioned below “csv”: \[ “cluster1,virtual\_clu1,log\_vo…

---

## [help configuring aap centrify vault credential provider lookup](https://forum.ansible.com/t/help-configuring-aap-centrify-vault-credential-provider-lookup/37741)

<div class="topic-metadata">

**Author:** [@cary.c](https://forum.ansible.com/u/cary.c)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 5:41pm UTC](https://forum.ansible.com/t/help-configuring-aap-centrify-vault-credential-provider-lookup/37741 "2023-03-07T17:41:41Z")

</div>

I am attempting to run playbooks from aap that will checkout credentials from our Centrify solution. Has anyone gotten this working? My attempts to configure the centrify vault credential provider lookup fails the test c…

---

## [Based on Variable defined template should behave](https://forum.ansible.com/t/based-on-variable-defined-template-should-behave/37730)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 5\
**Last updated:** [March 7, 2023, 12:27pm UTC](https://forum.ansible.com/t/based-on-variable-defined-template-should-behave/37730 "2023-03-07T12:27:54Z")

</div>

Hello experts, Need one little suggestion on below … Below is my current code . name: set /etc/motd for abcd servers template: src: etc-motd.j1 dest: /etc/motd owner: root group: root mode: 0644 backup: yes w…

---

## [Could not install pfsense-core](https://forum.ansible.com/t/could-not-install-pfsense-core/37738)

<div class="topic-metadata">

**Author:** [@Ala\_Karmous](https://forum.ansible.com/u/Ala_Karmous)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 11:45am UTC](https://forum.ansible.com/t/could-not-install-pfsense-core/37738 "2023-03-07T11:45:33Z")

</div>

there is the error when i try to install pfsense-core, maybe the ‘pfsense-core’ module is no longer available via ‘pip’. if someone knows how to fix it please let me know.

---

## [Issue with yaml in jinja2](https://forum.ansible.com/t/issue-with-yaml-in-jinja2/37734)

<div class="topic-metadata">

**Author:** [@Guido](https://forum.ansible.com/u/Guido)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 7:21pm UTC](https://forum.ansible.com/t/issue-with-yaml-in-jinja2/37734 "2023-03-06T19:21:45Z")

</div>

Hi Ansible community., I’d like to share a problem I’m having while trying lo load a yaml formatted template and perhaps getting feedback from you on how to make it work. I wrote the following playbook: https://gist.gi…

---

## [Fetching varialble data into loops iterate/repeat](https://forum.ansible.com/t/fetching-varialble-data-into-loops-iterate-repeat/37728)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 12\
**Last updated:** [March 6, 2023, 7:06pm UTC](https://forum.ansible.com/t/fetching-varialble-data-into-loops-iterate-repeat/37728 "2023-03-06T19:06:57Z")

</div>

Hi Team, Greetings for the day! I have a variables called ‘aggregates’ under vars which ontaints cluster1,cluster3,cluster2…etc and aggr1,aggr2,aggr3…etc list as mentioned below. { “aggregates”: \[ \[ “Cluster1”, “a…

---

## [Anyone have ansible pacemaker patch](https://forum.ansible.com/t/anyone-have-ansible-pacemaker-patch/37733)

<div class="topic-metadata">

**Author:** [@Vijay\_atluri](https://forum.ansible.com/u/Vijay_atluri)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 4:56pm UTC](https://forum.ansible.com/t/anyone-have-ansible-pacemaker-patch/37733 "2023-03-06T16:56:17Z")

</div>

Anisble pacemaker to stop inactive mode and do patch after that move the resorces to inactive mode and do another server

---

## [How to use version compare test in selectattr?](https://forum.ansible.com/t/how-to-use-version-compare-test-in-selectattr/37732)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 3:39pm UTC](https://forum.ansible.com/t/how-to-use-version-compare-test-in-selectattr/37732 "2023-03-06T15:39:51Z")

</div>

Hi I'm trying to use version compare in selectattr but get error message "Version comparison failed: '\<' not supported between instances of 'int' and 'str' This is the playboot I'm using - hosts: localhost gather\_…

---

## [Template Module with\_nested ?](https://forum.ansible.com/t/template-module-with-nested/37729)

<div class="topic-metadata">

**Author:** [@Endure\_Kona](https://forum.ansible.com/u/Endure_Kona)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 2:30am UTC](https://forum.ansible.com/t/template-module-with-nested/37729 "2023-03-06T02:30:30Z")

</div>

I have no clue why the template module fails and the shell works with the nested items. I don’t have ‘ORA\_SID’ any place but it keeps saying its ansible.errors.AnsibleUndefinedVariable, any ideas on this one would be wel…

---

## [Bazel definitions for Ansible roles, Molecule tests, etc](https://forum.ansible.com/t/bazel-definitions-for-ansible-roles-molecule-tests-etc/37726)

<div class="topic-metadata">

**Author:** [@CB1](https://forum.ansible.com/u/CB1)\
**Replies:** 0\
**Last updated:** [March 4, 2023, 12:05am UTC](https://forum.ansible.com/t/bazel-definitions-for-ansible-roles-molecule-tests-etc/37726 "2023-03-04T00:05:05Z")

</div>

Hi, Has anyone written Bazel definitions for Ansible roles, Molecule tests, and such? I would like within our Bazel framework to be able to run a molecule test by doing something along the lines of this: bazel test //…

---

## [How to call registered variable data in loops?](https://forum.ansible.com/t/how-to-call-registered-variable-data-in-loops/37723)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 10:02pm UTC](https://forum.ansible.com/t/how-to-call-registered-variable-data-in-loops/37723 "2023-03-03T22:02:09Z")

</div>

Hi Team, Could anyone please help on below query? Thank you. I have 2 registered variables data as example below. How to call those data over the loop? Vars: Cluster\_data: \[‘cluster1’,‘cluster2’\] Aggr\_data: \[‘aggr1’…

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

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