# Latest

**URL:** https://forum.ansible.com/latest.md?page=260

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

**Page:** 261

---

## [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…

---

## [awx execution environment in kubernetes using private registry host not found](https://forum.ansible.com/t/awx-execution-environment-in-kubernetes-using-private-registry-host-not-found/36372)

<div class="topic-metadata">

**Author:** [@suppaduppax](https://forum.ansible.com/u/suppaduppax)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 9:41am UTC](https://forum.ansible.com/t/awx-execution-environment-in-kubernetes-using-private-registry-host-not-found/36372 "2022-02-28T09:41:10Z")

</div>

I can’t seem to troubleshoot why my private registry under harbor.k3s.home/awx/awx-ee-homelab:latest is throwing this error: 49s Warning Failed pod/automation-job-326-jmqsg Failed to pull image “harbor.k3s.home/awx/awx-…

---

## [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 not recognizing hosts for aws ec2 hosts](https://forum.ansible.com/t/ansible-not-recognizing-hosts-for-aws-ec2-hosts/36370)

<div class="topic-metadata">

**Author:** [@Huda](https://forum.ansible.com/u/Huda)\
**Replies:** 1\
**Last updated:** [February 25, 2022, 9:29pm UTC](https://forum.ansible.com/t/ansible-not-recognizing-hosts-for-aws-ec2-hosts/36370 "2022-02-25T21:29:27Z")

</div>

Hello, Could someone please help with the following issue: when I run any of the ansible list hosts commands, it doesn’t show the host that’s listed in the file. What am I doing wrong? I’m able to ssh passwordless to t…

---

## [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…

---

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

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 4:57pm UTC](https://forum.ansible.com/t/new-release-candidates-ansible-core-2-12-3rc1-ansible-core-2-11-9rc1/36367 "2022-02-24T16:57:07Z")

</div>

Hi all- we’re happy to announce the following release candidates: ansible-core 2.12.3rc1 ansible-core 2.11.9rc1 How to get it

---

## [awx.ansible.com down?](https://forum.ansible.com/t/awx-ansible-com-down/36338)

<div class="topic-metadata">

**Author:** [@Andy\_MacDonald](https://forum.ansible.com/u/Andy_MacDonald)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 9:17pm UTC](https://forum.ansible.com/t/awx-ansible-com-down/36338 "2022-02-23T21:17:09Z")

</div>

error: unable to recognize “awx-demo.yml”: no matches for kind “AWX” in version "awx.ansible.com/v1beta1 Trying to pull this into our AKS cluster and hitting this. Looks like awx.ansible.com does not resolve. % dig awx…

---

## [ansible tower - invalid reference format](https://forum.ansible.com/t/ansible-tower-invalid-reference-format/36356)

<div class="topic-metadata">

**Author:** [@Bill\_Nolf](https://forum.ansible.com/u/Bill_Nolf)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 9:09pm UTC](https://forum.ansible.com/t/ansible-tower-invalid-reference-format/36356 "2022-02-23T21:09:20Z")

</div>

I trying to run the demo template (job) in ansible tower 4.1 but it won’t run. I get the following error: Invalid reference format. This is a trial version of the ansible automation platform and I don’t have Red Hat supp…

---

## [Job to save cisco config  is OK, but there are no files in directory](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900)

<div class="topic-metadata">

**Author:** [@user97](https://forum.ansible.com/u/user97)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 9:05pm UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900 "2022-02-23T21:05:31Z")

</div>

Hello everyone, AWX 19.4.0 in minikube v1.23.1 Playbook code is name: Get running-config and save it ios\_config: backup: yes backup\_options: filename: “{{ ansible\_net\_hostname }}\_{{ ansible\_host }}.cfg” dir\_path…

---

## [CyberArk AIM - Credential plugins and Object Query and passing ansible facts](https://forum.ansible.com/t/cyberark-aim-credential-plugins-and-object-query-and-passing-ansible-facts/36346)

<div class="topic-metadata">

**Author:** [@Matthew\_Perry](https://forum.ansible.com/u/Matthew_Perry)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 8:58pm UTC](https://forum.ansible.com/t/cyberark-aim-credential-plugins-and-object-query-and-passing-ansible-facts/36346 "2022-02-23T20:58:27Z")

</div>

Hi, We are trying to configure our Cyberark AIM Object query to pass the inventory hostname during the credential Lookup process. Our object string needs to parse in the inventory\_hostname at execution time so that we p…

---

## [AttributeError: module 'ansible.constants' has no attribute 'ANSIBLE\_NOCOLOR'](https://forum.ansible.com/t/attributeerror-module-ansible-constants-has-no-attribute-ansible-nocolor/36362)

<div class="topic-metadata">

**Author:** [@igor\_haase](https://forum.ansible.com/u/igor_haase)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 5:54pm UTC](https://forum.ansible.com/t/attributeerror-module-ansible-constants-has-no-attribute-ansible-nocolor/36362 "2022-02-23T17:54:22Z")

</div>

Hi fellows, I tried my first steps with ansible folowing to this manual: https://dokuwiki.nausch.org/doku.php/centos:ansible:first When I try ro rn this: ansible rhel8 -m shell -a “/usr/bin/ls -alF /root/” I get: Fil…

---

## [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…

---

## [2.11.9rc1 and 2.12.3rc1 delay](https://forum.ansible.com/t/2-11-9rc1-and-2-12-3rc1-delay/36357)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 5:24pm UTC](https://forum.ansible.com/t/2-11-9rc1-and-2-12-3rc1-delay/36357 "2022-02-22T17:24:58Z")

</div>

The 2.11.9rc1 and 2.12.3rc1 releases were supposed to happen on Feb 21, 2022, but have been delayed, and will likely happen on Feb 23, 2022 due to issues with infrastructure and package dependency issues. Stable branches…

---

## [Several non-standard ssh ports](https://forum.ansible.com/t/several-non-standard-ssh-ports/36340)

<div class="topic-metadata">

**Author:** [@igor\_haase](https://forum.ansible.com/u/igor_haase)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 3:30pm UTC](https://forum.ansible.com/t/several-non-standard-ssh-ports/36340 "2022-02-22T15:30:31Z")

</div>

Hello everyone, I am new in ansible. Therefore I have a question about editing the ansible.cfg. I am running a couple of server on different non-standard ssh ports e.g. 55500 55008 55012 etc. How can I configure that…

---

## [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…

---

## [AWX 19.4/19.5 Error in asyn task](https://forum.ansible.com/t/awx-19-4-19-5-error-in-asyn-task/36309)

<div class="topic-metadata">

**Author:** [@Lars\_Scholtz](https://forum.ansible.com/u/Lars_Scholtz)\
**Replies:** 6\
**Last updated:** [February 22, 2022, 10:46am UTC](https://forum.ansible.com/t/awx-19-4-19-5-error-in-asyn-task/36309 "2022-02-22T10:46:52Z")

</div>

Hello, I have observed a strange behavior in AWX 19.4 and AWX 19.5.1. AWX is running on a Kubernetes Cluster. The following changes after exactly 300 seconds to the status error without any response. ansible.windows.w…

---

## [Need help to reboot the host](https://forum.ansible.com/t/need-help-to-reboot-the-host/36333)

<div class="topic-metadata">

**Author:** [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 2:26am UTC](https://forum.ansible.com/t/need-help-to-reboot-the-host/36333 "2022-02-22T02:26:33Z")

</div>

Hi Team, I have multiple servers in one region and seperated with zone a &b I need to reboot one system in zone a and once it come back i need to reboot rest of the systeme in zone a. Can you help with condition to wr…

---

## [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…

[Previous page](https://forum.ansible.com/latest.md?page=259)

[Next page](https://forum.ansible.com/latest.md?page=261)
