# Ansible Project

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

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

**Page:** 40

---

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

---

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

---

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

---

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

---

## [Ansible module for VM workstation to PowerOn & PowerOff](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898)

<div class="topic-metadata">

**Author:** [@Mohan](https://forum.ansible.com/u/Mohan)\
**Replies:** 2\
**Last updated:** [July 25, 2022, 12:28pm UTC](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898 "2022-07-25T12:28:28Z")

</div>

Hello Community members, I’m using vmware workstation version 15.0.0 on Ubuntu-20.04-LTS machine. We have deployed VM workstation based Windows-10 machines in that. I want to know which ansible module we can use to Pow…

---

## [looking for support](https://forum.ansible.com/t/looking-for-support/36895)

<div class="topic-metadata">

**Author:** [@Shyju\_Krishnan](https://forum.ansible.com/u/Shyju_Krishnan)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 10:37am UTC](https://forum.ansible.com/t/looking-for-support/36895 "2022-07-25T10:37:23Z")

</div>

---

## [AWS VPN is not taking IP address as defined in ansible VPN module](https://forum.ansible.com/t/aws-vpn-is-not-taking-ip-address-as-defined-in-ansible-vpn-module/36896)

<div class="topic-metadata">

**Author:** [@maulik\_patel](https://forum.ansible.com/u/maulik_patel)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 5:04am UTC](https://forum.ansible.com/t/aws-vpn-is-not-taking-ip-address-as-defined-in-ansible-vpn-module/36896 "2022-07-25T05:04:02Z")

</div>

i’m looking for assistance for Tunnel IP address assignment defined by my own in aws for ‘ec2\_vpc\_vpn’ but somehow aws is taking its own address ( 169.254.87.200/30 & 169.254.164.108/30 ) rather than i have returned fact…

---

## [python error during task](https://forum.ansible.com/t/python-error-during-task/36890)

<div class="topic-metadata">

**Author:** [@mdidomenico](https://forum.ansible.com/u/mdidomenico)\
**Replies:** 5\
**Last updated:** [July 24, 2022, 10:55am UTC](https://forum.ansible.com/t/python-error-during-task/36890 "2022-07-24T10:55:49Z")

</div>

sorry for the cross post, i sent this to the devel list by mistake

---

## [Execute Ansible playbooks in Terraform main.tf file](https://forum.ansible.com/t/execute-ansible-playbooks-in-terraform-main-tf-file/36892)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 5\
**Last updated:** [July 23, 2022, 7:16pm UTC](https://forum.ansible.com/t/execute-ansible-playbooks-in-terraform-main-tf-file/36892 "2022-07-23T19:16:07Z")

</div>

Hi, Is there a way to execute Ansible playbooks in Terraform main.tf file? For example I want to deploy nginx webserver inside GCP GCE VM Instance using Ansible playbook once GCP GCE VM Instance is provisioned using Ter…

---

## [how do i lookup id\_rsa.pub on a host and copy it to authorized keys on multiple servers](https://forum.ansible.com/t/how-do-i-lookup-id-rsa-pub-on-a-host-and-copy-it-to-authorized-keys-on-multiple-servers/36877)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 31\
**Last updated:** [July 22, 2022, 10:37pm UTC](https://forum.ansible.com/t/how-do-i-lookup-id-rsa-pub-on-a-host-and-copy-it-to-authorized-keys-on-multiple-servers/36877 "2022-07-22T22:37:55Z")

</div>

how do I lookup id\_rsa.pub on a host and then run ansible playbook to copy it to their authorized\_key file?

---

## [ansible play book is required for upgrading the Kubernetes OS](https://forum.ansible.com/t/ansible-play-book-is-required-for-upgrading-the-kubernetes-os/36887)

<div class="topic-metadata">

**Author:** [@Shyju\_Krishnan](https://forum.ansible.com/u/Shyju_Krishnan)\
**Replies:** 0\
**Last updated:** [July 22, 2022, 5:31pm UTC](https://forum.ansible.com/t/ansible-play-book-is-required-for-upgrading-the-kubernetes-os/36887 "2022-07-22T17:31:52Z")

</div>

Hi All, Looking ansible playbook for upgrading the Kubernetes cluster OS Like drain and uncroden etc … regards Shyju

---

## [How to ignore jinja2 braces {{}} in j2 template file](https://forum.ansible.com/t/how-to-ignore-jinja2-braces-in-j2-template-file/36886)

<div class="topic-metadata">

**Author:** [@Mahesh\_Nalavade](https://forum.ansible.com/u/Mahesh_Nalavade)\
**Replies:** 1\
**Last updated:** [July 22, 2022, 2:01pm UTC](https://forum.ansible.com/t/how-to-ignore-jinja2-braces-in-j2-template-file/36886 "2022-07-22T14:01:11Z")

</div>

Hi Team, I have below template variables:

---

## [date time](https://forum.ansible.com/t/date-time/36884)

<div class="topic-metadata">

**Author:** [@Marcel\_de\_Vries](https://forum.ansible.com/u/Marcel_de_Vries)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 11:47am UTC](https://forum.ansible.com/t/date-time/36884 "2022-07-22T11:47:49Z")

</div>

---

## [New releases: ansible-core 2.13.2](https://forum.ansible.com/t/new-releases-ansible-core-2-13-2/36866)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [July 22, 2022, 2:44am UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-13-2/36866 "2022-07-22T02:44:45Z")

</div>

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

---

## [Non Config Data in Ansible NRM Module](https://forum.ansible.com/t/non-config-data-in-ansible-nrm-module/36008)

<div class="topic-metadata">

**Author:** [@Anees\_fathima\_Saifud](https://forum.ansible.com/u/Anees_fathima_Saifud)\
**Replies:** 4\
**Last updated:** [July 21, 2022, 11:41pm UTC](https://forum.ansible.com/t/non-config-data-in-ansible-nrm-module/36008 "2022-07-21T23:41:48Z")

</div>

Hi, Could you please confirm the below query, Can we define non-configurable attributes in the NRM model ? if Yes, how do we achieve the same. If No, is NRM scope is restricted only to configurable attributes ? Th…

---

## [netbox\_interface module: Failed to establish connection to Netbox API"](https://forum.ansible.com/t/netbox-interface-module-failed-to-establish-connection-to-netbox-api/33300)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 4\
**Last updated:** [July 21, 2022, 4:31pm UTC](https://forum.ansible.com/t/netbox-interface-module-failed-to-establish-connection-to-netbox-api/33300 "2022-07-21T16:31:08Z")

</div>

Hi, I am quite desparate already. I want to use the netbox\_interface module in ansible, but it fails. To check it, I use the uri module: name: URI uri:: url: https://127.0.0.1/api/ method: GET header: Accept: app…

---

## [find element with dictionary in Ansible and return value](https://forum.ansible.com/t/find-element-with-dictionary-in-ansible-and-return-value/36875)

<div class="topic-metadata">

**Author:** [@maulik\_patel](https://forum.ansible.com/u/maulik_patel)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 2:24pm UTC](https://forum.ansible.com/t/find-element-with-dictionary-in-ansible-and-return-value/36875 "2022-07-21T14:24:43Z")

</div>

hi , i’m trying to value of one yaml file1 with another file2 which has list of dict and if element if file1 matched with key/value of file2 then need to use value of file1 need to use as a key of file2 and return value…

---

## [Ansible skipping other hosts](https://forum.ansible.com/t/ansible-skipping-other-hosts/36879)

<div class="topic-metadata">

**Author:** [@mboncalo](https://forum.ansible.com/u/mboncalo)\
**Replies:** 0\
**Last updated:** [July 20, 2022, 5:36pm UTC](https://forum.ansible.com/t/ansible-skipping-other-hosts/36879 "2022-07-20T17:36:22Z")

</div>

Hi, I have some tasks in a role that creates .ssh directory, generates a key on one of the servers, copy the public key on local and then run authorized\_key module to copy the public key in the other nodes. The problem…

---

## [Get list of failed instances](https://forum.ansible.com/t/get-list-of-failed-instances/36868)

<div class="topic-metadata">

**Author:** [@Vinita\_Shah1](https://forum.ansible.com/u/Vinita_Shah1)\
**Replies:** 3\
**Last updated:** [July 20, 2022, 5:31pm UTC](https://forum.ansible.com/t/get-list-of-failed-instances/36868 "2022-07-20T17:31:15Z")

</div>

I have roles in the playbook.

---

## [display information returned with debug in a more usable layout](https://forum.ansible.com/t/display-information-returned-with-debug-in-a-more-usable-layout/36865)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 5\
**Last updated:** [July 20, 2022, 5:29pm UTC](https://forum.ansible.com/t/display-information-returned-with-debug-in-a-more-usable-layout/36865 "2022-07-20T17:29:31Z")

</div>

I am trying to retreive information about installed versions of a package on a couple of hosts. name: check pgBackRest version command: /usr/bin/pgbackrest version register: backrest\_version name: Print return in…

---

## [identation and spaces with lininfile](https://forum.ansible.com/t/identation-and-spaces-with-lininfile/36878)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 5:12pm UTC](https://forum.ansible.com/t/identation-and-spaces-with-lininfile/36878 "2022-07-20T17:12:04Z")

</div>

I am really stuck trying to insert a line with lineinfile with 5 space indentation any idea? task is name: add line lineinfile: backup: no #backrefs: yes state: present path: “{{ file\_path }}” #regexp: ‘^(\\s\*)\[…

---

## [Can't display Ansible Error ( no\_log=true)](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874)

<div class="topic-metadata">

**Author:** [@A.T](https://forum.ansible.com/u/A.T)\
**Replies:** 3\
**Last updated:** [July 19, 2022, 11:05pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874 "2022-07-19T23:05:06Z")

</div>

Hi Ansible peeps, I have this environment to automate VMware with Ansible Is there any way to alter this behaviour to allow the task to display error, I can’t seem to debug this way. TASK \[Adding ESXi host “esxi01-mgm…

---

## [Create VM with Operating System with Ansible](https://forum.ansible.com/t/create-vm-with-operating-system-with-ansible/36863)

<div class="topic-metadata">

**Author:** [@fabiuscom1](https://forum.ansible.com/u/fabiuscom1)\
**Replies:** 5\
**Last updated:** [July 19, 2022, 10:22pm UTC](https://forum.ansible.com/t/create-vm-with-operating-system-with-ansible/36863 "2022-07-19T22:22:02Z")

</div>

Hi, i want to do a playbook that create a vm and from iso file, install the operatin system. It’s possible? Thansk

---

## [having issues with lineinfile insert](https://forum.ansible.com/t/having-issues-with-lineinfile-insert/36873)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [July 19, 2022, 6:41pm UTC](https://forum.ansible.com/t/having-issues-with-lineinfile-insert/36873 "2022-07-19T18:41:10Z")

</div>

I keep getting errors when running an insert line task the task to insert is name: add line lineinfile: backup: no backrefs: yes state: present path: “{{ file\_path }}” regexp: ‘^(\\s\*)\[#\]?{{ item.search }}(: )\*’ …

---

## [error with appending list in Ansible](https://forum.ansible.com/t/error-with-appending-list-in-ansible/36869)

<div class="topic-metadata">

**Author:** [@maulik\_patel](https://forum.ansible.com/u/maulik_patel)\
**Replies:** 3\
**Last updated:** [July 19, 2022, 4:03pm UTC](https://forum.ansible.com/t/error-with-appending-list-in-ansible/36869 "2022-07-19T16:03:54Z")

</div>

I’m trying to append new tunnel interface to empty list, but i’m got below error. Can you please help me out here ? tasks: - name: empty list set\_fact: list\_tunnel: \[\] - name: create new list for tunnel set\_fact: l…

---

## [Ansible playbook to monitor disk space utilization and generate alert](https://forum.ansible.com/t/ansible-playbook-to-monitor-disk-space-utilization-and-generate-alert/36867)

<div class="topic-metadata">

**Author:** [@Amit\_Das](https://forum.ansible.com/u/Amit_Das)\
**Replies:** 4\
**Last updated:** [July 18, 2022, 8:39pm UTC](https://forum.ansible.com/t/ansible-playbook-to-monitor-disk-space-utilization-and-generate-alert/36867 "2022-07-18T20:39:30Z")

</div>

Dear All, I am relatively new to Ansible. Could someone please guide me on writing a playbook which runs hourly to monitor the disk space and generates an email alert if the threshold is breached? Thank you! Kind rega…

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

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