# Ansible Project

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

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

**Page:** 51

---

## [upgrading ansible collection and ansible itself](https://forum.ansible.com/t/upgrading-ansible-collection-and-ansible-itself/36387)

<div class="topic-metadata">

**Author:** [@Netanel\_Peretz](https://forum.ansible.com/u/Netanel_Peretz)\
**Replies:** 6\
**Last updated:** [March 2, 2022, 1:05pm UTC](https://forum.ansible.com/t/upgrading-ansible-collection-and-ansible-itself/36387 "2022-03-02T13:05:42Z")

</div>

Hey guys, I’m running a pretty old version of ansible(2.9.4,python 2.7) and wanted to upgrade it finally. What is the latest stable version I can upgrade to? From reading a bit online I understood these are the comman…

---

## [nmcli fails to update DNS servers](https://forum.ansible.com/t/nmcli-fails-to-update-dns-servers/36390)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev1](https://forum.ansible.com/u/Anand_Buddhdev1)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 10:53am UTC](https://forum.ansible.com/t/nmcli-fails-to-update-dns-servers/36390 "2022-03-02T10:53:16Z")

</div>

I’m running ansible-core 2.12.3, on python 3.10, with 2 collections installed: Collection Version ansible.posix 1.3.0 community.general 4.5.0 I’m trying to use the nmcli module to set the DNS servers for a connectio…

---

## [New releases: ansible-core 2.12.3, ansible-core 2.11.9](https://forum.ansible.com/t/new-releases-ansible-core-2-12-3-ansible-core-2-11-9/36388)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 4:48am UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-12-3-ansible-core-2-11-9/36388 "2022-03-02T04:48:19Z")

</div>

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

---

## [Use cases of real time project of ansible](https://forum.ansible.com/t/use-cases-of-real-time-project-of-ansible/36386)

<div class="topic-metadata">

**Author:** [@prasanna\_kumar1](https://forum.ansible.com/u/prasanna_kumar1)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 3:17pm UTC](https://forum.ansible.com/t/use-cases-of-real-time-project-of-ansible/36386 "2022-03-01T15:17:17Z")

</div>

Dear Team, Kindly provide me with real-time ansible use cases for any AWS T3 architecture. Thanks & regards,

---

## [Ist time using an API with Ansible](https://forum.ansible.com/t/ist-time-using-an-api-with-ansible/36381)

<div class="topic-metadata">

**Author:** [@Jeremy\_Tourville](https://forum.ansible.com/u/Jeremy_Tourville)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 2:43pm UTC](https://forum.ansible.com/t/ist-time-using-an-api-with-ansible/36381 "2022-03-01T14:43:29Z")

</div>

Hi everyone I am trying to use Ansible for the first time with an API. Normally, I have learned to manage LInux servers with ansible where you are connecting to the device(s) using SSH and an inventory file. I have bee…

---

## [Using Ansible Playbook for Implementing Inventory Plugin?](https://forum.ansible.com/t/using-ansible-playbook-for-implementing-inventory-plugin/36384)

<div class="topic-metadata">

**Author:** [@rolandm](https://forum.ansible.com/u/rolandm)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 9:14am UTC](https://forum.ansible.com/t/using-ansible-playbook-for-implementing-inventory-plugin/36384 "2022-03-01T09:14:55Z")

</div>

Hello, is it possible to use an Ansible playbook for implementing a custom inventory plugin? Currently, I am using following approach with manual steps: create inventory file by running an ad-hoc command or playbook …

---

## [Molecule converge fails : When hosts is all](https://forum.ansible.com/t/molecule-converge-fails-when-hosts-is-all/36379)

<div class="topic-metadata">

**Author:** [@selvigp](https://forum.ansible.com/u/selvigp)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 8:20am UTC](https://forum.ansible.com/t/molecule-converge-fails-when-hosts-is-all/36379 "2022-03-01T08:20:51Z")

</div>

Hi, I have tried to run molecule test for my Ansible role which contains install iptable dependencies. If I set hosts: localhost in converge.yml it is working fine. But if I give hosts: all throwing below error. I am us…

---

## [fetch specific lines from file](https://forum.ansible.com/t/fetch-specific-lines-from-file/36382)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 7:26am UTC](https://forum.ansible.com/t/fetch-specific-lines-from-file/36382 "2022-03-01T07:26:19Z")

</div>

Hi Guys, I want to fetch only few lines from “show version” output . I have attached image of required output can someone please help how to fetch these line because line no. is not fix. Thank you in advance.

---

## [1st time using API with Ansible](https://forum.ansible.com/t/1st-time-using-api-with-ansible/36383)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 7:10am UTC](https://forum.ansible.com/t/1st-time-using-api-with-ansible/36383 "2022-03-01T07:10:27Z")

</div>

Hi everyone I am trying to use Ansible for the first time with an API. Normally I have learned to manage a specific device with ansible where you are connecting to the device. I have been following this guide(s) to he…

---

## [Facts cached and not update in play](https://forum.ansible.com/t/facts-cached-and-not-update-in-play/36378)

<div class="topic-metadata">

**Author:** [@EE1](https://forum.ansible.com/u/EE1)\
**Replies:** 0\
**Last updated:** [February 28, 2022, 7:14pm UTC](https://forum.ansible.com/t/facts-cached-and-not-update-in-play/36378 "2022-02-28T19:14:01Z")

</div>

Hi Ansible list. New guy to Ansible here. I’m hitting an issue where facts are cached within a play despite calling an explicit task to -re-gather facts after a change. This appears to be contrary to the “getting starte…

---

## [How to get all hosts from inventory that are in a specified group into a variable??](https://forum.ansible.com/t/how-to-get-all-hosts-from-inventory-that-are-in-a-specified-group-into-a-variable/36375)

<div class="topic-metadata">

**Author:** [@o\_haya1](https://forum.ansible.com/u/o_haya1)\
**Replies:** 1\
**Last updated:** [February 27, 2022, 11:03pm UTC](https://forum.ansible.com/t/how-to-get-all-hosts-from-inventory-that-are-in-a-specified-group-into-a-variable/36375 "2022-02-27T23:03:44Z")

</div>

Hi, I am (still) new to working with Ansible… In the inventory in our tower environment, we have groups configured. I am trying to modify an existing playbook (and template file) to set a new property, “cache.memberli…

---

## [Folder Path with String and Digits](https://forum.ansible.com/t/folder-path-with-string-and-digits/36373)

<div class="topic-metadata">

**Author:** [@Sabaree\_Umashankar](https://forum.ansible.com/u/Sabaree_Umashankar)\
**Replies:** 0\
**Last updated:** [February 27, 2022, 5:29pm UTC](https://forum.ansible.com/t/folder-path-with-string-and-digits/36373 "2022-02-27T17:29:11Z")

</div>

How do I navigate to this type of folder and search for log files in it? Example → C:\\Windows\\prdUser-123\\pracs\\testing Example → C:\\Windows\\devUser-123\\pracs\\testing\\ Example → C:\\Windows\\stgUser-123\\pracs\\testing\\ T…

---

## [Failed : Testing IPtables rules with Molecules](https://forum.ansible.com/t/failed-testing-iptables-rules-with-molecules/36365)

<div class="topic-metadata">

**Author:** [@selvigp](https://forum.ansible.com/u/selvigp)\
**Replies:** 2\
**Last updated:** [February 27, 2022, 12:04pm UTC](https://forum.ansible.com/t/failed-testing-iptables-rules-with-molecules/36365 "2022-02-27T12:04:32Z")

</div>

Hi, I have created iptables ansible roles, which contain rules such as Alias port and Masquerade traffic. I am using molecule to test this role. But whenever I give empty values for those rules, it is working fine. In t…

---

## [Check for existing installed software](https://forum.ansible.com/t/check-for-existing-installed-software/36135)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 10\
**Last updated:** [February 26, 2022, 12:10pm UTC](https://forum.ansible.com/t/check-for-existing-installed-software/36135 "2022-02-26T12:10:57Z")

</div>

How can I incorporate this registry check before my playbook runs to install .net 4.8: (Get-ItemProperty “HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full”).version -lt 4.8 The above should only run my playbook…

---

## [backing up a cisco device using telnet](https://forum.ansible.com/t/backing-up-a-cisco-device-using-telnet/26823)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 23\
**Last updated:** [February 26, 2022, 5:57am UTC](https://forum.ansible.com/t/backing-up-a-cisco-device-using-telnet/26823 "2022-02-26T05:57:09Z")

</div>

Is there any information that allows me to backup a cisco device using telnet rather than ssh as the device do not support SSH

---

## [ansible installation thoughts](https://forum.ansible.com/t/ansible-installation-thoughts/36359)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 6\
**Last updated:** [February 25, 2022, 11:05am UTC](https://forum.ansible.com/t/ansible-installation-thoughts/36359 "2022-02-25T11:05:22Z")

</div>

Hi I’m setting out to upgrade ansible in some places here. We exclusively use ansible in dedicated venvs, using python3.9. Most of the installs are 3.4.0. Looking back over the last years I had the impression that do…

---

## [Reserved namespace for private collection?](https://forum.ansible.com/t/reserved-namespace-for-private-collection/36369)

<div class="topic-metadata">

**Author:** [@Axel\_Miesen](https://forum.ansible.com/u/Axel_Miesen)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 9:48am UTC](https://forum.ansible.com/t/reserved-namespace-for-private-collection/36369 "2022-02-25T09:48:27Z")

</div>

Hello group! I’m playing around with collections these days… My question: Is there any reserved namespace that could be used for private/local collections, when it is for sure that they will never be published in the G…

---

## ["Timeout (17s) waiting for privilege escalation prompt: "](https://forum.ansible.com/t/timeout-17s-waiting-for-privilege-escalation-prompt/36368)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 9:22pm UTC](https://forum.ansible.com/t/timeout-17s-waiting-for-privilege-escalation-prompt/36368 "2022-02-24T21:22:01Z")

</div>

It sounds like your inventory states ansible\_become=true which forces become for every execution, but your inventory does not include ansible\_become\_password. When specifying the same user for --become-user that you are…

---

## [how to add lines into a file](https://forum.ansible.com/t/how-to-add-lines-into-a-file/36335)

<div class="topic-metadata">

**Author:** [@Praveen\_Dev](https://forum.ansible.com/u/Praveen_Dev)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 3:42pm UTC](https://forum.ansible.com/t/how-to-add-lines-into-a-file/36335 "2022-02-23T15:42:15Z")

</div>

HI All, i have a requirement to add a few lines after a particular match / keyword or string in a shell script . below code is for reference when i execute this code it is adding all the bold lines at the bottom . can y…

---

## [python ansible runner; result return in python](https://forum.ansible.com/t/python-ansible-runner-result-return-in-python/36360)

<div class="topic-metadata">

**Author:** [@soonyu](https://forum.ansible.com/u/soonyu)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 10:09am UTC](https://forum.ansible.com/t/python-ansible-runner-result-return-in-python/36360 "2022-02-23T10:09:03Z")

</div>

from python I using ansible runner to call ansible playbookvar = ‘/home/vagrant/projectrole/test.yaml’ r=ansible\_runner.run(inventory = inv , playbook =playbookvar ) any possible get return value from ansible to pytho…

---

## [Ansible run fails without any error](https://forum.ansible.com/t/ansible-run-fails-without-any-error/36339)

<div class="topic-metadata">

**Author:** [@Robin\_Kluth](https://forum.ansible.com/u/Robin_Kluth)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 7:43am UTC](https://forum.ansible.com/t/ansible-run-fails-without-any-error/36339 "2022-02-23T07:43:53Z")

</div>

Hi, I have AWX 20.0.0 set up (occurs with 19 as well). Ansible: ansible-playbook \[core 2.12.2.post0\] I have a rather simple playbook - which worked in previous versions of AWX/ansible without issue (see attached pic). …

---

## [Galaxy having issue ?](https://forum.ansible.com/t/galaxy-having-issue/36353)

<div class="topic-metadata">

**Author:** [@markatbkk](https://forum.ansible.com/u/markatbkk)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 4:59am UTC](https://forum.ansible.com/t/galaxy-having-issue/36353 "2022-02-23T04:59:19Z")

</div>

Hello, do you know if there is any issue with galaxy ? Im having troubles to download collections via API. Web interface is pretty slow and some modules pages showing 404.

---

## [Ansible 5.4.0 has been released](https://forum.ansible.com/t/ansible-5-4-0-has-been-released/36358)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 8:39pm UTC](https://forum.ansible.com/t/ansible-5-4-0-has-been-released/36358 "2022-02-22T20:39:03Z")

</div>

Hi all, We're happy to announce that the Ansible 5.4.0 package has been released ! Ansible 5.4.0 includes ansible-core 2.12 as well as a curated set of Ansible collections to provide a vast number of modules and plug…

---

## [servicenow incident update and close using ansible](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 12:48pm UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355 "2022-02-22T12:48:51Z")

</div>

Hi Guys, Does anyone has any sample playbook for snow incident update and close(end to end automation for device reboot incident).As I am new to API part can someone please suggest how to fetch new incident from snow da…

---

## [Quotes inside URI header](https://forum.ansible.com/t/quotes-inside-uri-header/36352)

<div class="topic-metadata">

**Author:** [@1793](https://forum.ansible.com/u/1793)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 1:30am UTC](https://forum.ansible.com/t/quotes-inside-uri-header/36352 "2022-02-22T01:30:01Z")

</div>

Hi there, I have a scenario where I have to pass a token in the URI Authorization header, but it must be enclosed in double quotes as per my endpoint’s requirement. When I attempt to do it, the quotes are being parsed i…

---

## [How to Ansible copy force overwrite](https://forum.ansible.com/t/how-to-ansible-copy-force-overwrite/36349)

<div class="topic-metadata">

**Author:** [@Kerem\_Kalayci](https://forum.ansible.com/u/Kerem_Kalayci)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 12:23am UTC](https://forum.ansible.com/t/how-to-ansible-copy-force-overwrite/36349 "2022-02-22T00:23:33Z")

</div>

Hi everyone, i m trying to copy file. But win\_copy doesn’t copy overwrite. How can I overcome this error? is there a way to get around this? my code\>\>\> name: Copy a single file where the source is on the remote host …

---

## [Ansible support for Interactive input](https://forum.ansible.com/t/ansible-support-for-interactive-input/36351)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 6:37pm UTC](https://forum.ansible.com/t/ansible-support-for-interactive-input/36351 "2022-02-21T18:37:15Z")

</div>

Hi, Is there a way to prompt Ansible for interactive input from the user? Any examples to understand in details? Please guide. Thanks in advance. Best Regards, Kaushal

---

## [create liste from multi servers](https://forum.ansible.com/t/create-liste-from-multi-servers/36350)

<div class="topic-metadata">

**Author:** [@bigfootspi](https://forum.ansible.com/u/bigfootspi)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 5:16pm UTC](https://forum.ansible.com/t/create-liste-from-multi-servers/36350 "2022-02-21T17:16:18Z")

</div>

hi ^^ I want to create an inventory of my park. form this exemple, I’m getting the serveur name and linux’s version in my inventory, there is a group with my servers. i want to execute this task and finaly, show one …

---

## [Need your advice my playbook for Ansible project for CISCO ACI to automate getting for store logs and records execution time](https://forum.ansible.com/t/need-your-advice-my-playbook-for-ansible-project-for-cisco-aci-to-automate-getting-for-store-logs-and-records-execution-time/36343)

<div class="topic-metadata">

**Author:** [@Richard\_Lazaro](https://forum.ansible.com/u/Richard_Lazaro)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 8:02am UTC](https://forum.ansible.com/t/need-your-advice-my-playbook-for-ansible-project-for-cisco-aci-to-automate-getting-for-store-logs-and-records-execution-time/36343 "2022-02-18T08:02:19Z")

</div>

Hi , Just letting you check if my plabook is correct below: I just need your help on our project to Ansible for Cisco ACI module to: (1) Create variables to record execution time (2) Define as the variable the name o…

---

## [Ansible Tower Webhook API Error](https://forum.ansible.com/t/ansible-tower-webhook-api-error/36342)

<div class="topic-metadata">

**Author:** [@Pruthvi\_Kumar](https://forum.ansible.com/u/Pruthvi_Kumar)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 7:17pm UTC](https://forum.ansible.com/t/ansible-tower-webhook-api-error/36342 "2022-02-17T19:17:48Z")

</div>

Hi team, I’m trying to integrate Ansible tower with GitHub Actions to trigger a job template using Generated Webhook URL and Secret. Here’s what I tried I’m not able to get the response as epected and github webhook…

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

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