# Ansible Developer

**URL:** https://forum.ansible.com/c/archives/ansible-developer/29.md?page=9

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

**Page:** 10

---

## [adding arguments for win\_package module](https://forum.ansible.com/t/adding-arguments-for-win-package-module/35757)

<div class="topic-metadata">

**Author:** [@Nidhi\_Prakash](https://forum.ansible.com/u/Nidhi_Prakash)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 10:17am UTC](https://forum.ansible.com/t/adding-arguments-for-win-package-module/35757 "2021-09-20T10:17:41Z")

</div>

Can you please help how to pass the arguments for win\_package module for an exe installation using ansible playbook for A radio button selection Browsing License file option Enter a TextBox value

---

## [Unable to bring fex ports up.!](https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672)

<div class="topic-metadata">

**Author:** [@Anirudh\_Pangri](https://forum.ansible.com/u/Anirudh_Pangri)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 6:57am UTC](https://forum.ansible.com/t/unable-to-bring-fex-ports-up/33672 "2021-09-13T06:57:24Z")

</div>

I am trying this task: name: Turn the fex ports up loop: “{{ new\_fex }}” nxos\_interfaces: config: name: “{{ item }}” enabled: true state: replaced Getting the following error: failed: \[target\] (item=Eth148/1/2) =\>…

---

## [Adding prefix\_path option to 'group' module](https://forum.ansible.com/t/adding-prefix-path-option-to-group-module/35726)

<div class="topic-metadata">

**Author:** [@Roy\_Lenferink](https://forum.ansible.com/u/Roy_Lenferink)\
**Replies:** 0\
**Last updated:** [September 12, 2021, 10:53am UTC](https://forum.ansible.com/t/adding-prefix-path-option-to-group-module/35726 "2021-09-12T10:53:57Z")

</div>

Hi Ansible developers, About 1.5 month ago I opened a pull request against ansible/ansible for adding a new option to the ‘group’ module. The option added is the prefix\_path option for preparing targets which have /etc/…

---

## [Calling a Role within a Role with multiple times and with each time a different values](https://forum.ansible.com/t/calling-a-role-within-a-role-with-multiple-times-and-with-each-time-a-different-values/35719)

<div class="topic-metadata">

**Author:** [@Som\_Das](https://forum.ansible.com/u/Som_Das)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 4:30pm UTC](https://forum.ansible.com/t/calling-a-role-within-a-role-with-multiple-times-and-with-each-time-a-different-values/35719 "2021-09-09T16:30:03Z")

</div>

Hi All, I need to call a Ansible role Multiple times within a role and each time I need to pass different set of values via extra vars. Anybody has any solution to it? Regards, Somarko Das

---

## [New release candidates: ansible-core 2.11.5rc1, ansible-base 2.10.14rc1, ansible 2.9.26rc1](https://forum.ansible.com/t/new-release-candidates-ansible-core-2-11-5rc1-ansible-base-2-10-14rc1-ansible-2-9-26rc1/35717)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 8:05pm UTC](https://forum.ansible.com/t/new-release-candidates-ansible-core-2-11-5rc1-ansible-base-2-10-14rc1-ansible-2-9-26rc1/35717 "2021-09-08T20:05:55Z")

</div>

Hi all- we’re happy to announce the following release candidates: ansible-core 2.11.5rc1 ansible-base 2.10.14rc1 ansible 2.9.26rc1 How to get it

---

## [make webdocs for custom collection](https://forum.ansible.com/t/make-webdocs-for-custom-collection/35704)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Replies:** 1\
**Last updated:** [September 5, 2021, 11:28am UTC](https://forum.ansible.com/t/make-webdocs-for-custom-collection/35704 "2021-09-05T11:28:06Z")

</div>

Hi I have developed a collection of modules on my local setup. Now, I’ve already verified that the CLI docstrings for the modules are printing correctly by running ansible-doc Next, I wanted to generate the HTML web…

---

## [InventoryManager loader](https://forum.ansible.com/t/inventorymanager-loader/35690)

<div class="topic-metadata">

**Author:** [@Mandy\_Liu](https://forum.ansible.com/u/Mandy_Liu)\
**Replies:** 0\
**Last updated:** [August 31, 2021, 10:30am UTC](https://forum.ansible.com/t/inventorymanager-loader/35690 "2021-08-31T10:30:02Z")

</div>

Hi everyone, I’m currently tinkering around the source code of the InventoryManager of Ansible and am currently stuck on how it normally picks up the loader and sources? I’m trying to inherit attributes from the Invent…

---

## [When is ansible\_mounts defined?](https://forum.ansible.com/t/when-is-ansible-mounts-defined/35679)

<div class="topic-metadata">

**Author:** [@Gerrit\_Kuehn](https://forum.ansible.com/u/Gerrit_Kuehn)\
**Replies:** 6\
**Last updated:** [August 26, 2021, 7:59pm UTC](https://forum.ansible.com/t/when-is-ansible-mounts-defined/35679 "2021-08-26T19:59:34Z")

</div>

Hello, I've been using the ansible\_mounts variable for quite some time, but only now I recognise that it is not always defined. Some of my hosts just return:

---

## [Best way to format complex findings for end-user consumption?](https://forum.ansible.com/t/best-way-to-format-complex-findings-for-end-user-consumption/35671)

<div class="topic-metadata">

**Author:** [@Johnnie\_Green](https://forum.ansible.com/u/Johnnie_Green)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 12:26am UTC](https://forum.ansible.com/t/best-way-to-format-complex-findings-for-end-user-consumption/35671 "2021-08-26T00:26:18Z")

</div>

Hi, Is there a clean and efficient ‘ansible’ way by which the playbook developer can gain more control over the formatting of information to be put in front of the resource that executes the playbook? I’m relatively ne…

---

## [Check existence of a value from dictionary with list](https://forum.ansible.com/t/check-existence-of-a-value-from-dictionary-with-list/35676)

<div class="topic-metadata">

**Author:** [@Rijesh\_Puthiya\_Puray](https://forum.ansible.com/u/Rijesh_Puthiya_Puray)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 10:57am UTC](https://forum.ansible.com/t/check-existence-of-a-value-from-dictionary-with-list/35676 "2021-08-25T10:57:30Z")

</div>

Hello all, I have to implement a logic where I need to create a few secrets in kubernetes cluster using ansible. The login I am trying to implement is to get registered all the secrets in a namepsapce first, then create…

---

## [PowerShell script in windows host](https://forum.ansible.com/t/powershell-script-in-windows-host/35675)

<div class="topic-metadata">

**Author:** [@Sakshi\_Jain](https://forum.ansible.com/u/Sakshi_Jain)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 10:25am UTC](https://forum.ansible.com/t/powershell-script-in-windows-host/35675 "2021-08-25T10:25:23Z")

</div>

Steps get the latest file name , file name format : ‘.txt’ check the file content , upto line containing AMP , updated with today’s logs archive/compress the file delete the original file \[ansible@ip-172-31-25-114 pla…

---

## [Retrieve facts from a lookup plugin](https://forum.ansible.com/t/retrieve-facts-from-a-lookup-plugin/35662)

<div class="topic-metadata">

**Author:** [@John\_Day](https://forum.ansible.com/u/John_Day)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 10:18pm UTC](https://forum.ansible.com/t/retrieve-facts-from-a-lookup-plugin/35662 "2021-08-23T22:18:08Z")

</div>

I am building a lookup plugin to help with identifying AWS resource ids from other relevant resource information, e.g. the Name tag. My issue is that I need the region, access key id, and secret access key to invoke the…

---

## [Nested dir creation](https://forum.ansible.com/t/nested-dir-creation/35640)

<div class="topic-metadata">

**Author:** [@Satya\_S](https://forum.ansible.com/u/Satya_S)\
**Replies:** 0\
**Last updated:** [August 19, 2021, 1:23pm UTC](https://forum.ansible.com/t/nested-dir-creation/35640 "2021-08-19T13:23:39Z")

</div>

Hello All, I’m trying to the below: dir\_var: {app1: \[name: \[a1,a2\], dev: \[1,2\], prod: \[11,12\]\], app2: \[name: \[a3,a4\], dev: \[11,12\], prod: \[21.22\]\]} env: dev should create folders like this if env is ‘dev’ a1 a1/1 …

---

## [run with\_items loop using python api.](https://forum.ansible.com/t/run-with-items-loop-using-python-api/35629)

<div class="topic-metadata">

**Author:** [@Google\_Pixel](https://forum.ansible.com/u/Google_Pixel)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 10:22am UTC](https://forum.ansible.com/t/run-with-items-loop-using-python-api/35629 "2021-08-17T10:22:01Z")

</div>

for a bigger project we are interfacing ansible with python using the python api. however I am not able to run the debug module using a with\_items loop. the purpose is to find/report and delete the files found on remot…

---

## [Meaning of the possible results of a playbook execution.](https://forum.ansible.com/t/meaning-of-the-possible-results-of-a-playbook-execution/35625)

<div class="topic-metadata">

**Author:** [@Miguel\_Antunez\_Cruz](https://forum.ansible.com/u/Miguel_Antunez_Cruz)\
**Replies:** 0\
**Last updated:** [August 16, 2021, 2:25am UTC](https://forum.ansible.com/t/meaning-of-the-possible-results-of-a-playbook-execution/35625 "2021-08-16T02:25:03Z")

</div>

What do skipped, rescued, and ignored results mean in a playbook execution? What would be a possible scenario where these results would be different from 0? Thank you very much

---

## [add repository to https://github.com/ansible-collections](https://forum.ansible.com/t/add-repository-to-https-github-com-ansible-collections/35621)

<div class="topic-metadata">

**Author:** [@Krzysztof\_Lewandowsk](https://forum.ansible.com/u/Krzysztof_Lewandowsk)\
**Replies:** 1\
**Last updated:** [August 14, 2021, 5:27pm UTC](https://forum.ansible.com/t/add-repository-to-https-github-com-ansible-collections/35621 "2021-08-14T17:27:57Z")

</div>

Hi, I’ve developed two Ansible collections I’d like to share with the community. The first one contains a bunch of modules for Terraform Enterprise, the second one modules for Bitbucket. Would it be possible to create…

---

## [Getting A ID Value Unique To An Instance Of An Ansible Playbook](https://forum.ansible.com/t/getting-a-id-value-unique-to-an-instance-of-an-ansible-playbook/35594)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 7:11am UTC](https://forum.ansible.com/t/getting-a-id-value-unique-to-an-instance-of-an-ansible-playbook/35594 "2021-08-06T07:11:02Z")

</div>

I’m trying to create an external file that every single task (Python modules for which I’ve implemented) in the playbook should read from and write into some information. I wanted to use the process ID for the playbook …

---

## [Machine readable duration](https://forum.ansible.com/t/machine-readable-duration/35577)

<div class="topic-metadata">

**Author:** [@Matthew\_Kenigsberg](https://forum.ansible.com/u/Matthew_Kenigsberg)\
**Replies:** 3\
**Last updated:** [August 3, 2021, 5:38pm UTC](https://forum.ansible.com/t/machine-readable-duration/35577 "2021-08-03T17:38:50Z")

</div>

Following up on https://github.com/ansible/ansible/pull/75370 I would like a machine readable duration for how long a command runs. I was told I could use existing filters. How would I accomplish that? strftime does not…

---

## [Newbie Question - Ansible Engine required](https://forum.ansible.com/t/newbie-question-ansible-engine-required/35578)

<div class="topic-metadata">

**Author:** [@dimndskier](https://forum.ansible.com/u/dimndskier)\
**Replies:** 0\
**Last updated:** [August 3, 2021, 5:15pm UTC](https://forum.ansible.com/t/newbie-question-ansible-engine-required/35578 "2021-08-03T17:15:25Z")

</div>

I have not yet written any ansible plays, playbooks - code in general. If I write some ansible code, do I necessarily require an Ansible Engine, or Ansible Tower, or can I simply copy the playbooks (those are the files …

---

## [jinja2 template](https://forum.ansible.com/t/jinja2-template/35571)

<div class="topic-metadata">

**Author:** [@Sakshi\_Jain](https://forum.ansible.com/u/Sakshi_Jain)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 5:16am UTC](https://forum.ansible.com/t/jinja2-template/35571 "2021-08-02T05:16:43Z")

</div>

Please help to resolve this error ansible-playbook: error: unrecognized arguments: --snyntax-check \[ec2-user@ansible-engine jinja2\]$ ansible-playbook lab27.yaml PLAY \[install vsftpd\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible network\_cli plugin development for custom network device](https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 1\
**Last updated:** [July 29, 2021, 3:23pm UTC](https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555 "2021-07-29T15:23:35Z")

</div>

Hi, I have written code for cliconf and terminal for new network device to support network\_cli but i am unable to load the cliconf when i am running the command for the device. the cliconf and terminal both are in resp…

---

## [implement checks on every iteration using with\_items](https://forum.ansible.com/t/implement-checks-on-every-iteration-using-with-items/35553)

<div class="topic-metadata">

**Author:** [@Som\_Das](https://forum.ansible.com/u/Som_Das)\
**Replies:** 0\
**Last updated:** [July 28, 2021, 4:51am UTC](https://forum.ansible.com/t/implement-checks-on-every-iteration-using-with-items/35553 "2021-07-28T04:51:10Z")

</div>

Hi All, I have the following code: name: execute all commands in the file cisco.asa.aa\_command: commands: “{{ item }}” with\_lines: cat ./role1/files/commands.txt register: output Now I want to implement a check o…

---

## [How run t-sql commands on Azure SQL databases](https://forum.ansible.com/t/how-run-t-sql-commands-on-azure-sql-databases/35531)

<div class="topic-metadata">

**Author:** [@Grant\_Sutcliffe](https://forum.ansible.com/u/Grant_Sutcliffe)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 7:34am UTC](https://forum.ansible.com/t/how-run-t-sql-commands-on-azure-sql-databases/35531 "2021-07-21T07:34:02Z")

</div>

We need to run a series of T-SQL statements (to create database objects and inert data) on an Azure SQL databases (not Managed Instance database flavour). We successfully tested that we can and run the sql commands from…

---

## [Ansible - Authentication timeout error](https://forum.ansible.com/t/ansible-authentication-timeout-error/35510)

<div class="topic-metadata">

**Author:** [@benilde\_tadonkeng](https://forum.ansible.com/u/benilde_tadonkeng)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 10:59pm UTC](https://forum.ansible.com/t/ansible-authentication-timeout-error/35510 "2021-07-15T22:59:49Z")

</div>

Hi every one, I’m trying to pull out some information from a cisco switch device using ios\_facts module, for exemple ios version using ansible. By running the playbook, the following message appears: PLAY \[Host(s) nam…

---

## [Ansible Contributor Summit 2021.06](https://forum.ansible.com/t/ansible-contributor-summit-2021-06/35134)

<div class="topic-metadata">

**Author:** [@cybette](https://forum.ansible.com/u/cybette)\
**Replies:** 1\
**Last updated:** [July 15, 2021, 12:06pm UTC](https://forum.ansible.com/t/ansible-contributor-summit-2021-06/35134 "2021-07-15T12:06:02Z")

</div>

Hi everyone, We’re happy to announce the second Ansible Contributor Summit for 2021! It will be on Tuesday, June 8, from 07:00-15:00 UTC, and will be held online. For those unfamiliar with this event, the Ansible Co…

---

## [New release candidates: ansible-core 2.11.3rc1, ansible-base 2.10.12rc1, ansible 2.9.24rc1](https://forum.ansible.com/t/new-release-candidates-ansible-core-2-11-3rc1-ansible-base-2-10-12rc1-ansible-2-9-24rc1/35505)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [July 14, 2021, 6:24am UTC](https://forum.ansible.com/t/new-release-candidates-ansible-core-2-11-3rc1-ansible-base-2-10-12rc1-ansible-2-9-24rc1/35505 "2021-07-14T06:24:17Z")

</div>

Hi all- we're happy to announce the following release candidates: - ansible-core 2.11.3rc1 - ansible-base 2.10.12rc1 - ansible 2.9.24rc1 ...which were released Monday night (US time). How to get it

---

## [fatal: \[s1\]: FAILED! =\> {"msg": "Unable to automatically determine host network os. Please manually configure ansible\_network\_os value for this host"}](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35503)

<div class="topic-metadata">

**Author:** [@sanjivy\_raja](https://forum.ansible.com/u/sanjivy_raja)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 5:33pm UTC](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35503 "2021-07-13T17:33:04Z")

</div>

Hello Everyone! I have been trying to run the below play book , I keep getting different kinds of errors whenever I try to change the syntax, I am guessing the errors are due to deprecated syntax. Can some one tell me t…

---

## [Connection plugin with slow \_connect](https://forum.ansible.com/t/connection-plugin-with-slow-connect/35481)

<div class="topic-metadata">

**Author:** [@Roman\_Bolshakov](https://forum.ansible.com/u/Roman_Bolshakov)\
**Replies:** 3\
**Last updated:** [July 12, 2021, 6:15pm UTC](https://forum.ansible.com/t/connection-plugin-with-slow-connect/35481 "2021-07-12T18:15:27Z")

</div>

Hi all, I'm working on a guestfs \[1\] connection plugin and seeking for a design advice. libguestfs provides a set of command line tools that can be used to operate on virtual machine disk images and modify its conten…

---

## [Ansible variables precedence](https://forum.ansible.com/t/ansible-variables-precedence/35489)

<div class="topic-metadata">

**Author:** [@nitjindal](https://forum.ansible.com/u/nitjindal)\
**Replies:** 0\
**Last updated:** [July 12, 2021, 7:18am UTC](https://forum.ansible.com/t/ansible-variables-precedence/35489 "2021-07-12T07:18:27Z")

</div>

Hi All having a query about variable precedence. Having roles calling like this: playbook/testplay.yml

---

## [Ansible  cisco ios upgrade on stack of switches](https://forum.ansible.com/t/ansible-cisco-ios-upgrade-on-stack-of-switches/35473)

<div class="topic-metadata">

**Author:** [@benilde\_tadonkeng](https://forum.ansible.com/u/benilde_tadonkeng)\
**Replies:** 0\
**Last updated:** [July 7, 2021, 7:33pm UTC](https://forum.ansible.com/t/ansible-cisco-ios-upgrade-on-stack-of-switches/35473 "2021-07-07T19:33:51Z")

</div>

Hi every one, I’m trying to perform ios upgrade on a stack of 2 X 2960-XR cisco switch models using ansible but I don’t really know how to process. Here below are the step I figured out tout realize it: Check if the c…

[Previous page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=8)

[Next page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=10)
