# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=67

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

**Page:** 68

---

## [AWX and Host Collections](https://forum.ansible.com/t/awx-and-host-collections/36919)

<div class="topic-metadata">

**Author:** [@Brad\_Saxton](https://forum.ansible.com/u/Brad_Saxton)\
**Replies:** 2\
**Last updated:** [August 2, 2022, 4:30am UTC](https://forum.ansible.com/t/awx-and-host-collections/36919 "2022-08-02T04:30:16Z")

</div>

I hope that someone can help and that I’m just missing something obvious. I have Red Hat Satellite set to create and populate a number of Host Collections. Essentially so I can treat specific groups of machines as a gro…

---

## [rsync failure](https://forum.ansible.com/t/rsync-failure/36927)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 8\
**Last updated:** [August 2, 2022, 1:59am UTC](https://forum.ansible.com/t/rsync-failure/36927 "2022-08-02T01:59:01Z")

</div>

---

## [I need to save fact into variable and use it afterwards](https://forum.ansible.com/t/i-need-to-save-fact-into-variable-and-use-it-afterwards/36917)

<div class="topic-metadata">

**Author:** [@mboncalo](https://forum.ansible.com/u/mboncalo)\
**Replies:** 6\
**Last updated:** [August 1, 2022, 4:04pm UTC](https://forum.ansible.com/t/i-need-to-save-fact-into-variable-and-use-it-afterwards/36917 "2022-08-01T16:04:08Z")

</div>

I have a task with run\_once:true , which must run only on the first host and I need to use that hostname into a lookup file , something like this: name: Print facts debug: var: ansible\_nodename register: admin\_host …

---

## [Newbie question](https://forum.ansible.com/t/newbie-question/36901)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Parrott](https://forum.ansible.com/u/Jeffrey_Parrott)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 1:31pm UTC](https://forum.ansible.com/t/newbie-question/36901 "2022-08-01T13:31:17Z")

</div>

Newbie here, looking to see if Ansible will allow me to do initial configurations on a new out of the box Cisco switch. I need the ability to have the switch connect to my network and download a specific configuration, A…

---

## [Ansible GCP dynamic Inventory Plugin How to pass Project ID](https://forum.ansible.com/t/ansible-gcp-dynamic-inventory-plugin-how-to-pass-project-id/36893)

<div class="topic-metadata">

**Author:** [@A\_D](https://forum.ansible.com/u/A_D)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 12:40pm UTC](https://forum.ansible.com/t/ansible-gcp-dynamic-inventory-plugin-how-to-pass-project-id/36893 "2022-08-01T12:40:12Z")

</div>

Hi Everyone, I am using the dynamic inventory file for setting up Ansible for running configurations in GCP inventory.compute.gcp.yml plugin: gcp\_compute # name the plugin you want to use (use ansible-doc -t inventory …

---

## [sucessfully ran single play but not when the play is part of a task in the pb](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [August 1, 2022, 12:33pm UTC](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903 "2022-08-01T12:33:13Z")

</div>

I sucessully ran this play as a single play

---

## [failed instances](https://forum.ansible.com/t/failed-instances/36926)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 2\
**Last updated:** [August 1, 2022, 8:08am UTC](https://forum.ansible.com/t/failed-instances/36926 "2022-08-01T08:08:11Z")

</div>

---

## [AWX horizontal scaling](https://forum.ansible.com/t/awx-horizontal-scaling/36925)

<div class="topic-metadata">

**Author:** [@sinnl](https://forum.ansible.com/u/sinnl)\
**Replies:** 0\
**Last updated:** [July 31, 2022, 1:59pm UTC](https://forum.ansible.com/t/awx-horizontal-scaling/36925 "2022-07-31T13:59:06Z")

</div>

Hi, I have a 3 node k8s cluster (1 master and and 2 worker node - all 64Gb or RAM and 16vCPUS on VMware) and latest AWX version deployed with awx-operator using external DB and having 2 replica sets of AWX. awx.yml

---

## [Speeding up a task](https://forum.ansible.com/t/speeding-up-a-task/36924)

<div class="topic-metadata">

**Author:** [@HobsonI](https://forum.ansible.com/u/HobsonI)\
**Replies:** 5\
**Last updated:** [July 31, 2022, 4:59am UTC](https://forum.ansible.com/t/speeding-up-a-task/36924 "2022-07-31T04:59:22Z")

</div>

Hi Guys, I need advice on speeding up this task: - name: "restore files to {{ location }}" ansible.builtin.copy: src: "/home/ian/backup/hobson42/var/www/ianhobson.com/" dest: "{{ location }}" It copie…

---

## [to which local bash command does get\_url translate to?](https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [July 29, 2022, 3:27pm UTC](https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923 "2022-07-29T15:27:54Z")

</div>

I am running ansible playbooks against hosts in different networks or firewall-zones and need to fetch confg-files from a local BitBucket server at times with get\_url TASKS. connectivoty to that BitBucket Server is chall…

---

## [renaming a folder on the remote ... issue with defaults/main.yml](https://forum.ansible.com/t/renaming-a-folder-on-the-remote-issue-with-defaults-main-yml/36920)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 5\
**Last updated:** [July 29, 2022, 3:05pm UTC](https://forum.ansible.com/t/renaming-a-folder-on-the-remote-issue-with-defaults-main-yml/36920 "2022-07-29T15:05:40Z")

</div>

I am trying to rename a folder on a remote if it exists. this is being done via a role. ====== my two tasks =============================================================== - name: move legacy postgres - stat postgres\_d…

---

## [Running containers and building images in AWX-EE](https://forum.ansible.com/t/running-containers-and-building-images-in-awx-ee/36845)

<div class="topic-metadata">

**Author:** [@neeguy](https://forum.ansible.com/u/neeguy)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 7:33am UTC](https://forum.ansible.com/t/running-containers-and-building-images-in-awx-ee/36845 "2022-07-29T07:33:33Z")

</div>

We have some Ansible playbooks that we’ve been using to build images and run containers to execute some tasks (not using AWX). Recently, we’ve decided to use AWX v21 and tried to run these playbooks from there but have …

---

## [How to save a list of dictionaries to a file with a correct indentation](https://forum.ansible.com/t/how-to-save-a-list-of-dictionaries-to-a-file-with-a-correct-indentation/36911)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 1:44pm UTC](https://forum.ansible.com/t/how-to-save-a-list-of-dictionaries-to-a-file-with-a-correct-indentation/36911 "2022-07-28T13:44:35Z")

</div>

The goal seems to be simple, but I cannot manage to get the indentation right. Playbook: name: Saving a list of dictionaries to a file gather\_facts: false hosts: localhost strategy: debug tasks: name: Saving a lis…

---

## [Advice on AWX 21 performance](https://forum.ansible.com/t/advice-on-awx-21-performance/36906)

<div class="topic-metadata">

**Author:** [@anasaizg](https://forum.ansible.com/u/anasaizg)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 11:55am UTC](https://forum.ansible.com/t/advice-on-awx-21-performance/36906 "2022-07-28T11:55:30Z")

</div>

Hello everyone We have recently moved from AWX v15 to AWX v21 and some of my users are complaining about jobs taking too long to begin, when compared to previous version. For instance, when nothing else is being execut…

---

## [How to unquote a json structure](https://forum.ansible.com/t/how-to-unquote-a-json-structure/36913)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 10:10am UTC](https://forum.ansible.com/t/how-to-unquote-a-json-structure/36913 "2022-07-28T10:10:00Z")

</div>

One shell command returns a json structure, but ansible converts it into a string in the registered variable. In order to access some attributes, this string needs to be unquoted, but how? There is a quote filter, but t…

---

## [How to clone a single node k3s environment?](https://forum.ansible.com/t/how-to-clone-a-single-node-k3s-environment/36882)

<div class="topic-metadata">

**Author:** [@HG1](https://forum.ansible.com/u/HG1)\
**Replies:** 12\
**Last updated:** [July 28, 2022, 8:19am UTC](https://forum.ansible.com/t/how-to-clone-a-single-node-k3s-environment/36882 "2022-07-28T08:19:42Z")

</div>

Hello all, I am looking for a way to clone a single node AWX on k3s. When I use aws-on-k3s/backup it only seems to backup the postgres data. Any hints? Regards Hans-Peter

---

## [windows patching\_uninstall](https://forum.ansible.com/t/windows-patching-uninstall/30395)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 6:05am UTC](https://forum.ansible.com/t/windows-patching-uninstall/30395 "2022-07-28T06:05:13Z")

</div>

Hello All! I need to uninstall the windows install package with KB article with help of ansible. the win\_update is not happy with ‘absent’ Please help. Thanks

---

## [Below playbook fails I'm trying to uninstall a patch KB in windows server](https://forum.ansible.com/t/below-playbook-fails-im-trying-to-uninstall-a-patch-kb-in-windows-server/36912)

<div class="topic-metadata">

**Author:** [@lloyd\_noble](https://forum.ansible.com/u/lloyd_noble)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 5:09am UTC](https://forum.ansible.com/t/below-playbook-fails-im-trying-to-uninstall-a-patch-kb-in-windows-server/36912 "2022-07-28T05:09:11Z")

</div>

I tried all the method to do this getting below error for this playbook { “unreachable”: true, “msg”: “basic: auth method basic requires a password”, “changed”: false } Already the username/pass mentioned in invent…

---

## [AWX V19 - Backup and  Restore](https://forum.ansible.com/t/awx-v19-backup-and-restore/35540)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 9\
**Last updated:** [July 27, 2022, 8:31pm UTC](https://forum.ansible.com/t/awx-v19-backup-and-restore/35540 "2022-07-27T20:31:35Z")

</div>

AWX V19 - Backup and Restore. Hello experts, I have setup AWX v19 following this https://github.com/ansible/awx-operator Not sure how to perform the backup and restore of AWX v19 . i tried below steps: Export Dock…

---

## [Error creating pod: container failed to start, ImagePullBackOff](https://forum.ansible.com/t/error-creating-pod-container-failed-to-start-imagepullbackoff/36871)

<div class="topic-metadata">

**Author:** [@hosyhama](https://forum.ansible.com/u/hosyhama)\
**Replies:** 4\
**Last updated:** [July 27, 2022, 7:45pm UTC](https://forum.ansible.com/t/error-creating-pod-container-failed-to-start-imagepullbackoff/36871 "2022-07-27T19:45:51Z")

</div>

I am using AWX20.0.0 It worked fine for up to 2 months “Error creating pod: container failed to start, ImagePullBackOff” is displayed in Job Output View when the playbook is executed. I want to know the cause. Does an…

---

## [AIX execution time disastrous, too much system calls - EBADF](https://forum.ansible.com/t/aix-execution-time-disastrous-too-much-system-calls-ebadf/36645)

<div class="topic-metadata">

**Author:** [@Benjamin\_Lienard](https://forum.ansible.com/u/Benjamin_Lienard)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 12:09pm UTC](https://forum.ansible.com/t/aix-execution-time-disastrous-too-much-system-calls-ebadf/36645 "2022-07-27T12:09:02Z")

</div>

Hello, We use Ansible to manage our +/- 450 AIX lpars & wpars + some linux and some Solaris server. For the big picture : The ansible server is an AIX lpar with 5 CPU POWER9 in SMT8 mode ( 40 threads ), 128 Gb of ram.…

---

## [Self assigning to issue](https://forum.ansible.com/t/self-assigning-to-issue/36883)

<div class="topic-metadata">

**Author:** [@Nansamba\_Ssensalo](https://forum.ansible.com/u/Nansamba_Ssensalo)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 11:53am UTC](https://forum.ansible.com/t/self-assigning-to-issue/36883 "2022-07-27T11:53:54Z")

</div>

This is my first open source contribution. Was planning to assign myself to : Update Social Auth on Login Screen #12040 However I can’t figure out how. I messaged a Kabir who said he has been working on it, and never f…

---

## [moving a folder on a remote whether it exists](https://forum.ansible.com/t/moving-a-folder-on-a-remote-whether-it-exists/36910)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 11:17am UTC](https://forum.ansible.com/t/moving-a-folder-on-a-remote-whether-it-exists/36910 "2022-07-27T11:17:04Z")

</div>

I am trying to rename/move a folder on a remote host and try to do this based on whether it exists 2 TASKS should be doing this

---

## [Hooks in Ansible](https://forum.ansible.com/t/hooks-in-ansible/36900)

<div class="topic-metadata">

**Author:** [@dangoncalves](https://forum.ansible.com/u/dangoncalves)\
**Replies:** 6\
**Last updated:** [July 26, 2022, 3:47pm UTC](https://forum.ansible.com/t/hooks-in-ansible/36900 "2022-07-26T15:47:03Z")

</div>

Hello, I wonder if you already had some discussions about hooks in Ansible. I tried some research but found nothing useful about what I am looking for. What I want to do is executing some code at the end of the playboo…

---

## [How  can I install TimescaleDB extension with Ansible?](https://forum.ansible.com/t/how-can-i-install-timescaledb-extension-with-ansible/36909)

<div class="topic-metadata">

**Author:** [@BENFARHAT\_MohamedYou](https://forum.ansible.com/u/BENFARHAT_MohamedYou)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 3:27pm UTC](https://forum.ansible.com/t/how-can-i-install-timescaledb-extension-with-ansible/36909 "2022-07-26T15:27:14Z")

</div>

I installed Postgresql and now I want to install his extension (TimescaleDB) but I can’t find how to do it

---

## [Ansible-Playbook for fetch D-link switch Serial Number](https://forum.ansible.com/t/ansible-playbook-for-fetch-d-link-switch-serial-number/36905)

<div class="topic-metadata">

**Author:** [@Rajdeep\_Rathod](https://forum.ansible.com/u/Rajdeep_Rathod)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 7:43am UTC](https://forum.ansible.com/t/ansible-playbook-for-fetch-d-link-switch-serial-number/36905 "2022-07-26T07:43:22Z")

</div>

Hello, I have multiple network switch. i want to get serial number using ansible play book. here i have tried but not succeed. In below example i have output of so many lines i have get only Serial Number Please help …

---

## [IMDS V2 Unauthorised Error || Guidance Required](https://forum.ansible.com/t/imds-v2-unauthorised-error-guidance-required/36902)

<div class="topic-metadata">

**Author:** [@SARANSH\_BANKIWAL](https://forum.ansible.com/u/SARANSH_BANKIWAL)\
**Replies:** 6\
**Last updated:** [July 26, 2022, 2:54am UTC](https://forum.ansible.com/t/imds-v2-unauthorised-error-guidance-required/36902 "2022-07-26T02:54:18Z")

</div>

Hello all, Currently i was working on migration from IMDS v1 to IMDS v2 in AWS and got the below error. FAILED! =\> {“changed”: false, “msg”: “Failed to retrieve metadata from AWS: HTTP Error 401: Unauthorized”, “respon…

---

## [AWX translation](https://forum.ansible.com/t/awx-translation/36894)

<div class="topic-metadata">

**Author:** [@Temuri\_Doghonadze](https://forum.ansible.com/u/Temuri_Doghonadze)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 1:58pm UTC](https://forum.ansible.com/t/awx-translation/36894 "2022-07-25T13:58:25Z")

</div>

Hello, I want to translate AWX to Georgian. Is there anything else needed, other than translation of 2 po files? Also, is there any way to force/specify WUI language? google says “it’s being fetched from browser langua…

---

## [Unit testing an inventory plugin](https://forum.ansible.com/t/unit-testing-an-inventory-plugin/36899)

<div class="topic-metadata">

**Author:** [@Jean\_Seurin](https://forum.ansible.com/u/Jean_Seurin)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 1:11pm UTC](https://forum.ansible.com/t/unit-testing-an-inventory-plugin/36899 "2022-07-25T13:11:48Z")

</div>

This topic has been raised 3 years ago but it provided no answer. I want to be able to unittest an Inventory plugin I am developing. Basically, all I need is a way to execute the parse(self, inventory, loader, path, ca…

---

## [why am i not able to access id\_rsa.pub as another user?](https://forum.ansible.com/t/why-am-i-not-able-to-access-id-rsa-pub-as-another-user/36885)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [July 25, 2022, 1:04pm UTC](https://forum.ansible.com/t/why-am-i-not-able-to-access-id-rsa-pub-as-another-user/36885 "2022-07-25T13:04:35Z")

</div>

I still keep geting this error fatal: \[localhost\]: FAILED! =\> {“msg”: “An unhandled exception occurred while templating ‘{{ lookup(‘file’, ‘/home/rke/.ssh/id\_rsa.pub’)}}’. Error was a \<class ‘ansible.errors.AnsibleError…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=66)

[Next page](https://forum.ansible.com/c/archives/31.md?page=68)
