# Ansible Project

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

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

**Page:** 35

---

## [Avoid writing same condition to call role or playbook](https://forum.ansible.com/t/avoid-writing-same-condition-to-call-role-or-playbook/37208)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 11:49am UTC](https://forum.ansible.com/t/avoid-writing-same-condition-to-call-role-or-playbook/37208 "2022-10-12T11:49:15Z")

</div>

Hi Team, I have started working on Ansible from last 2-3 months only, so not able to remember all module by heart. I did setup one env variable (result) and then based on that value I am trying to call the role and play…

---

## [Override Ansible Prompt Statement (used with pause module in playbook) during automation](https://forum.ansible.com/t/override-ansible-prompt-statement-used-with-pause-module-in-playbook-during-automation/37201)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 3\
**Last updated:** [October 12, 2022, 3:55am UTC](https://forum.ansible.com/t/override-ansible-prompt-statement-used-with-pause-module-in-playbook-during-automation/37201 "2022-10-12T03:55:46Z")

</div>

Hi Team, I have written one playbook which is calling prompt statement (through pause module) and based on prompt response, it is calling the role. Please find the written playbook below: - hosts: primary-metal-console…

---

## [Can I Upload SSH Keys to Azure Keyvault using azcollection?](https://forum.ansible.com/t/can-i-upload-ssh-keys-to-azure-keyvault-using-azcollection/37203)

<div class="topic-metadata">

**Author:** [@Alex\_Walker](https://forum.ansible.com/u/Alex_Walker)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 10:24pm UTC](https://forum.ansible.com/t/can-i-upload-ssh-keys-to-azure-keyvault-using-azcollection/37203 "2022-10-11T22:24:44Z")

</div>

HI I’m writing an Ansible script to perform key rotation across my company’s Linux estate. We use Azure as a cloud platform and I’m looking to store a backup copy of the public and private keys in Azure Keyvault. The …

---

## [Looking for alternative to set\_fact + loop](https://forum.ansible.com/t/looking-for-alternative-to-set-fact-loop/37204)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 8:07pm UTC](https://forum.ansible.com/t/looking-for-alternative-to-set-fact-loop/37204 "2022-10-11T20:07:48Z")

</div>

Hi I have a recurring challenge in our deployment, whereby we have a list structure that is defaulted to a single (dict) item. The challenge is that I would like to extend that in a way so that additional items use t…

---

## [where to put custom lookup plugin](https://forum.ansible.com/t/where-to-put-custom-lookup-plugin/37205)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 7\
**Last updated:** [October 11, 2022, 4:50pm UTC](https://forum.ansible.com/t/where-to-put-custom-lookup-plugin/37205 "2022-10-11T16:50:10Z")

</div>

Hello guys, As a part of my project, I’ve written a lookup module and put it into lookup\_plugins directory in the root of it: project/lookup\_plugins/mylookup i am calling this module as: name: test debug: msg: “th…

---

## [New releases: ansible-core 2.13.5, ansible-core 2.12.10](https://forum.ansible.com/t/new-releases-ansible-core-2-13-5-ansible-core-2-12-10/37206)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 3:39pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-13-5-ansible-core-2-12-10/37206 "2022-10-11T15:39:38Z")

</div>

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

---

## [Specifying collections required by required roles](https://forum.ansible.com/t/specifying-collections-required-by-required-roles/37199)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 5\
**Last updated:** [October 11, 2022, 11:34am UTC](https://forum.ansible.com/t/specifying-collections-required-by-required-roles/37199 "2022-10-11T11:34:04Z")

</div>

We have a handful of “common” roles that are used by many of our Ansible projects. These projects list their required roles in their respective roles/requirements.yml files. Nothing surprising here; it’s worked this way …

---

## [Need to take SQL DB BACKUP using Yaml pipeline](https://forum.ansible.com/t/need-to-take-sql-db-backup-using-yaml-pipeline/37198)

<div class="topic-metadata">

**Author:** [@Kasi\_sunkara](https://forum.ansible.com/u/Kasi_sunkara)\
**Replies:** 5\
**Last updated:** [October 11, 2022, 11:17am UTC](https://forum.ansible.com/t/need-to-take-sql-db-backup-using-yaml-pipeline/37198 "2022-10-11T11:17:45Z")

</div>

Hi Team, I am trying to create pipeline using Ansible for taking backup for SQL db backup for a particular db ,database was already existed.Need your help in this regard for script to run the pipeline Regards Kasi sun…

---

## [couldn't resolve module/action 'datadog\_checks'](https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200)

<div class="topic-metadata">

**Author:** [@Clif\_Smith](https://forum.ansible.com/u/Clif_Smith)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 1:47am UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200 "2022-10-11T01:47:58Z")

</div>

I’m new to Ansible and am trying to use data from querying a postgres DB to write out a Datadog agent config. I’ve figured out 1) how to retrieve the data from postgres and 2) write out a single static node’s agent confi…

---

## [executing community.windows integration tests?](https://forum.ansible.com/t/executing-community-windows-integration-tests/37194)

<div class="topic-metadata">

**Author:** [@Yorai\_Levi](https://forum.ansible.com/u/Yorai_Levi)\
**Replies:** 1\
**Last updated:** [October 9, 2022, 7:29pm UTC](https://forum.ansible.com/t/executing-community-windows-integration-tests/37194 "2022-10-09T19:29:35Z")

</div>

Hi I am trying to execute community.windows integration tests, specifically win\_regmerge’s I cloned the repo: https://github.com/ansible-collections/community.windows and ran, ansible-test windows-integration --inven…

---

## [combine registered var](https://forum.ansible.com/t/combine-registered-var/37196)

<div class="topic-metadata">

**Author:** [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Replies:** 0\
**Last updated:** [October 9, 2022, 6:33pm UTC](https://forum.ansible.com/t/combine-registered-var/37196 "2022-10-09T18:33:54Z")

</div>

I use ansible with win\_updates to install windows update. To get all updates installed I do multiple loops with a reboot in it I do set the contents in a register. But a reboot overwrites the register How can I the r…

---

## [Hyper-V - manage VM by ansible](https://forum.ansible.com/t/hyper-v-manage-vm-by-ansible/37195)

<div class="topic-metadata">

**Author:** [@Marek\_Kos](https://forum.ansible.com/u/Marek_Kos)\
**Replies:** 0\
**Last updated:** [October 9, 2022, 5:45pm UTC](https://forum.ansible.com/t/hyper-v-manage-vm-by-ansible/37195 "2022-10-09T17:45:49Z")

</div>

How to manage Hyper-V machines through ansible? Machines are in a cluster. I have SCVMM I would like to create a checkpoint, update the machine, delete a checkpoint

---

## [delegated facts quit working](https://forum.ansible.com/t/delegated-facts-quit-working/37191)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 4\
**Last updated:** [October 8, 2022, 5:54pm UTC](https://forum.ansible.com/t/delegated-facts-quit-working/37191 "2022-10-08T17:54:48Z")

</div>

Bit of a mystery. We’ve been using the following task for quite some time. Note that it uses a technique documented in https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_delegation.html#delegating-facts - …

---

## [Offline Execution Environment Setup and Usage](https://forum.ansible.com/t/offline-execution-environment-setup-and-usage/37192)

<div class="topic-metadata">

**Author:** [@Syahrul\_Aiman\_Shahar](https://forum.ansible.com/u/Syahrul_Aiman_Shahar)\
**Replies:** 2\
**Last updated:** [October 8, 2022, 3:43am UTC](https://forum.ansible.com/t/offline-execution-environment-setup-and-usage/37192 "2022-10-08T03:43:50Z")

</div>

Hi guys, I’ve created my Execution Environment (EE) on a machine with internet access (online). Now, I would like to use this EE on an offline (no internet access) AWX. What should I do? Do I have to temporarily give …

---

## [best practice temporary files](https://forum.ansible.com/t/best-practice-temporary-files/37189)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [October 7, 2022, 5:40pm UTC](https://forum.ansible.com/t/best-practice-temporary-files/37189 "2022-10-07T17:40:05Z")

</div>

we have trouble at times to access a git repository with config files directly from an ansible host. As workaround we get\_url the file to the ansible controler (delegate\_to: localhost) and then copy it to the remote tar…

---

## [ansible-navigator : Error with awx\_display](https://forum.ansible.com/t/ansible-navigator-error-with-awx-display/37175)

<div class="topic-metadata">

**Author:** [@JS\_G](https://forum.ansible.com/u/JS_G)\
**Replies:** 5\
**Last updated:** [October 7, 2022, 7:43am UTC](https://forum.ansible.com/t/ansible-navigator-error-with-awx-display/37175 "2022-10-07T07:43:08Z")

</div>

Hello, I’m a newbi on ansible-navigator. I try to use it, for playbooks developement on VMs before put my playbooks on AWX. I configured ansible-navigator to use awx-ee image with podman. When I launch my playbook by…

---

## [Loop through variables in file](https://forum.ansible.com/t/loop-through-variables-in-file/37185)

<div class="topic-metadata">

**Author:** [@Alessandro\_Sepiacci](https://forum.ansible.com/u/Alessandro_Sepiacci)\
**Replies:** 1\
**Last updated:** [October 6, 2022, 4:44pm UTC](https://forum.ansible.com/t/loop-through-variables-in-file/37185 "2022-10-06T16:44:49Z")

</div>

Hi, I know how to loop through a variable list inside the playbook but how can I loop through a variable list included in a file? Thanks. Alessandro

---

## [Any one got a good callback plugin tutorial/documentation](https://forum.ansible.com/t/any-one-got-a-good-callback-plugin-tutorial-documentation/37184)

<div class="topic-metadata">

**Author:** [@Stefan\_Coussens](https://forum.ansible.com/u/Stefan_Coussens)\
**Replies:** 6\
**Last updated:** [October 6, 2022, 3:36pm UTC](https://forum.ansible.com/t/any-one-got-a-good-callback-plugin-tutorial-documentation/37184 "2022-10-06T15:36:14Z")

</div>

Hi, I am trying to write a callback plugin. It is working quite well when all tasks succeed. However when a playbook has a failed task I get: v2\_runner\_on\_failed() got an unexpected keyword argument ‘ignore\_errors’ C…

---

## [Encrypting credentials within the vmware inventory file](https://forum.ansible.com/t/encrypting-credentials-within-the-vmware-inventory-file/37182)

<div class="topic-metadata">

**Author:** [@Tyderian](https://forum.ansible.com/u/Tyderian)\
**Replies:** 0\
**Last updated:** [October 6, 2022, 4:43am UTC](https://forum.ansible.com/t/encrypting-credentials-within-the-vmware-inventory-file/37182 "2022-10-06T04:43:52Z")

</div>

Hi everyone, first time post here! I’ve setup the VMware inventory plugin for Ansible, and have had success in retrieving inventory results both with plaintext credentials in the .vmware.yml file and with the file fully…

---

## [How to add a documentation fragment of return values?](https://forum.ansible.com/t/how-to-add-a-documentation-fragment-of-return-values/37177)

<div class="topic-metadata">

**Author:** [@Yorai\_Levi](https://forum.ansible.com/u/Yorai_Levi)\
**Replies:** 3\
**Last updated:** [October 4, 2022, 7:21pm UTC](https://forum.ansible.com/t/how-to-add-a-documentation-fragment-of-return-values/37177 "2022-10-04T19:21:44Z")

</div>

Hi, I am trying to understand how to document, specifically documentation fragments. following the examples from the documentation everything works, I am able to insert fragments that merge into DOCUMENTATION But I ca…

---

## [vmware\_vm\_inventory and workflow templates](https://forum.ansible.com/t/vmware-vm-inventory-and-workflow-templates/37174)

<div class="topic-metadata">

**Author:** [@Chris\_Bachmeyer](https://forum.ansible.com/u/Chris_Bachmeyer)\
**Replies:** 3\
**Last updated:** [October 4, 2022, 5:24pm UTC](https://forum.ansible.com/t/vmware-vm-inventory-and-workflow-templates/37174 "2022-10-04T17:24:50Z")

</div>

Hi Ansible group, I am working on constructing a workflow Template using Ansible Tower 3.8.3 with Ansible ver. 2.9.27. The workflow Template consists of just two job Templates, each one with code residing in separate re…

---

## [looking for an ansible playbook](https://forum.ansible.com/t/looking-for-an-ansible-playbook/37176)

<div class="topic-metadata">

**Author:** [@Tunji\_Jolaosho](https://forum.ansible.com/u/Tunji_Jolaosho)\
**Replies:** 1\
**Last updated:** [October 4, 2022, 4:06pm UTC](https://forum.ansible.com/t/looking-for-an-ansible-playbook/37176 "2022-10-04T16:06:10Z")

</div>

Good day I am a newbie here and am trying to write my first ansible playbook to push our group server to all windows servers in GCPany help will be appreciated. Thanks

---

## [runner\_on\_ok vs v2\_runner\_on\_ok](https://forum.ansible.com/t/runner-on-ok-vs-v2-runner-on-ok/37159)

<div class="topic-metadata">

**Author:** [@sysadreq](https://forum.ansible.com/u/sysadreq)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 1:35pm UTC](https://forum.ansible.com/t/runner-on-ok-vs-v2-runner-on-ok/37159 "2022-10-03T13:35:55Z")

</div>

Hello Ansible Group, I was trying to create a custom callback plugin and I noticed a variation on the different callback plugins. May someone kindly explain what’s the difference between runner\_on\_ok and v2\_runner\_on\_o…

---

## [vi editor for Ansible playbook](https://forum.ansible.com/t/vi-editor-for-ansible-playbook/37164)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 10\
**Last updated:** [October 3, 2022, 1:00pm UTC](https://forum.ansible.com/t/vi-editor-for-ansible-playbook/37164 "2022-10-03T13:00:30Z")

</div>

Hi All, Could anyone please direct me what options i need to use/enable for while writing playbooks in vi editor colour indication lines as mentioned attached example. Thank you in advance. (attachments)

---

## [Not working together - connection: local and delegate\_to](https://forum.ansible.com/t/not-working-together-connection-local-and-delegate-to/37160)

<div class="topic-metadata">

**Author:** [@Vichu](https://forum.ansible.com/u/Vichu)\
**Replies:** 6\
**Last updated:** [October 3, 2022, 11:23am UTC](https://forum.ansible.com/t/not-working-together-connection-local-and-delegate-to/37160 "2022-10-03T11:23:03Z")

</div>

Hi Team, Good Day!! Am not able to use Connection: local and Delegate\_to together in my playbooks. Actual Result - Both debug outputs give me the same hostname. Expected Result: First debug should have given me the lo…

---

## [Connection: local and Delegate\_to - Not working together](https://forum.ansible.com/t/connection-local-and-delegate-to-not-working-together/37162)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [September 30, 2022, 9:00pm UTC](https://forum.ansible.com/t/connection-local-and-delegate-to-not-working-together/37162 "2022-09-30T21:00:53Z")

</div>

A few things, The connection: keyword just changes the connection, while delegation changes the target host. When using connection: local you end up executing on the controller (your connection is a local fork instea…

---

## [populating dictionary from lookup](https://forum.ansible.com/t/populating-dictionary-from-lookup/37157)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 3\
**Last updated:** [September 30, 2022, 9:17am UTC](https://forum.ansible.com/t/populating-dictionary-from-lookup/37157 "2022-09-30T09:17:44Z")

</div>

Hello As a part of another project, I have written a playbook:

---

## [win\_service\_info register](https://forum.ansible.com/t/win-service-info-register/34500)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 4\
**Last updated:** [September 30, 2022, 12:40am UTC](https://forum.ansible.com/t/win-service-info-register/34500 "2022-09-30T00:40:50Z")

</div>

Hi Trying to use win\_service\_info with a register. While the register is filled with multiple entries, i want to make sure all these are started. How to write the loop ? name: Find all services that start with ‘blab…

---

## [Playbook to run lambda not work module community.aws.execute\_lambda](https://forum.ansible.com/t/playbook-to-run-lambda-not-work-module-community-aws-execute-lambda/37035)

<div class="topic-metadata">

**Author:** [@ricardobarbosams](https://forum.ansible.com/u/ricardobarbosams)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 2:24pm UTC](https://forum.ansible.com/t/playbook-to-run-lambda-not-work-module-community-aws-execute-lambda/37035 "2022-09-29T14:24:52Z")

</div>

Hi guys, I’m trying to run a playbook to execute lambda, but not work. I’m follow this https://docs.ansible.com/ansible/latest/collections/community/aws/execute\_lambda\_module.html#parameter-payload. My playbook is --…

---

## [apt-repository adds wrong repo for ppa](https://forum.ansible.com/t/apt-repository-adds-wrong-repo-for-ppa/37136)

<div class="topic-metadata">

**Author:** [@maxgt16](https://forum.ansible.com/u/maxgt16)\
**Replies:** 4\
**Last updated:** [September 29, 2022, 2:03pm UTC](https://forum.ansible.com/t/apt-repository-adds-wrong-repo-for-ppa/37136 "2022-09-29T14:03:50Z")

</div>

Hello Community, I’m working on Ubuntu 22.04 where apt-key is deprecated, with ansible ansible \[core 2.13.4\] After adding “ppa:ondrej/php” via “apt\_repository” module and then execute “apt update” it throw the followin…

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

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