# Ansible Project

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

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

**Page:** 87

---

## [Automate Custome Attribute Population - Vmware](https://forum.ansible.com/t/automate-custome-attribute-population-vmware/34668)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 10\
**Last updated:** [February 24, 2021, 6:13pm UTC](https://forum.ansible.com/t/automate-custome-attribute-population-vmware/34668 "2021-02-24T18:13:22Z")

</div>

Hi Here are my custom attributes Today these are populated with community.vmware.vmware\_guest\_custom\_attributes But that is manually from the file… it has human error possible eg Ubuntu 20.04 folks may type Ubuntu…

---

## [jmespath error](https://forum.ansible.com/t/jmespath-error/34675)

<div class="topic-metadata">

**Author:** [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Replies:** 4\
**Last updated:** [February 24, 2021, 8:41am UTC](https://forum.ansible.com/t/jmespath-error/34675 "2021-02-24T08:41:55Z")

</div>

Hi, could someone please advise. after running ansible playbook through jenkins i am getting below error: TASK \[prep\_ccp\_inventory : master ip list from json content\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[playground.tank.local\]…

---

## [SQL Server DB Restore](https://forum.ansible.com/t/sql-server-db-restore/34666)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar\_Singh](https://forum.ansible.com/u/Praveen_Kumar_Singh)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 7:07am UTC](https://forum.ansible.com/t/sql-server-db-restore/34666 "2021-02-24T07:07:40Z")

</div>

Hello Everyone, I am trying to create a playbook to perform the three below mentioned tasks. I am able to accomplish the first 2 tasks but for the third one which is to restore the Database I need to change the host ser…

---

## [Issues with Playbook Order](https://forum.ansible.com/t/issues-with-playbook-order/34657)

<div class="topic-metadata">

**Author:** [@Jeremy\_Smith](https://forum.ansible.com/u/Jeremy_Smith)\
**Replies:** 3\
**Last updated:** [February 23, 2021, 5:07pm UTC](https://forum.ansible.com/t/issues-with-playbook-order/34657 "2021-02-23T17:07:28Z")

</div>

Hello All, I currently have a YAML playbook that is used to restart all servers in a specific environment. There are 2, sometimes 3 groups of hosts depending on the environment. My goal is to have the primary host in ea…

---

## [APT module to target only OS & not Application repo](https://forum.ansible.com/t/apt-module-to-target-only-os-not-application-repo/34663)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 2\
**Last updated:** [February 23, 2021, 4:42pm UTC](https://forum.ansible.com/t/apt-module-to-target-only-os-not-application-repo/34663 "2021-02-23T16:42:57Z")

</div>

Hello Is there any way to target only primary OS related packages ? name: Update all packages to their latest version apt: name: “\*” state: latest At times 3rd Party packages are added to /etc/apt/sources.list So…

---

## [Request failed: \<urlopen error ('\_ssl.c:602: The handshake operation timed out',)](https://forum.ansible.com/t/request-failed-urlopen-error-ssl-c-the-handshake-operation-timed-out/34673)

<div class="topic-metadata">

**Author:** [@Kumar\_R](https://forum.ansible.com/u/Kumar_R)\
**Replies:** 5\
**Last updated:** [February 23, 2021, 2:18pm UTC](https://forum.ansible.com/t/request-failed-urlopen-error-ssl-c-the-handshake-operation-timed-out/34673 "2021-02-23T14:18:25Z")

</div>

OS: centos We have ansible script

---

## [wait\_for module doesn't work as expected with router](https://forum.ansible.com/t/wait-for-module-doesnt-work-as-expected-with-router/34659)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 6:49pm UTC](https://forum.ansible.com/t/wait-for-module-doesnt-work-as-expected-with-router/34659 "2021-02-22T18:49:59Z")

</div>

Hi, I am writing a script to upgrade IOS in cisco router. After i give reload command, the next task to be executed is the below one. This part of the playbook basically waits for the device to be reachable again on po…

---

## [Not able to copy backup files between 2 remote windows server](https://forum.ansible.com/t/not-able-to-copy-backup-files-between-2-remote-windows-server/34658)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar\_Singh](https://forum.ansible.com/u/Praveen_Kumar_Singh)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 1:45pm UTC](https://forum.ansible.com/t/not-able-to-copy-backup-files-between-2-remote-windows-server/34658 "2021-02-22T13:45:37Z")

</div>

Hello Everyone, I am trying to copy backup files from one remote windows server to another windows server using ansible playbook but not able to do so. I am using below playbook and which is running successfully also bu…

---

## [Escaping { character in a task that has an ansible variable](https://forum.ansible.com/t/escaping-character-in-a-task-that-has-an-ansible-variable/26955)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 1:15pm UTC](https://forum.ansible.com/t/escaping-character-in-a-task-that-has-an-ansible-variable/26955 "2021-02-22T13:15:41Z")

</div>

Hello all, I have a task that need to run the command below: ipa dnsrecord-add idm.example.com cluster --a-rec={192.0.2.40,192.0.2.41} The problem is that the IPA and ansible both use the "{" character. I have attem…

---

## [urlopen error Tunnel connection failed: 403 Forbidden](https://forum.ansible.com/t/urlopen-error-tunnel-connection-failed-403-forbidden/34665)

<div class="topic-metadata">

**Author:** [@Devops\_testing](https://forum.ansible.com/u/Devops_testing)\
**Replies:** 0\
**Last updated:** [February 22, 2021, 9:21am UTC](https://forum.ansible.com/t/urlopen-error-tunnel-connection-failed-403-forbidden/34665 "2021-02-22T09:21:59Z")

</div>

Hello Experts, I have playbook which works fine since 6 months. It’s started throwing tunnel connection failed, since yesterday morning. However the curl works fine. Can someone let me know if this is a bug or any other…

---

## [when  ansible Conditionals](https://forum.ansible.com/t/when-ansible-conditionals/34661)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 8:22am UTC](https://forum.ansible.com/t/when-ansible-conditionals/34661 "2021-02-22T08:22:31Z")

</div>

Hello In below how can i skip the output when is not relevant or how to do this better way ? Thanks

---

## [When conditional does not work with ios\_config module. Why is it so?](https://forum.ansible.com/t/when-conditional-does-not-work-with-ios-config-module-why-is-it-so/34625)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 4\
**Last updated:** [February 20, 2021, 2:49pm UTC](https://forum.ansible.com/t/when-conditional-does-not-work-with-ios-config-module-why-is-it-so/34625 "2021-02-20T14:49:26Z")

</div>

1st playbook uses ios\_command module and gets executed as intended (to display the output when hostname of device contains router1). However 2nd playbook uses ios\_config module and fails when i use the ‘when’ conditiona…

---

## [Backup info saved in TXT file is not in readable format, please help](https://forum.ansible.com/t/backup-info-saved-in-txt-file-is-not-in-readable-format-please-help/34639)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 2:42pm UTC](https://forum.ansible.com/t/backup-info-saved-in-txt-file-is-not-in-readable-format-please-help/34639 "2021-02-20T14:42:28Z")

</div>

Below is my playbook to backup info from router and save it to a file. But when i open the TXT file in ansible controller, backup info is very difficult to read. Please look at the screenshot in below link: https://drive…

---

## [OpenJDK Install - Specific version](https://forum.ansible.com/t/openjdk-install-specific-version/34645)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 3\
**Last updated:** [February 20, 2021, 12:41pm UTC](https://forum.ansible.com/t/openjdk-install-specific-version/34645 "2021-02-20T12:41:20Z")

</div>

Is there a way to install a specic version of JDK8 on CentOS using ansible? we are looking to pin versions of JDK to java-1.8.0-openjdk-devel.x86\_64 1:1.8.0.282.b08-1.el7\_9 Thank you.

---

## [intersection of groups in inventory](https://forum.ansible.com/t/intersection-of-groups-in-inventory/34656)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 5\
**Last updated:** [February 19, 2021, 9:07pm UTC](https://forum.ansible.com/t/intersection-of-groups-in-inventory/34656 "2021-02-19T21:07:34Z")

</div>

Hi, In my inventory file I have “\[linux\]” and “\[development\]” groups. I want to patch the intersection of those groups. I know for one I can “ansible-playbook —limit linux patching.yml”, but how do I do the intersection…

---

## [inventory inside play](https://forum.ansible.com/t/inventory-inside-play/34646)

<div class="topic-metadata">

**Author:** [@Jost](https://forum.ansible.com/u/Jost)\
**Replies:** 5\
**Last updated:** [February 19, 2021, 6:44pm UTC](https://forum.ansible.com/t/inventory-inside-play/34646 "2021-02-19T18:44:54Z")

</div>

I’m trying to deploy vms from template on esx with vmware\_guest module and this work great, but I would like to do inside this playbook some modification on vm after deployment. My inventory file is being populated with …

---

## [loop on register](https://forum.ansible.com/t/loop-on-register/34652)

<div class="topic-metadata">

**Author:** [@Michael\_Rossler](https://forum.ansible.com/u/Michael_Rossler)\
**Replies:** 4\
**Last updated:** [February 19, 2021, 2:20pm UTC](https://forum.ansible.com/t/loop-on-register/34652 "2021-02-19T14:20:48Z")

</div>

Dear ansible community, System: CentOS 7, ansible version 2.9.17 I like to check if two files are already deployed on a node and if not it should copy the files. For this I have the folling tasks/main.yml # tasks fil…

---

## [Trying to reboot an Ubuntu system](https://forum.ansible.com/t/trying-to-reboot-an-ubuntu-system/34636)

<div class="topic-metadata">

**Author:** [@Peter\_Kaagman](https://forum.ansible.com/u/Peter_Kaagman)\
**Replies:** 2\
**Last updated:** [February 19, 2021, 9:28am UTC](https://forum.ansible.com/t/trying-to-reboot-an-ubuntu-system/34636 "2021-02-19T09:28:38Z")

</div>

fatal: \[node-js.atlascollege.nl\]: FAILED! =\> {“changed”: false, “elapsed”: 0, “msg”: “Reboot command failed. Error was Failed to set wall message, ignoring: Interactive authentication required.\\r\\nFailed to call Schedule…

---

## [New release: ansible-base 2.10.6](https://forum.ansible.com/t/new-release-ansible-base-2-10-6/34650)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [February 19, 2021, 7:29am UTC](https://forum.ansible.com/t/new-release-ansible-base-2-10-6/34650 "2021-02-19T07:29:41Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.6 is now available! A full listing of changes found in this release can be found in the changelog linked below. Of note, this release addre…

---

## [New Ansible releases 2.8.19 and 2.9.18](https://forum.ansible.com/t/new-ansible-releases-2-8-19-and-2-9-18/34649)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [February 19, 2021, 7:28am UTC](https://forum.ansible.com/t/new-ansible-releases-2-8-19-and-2-9-18/34649 "2021-02-19T07:28:48Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.8.19 and 2.9.18 are now available! A full listing of changes found in this release can be found in the changelog linked below. Of note, this releas…

---

## [Mount file share based on variable in loop](https://forum.ansible.com/t/mount-file-share-based-on-variable-in-loop/34647)

<div class="topic-metadata">

**Author:** [@Tim\_Shubitz](https://forum.ansible.com/u/Tim_Shubitz)\
**Replies:** 4\
**Last updated:** [February 19, 2021, 1:16am UTC](https://forum.ansible.com/t/mount-file-share-based-on-variable-in-loop/34647 "2021-02-19T01:16:44Z")

</div>

Greetings, folks! I’m trying to have one single source-of-truth for file share info and mount individual shares on different servers depending on need. Give a list of “these servers get these shares, those get those” a…

---

## [copy content module is not readable, how to remove all special character and make it proper text readable](https://forum.ansible.com/t/copy-content-module-is-not-readable-how-to-remove-all-special-character-and-make-it-proper-text-readable/34637)

<div class="topic-metadata">

**Author:** [@Sameer\_Nagwekar](https://forum.ansible.com/u/Sameer_Nagwekar)\
**Replies:** 4\
**Last updated:** [February 18, 2021, 6:05pm UTC](https://forum.ansible.com/t/copy-content-module-is-not-readable-how-to-remove-all-special-character-and-make-it-proper-text-readable/34637 "2021-02-18T18:05:24Z")

</div>

I am able to run this playbook it copies the file to destination folder but it has all the special characters and the text is not in readable format. Any help in formatting the output file? tasks: name: collect the c…

---

## [Ansible-3.0.0 released](https://forum.ansible.com/t/ansible-3-0-0-released/34644)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 4:07pm UTC](https://forum.ansible.com/t/ansible-3-0-0-released/34644 "2021-02-18T16:07:37Z")

</div>

Hi all, We're happy to announce that the ansible-3.0.0 package is now available! This update is based on the ansible-base-2.10.x package just like ansible-2.10 was so the changes shouldn't be too major. However, it d…

---

## [jxmlease is required to display response in json](https://forum.ansible.com/t/jxmlease-is-required-to-display-response-in-json/34642)

<div class="topic-metadata">

**Author:** [@chtsalid](https://forum.ansible.com/u/chtsalid)\
**Replies:** 4\
**Last updated:** [February 18, 2021, 2:54pm UTC](https://forum.ansible.com/t/jxmlease-is-required-to-display-response-in-json/34642 "2021-02-18T14:54:30Z")

</div>

Hi all, I am running a task using the netconf\_get module and encountering a problem to display an output in json format? I am getting the following error. jxmlease is required to display response in json However jxml…

---

## [How to list google cloud regional zones with number of instances created in Ansible](https://forum.ansible.com/t/how-to-list-google-cloud-regional-zones-with-number-of-instances-created-in-ansible/34641)

<div class="topic-metadata">

**Author:** [@Shristi\_Singh](https://forum.ansible.com/u/Shristi_Singh)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 10:23am UTC](https://forum.ansible.com/t/how-to-list-google-cloud-regional-zones-with-number-of-instances-created-in-ansible/34641 "2021-02-18T10:23:54Z")

</div>

Hi Team, I am trying to figure out how can I get the below information using Ansible. us-east1 ZonesInstancesDisks Zone B 0 2 Zone C 0 1 Zone D 0 0 us-east4 ZonesInstancesDisks Zone A 0 0 Zone B 1 1 Z…

---

## [How to Run program as an administrator](https://forum.ansible.com/t/how-to-run-program-as-an-administrator/34640)

<div class="topic-metadata">

**Author:** [@sd1](https://forum.ansible.com/u/sd1)\
**Replies:** 3\
**Last updated:** [February 18, 2021, 10:21am UTC](https://forum.ansible.com/t/how-to-run-program-as-an-administrator/34640 "2021-02-18T10:21:04Z")

</div>

I am trying to run a software via win\_package module. But that software requires running as administrator which causes my script stuck at one position. How to run it as administrator. I am running trough a user which a m…

---

## [Constants in ansible playbooks](https://forum.ansible.com/t/constants-in-ansible-playbooks/34623)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Livingstone](https://forum.ansible.com/u/Emmanuel_Livingstone)\
**Replies:** 5\
**Last updated:** [February 18, 2021, 9:44am UTC](https://forum.ansible.com/t/constants-in-ansible-playbooks/34623 "2021-02-18T09:44:51Z")

</div>

Hi, During a recent code review of an ansible playbook, I noticed one dev using variables defined in playbook group\_vars/all.yml as constants. This is inline with general coding guideline of replacing magic numbers/lite…

---

## [Use of Nested Variables](https://forum.ansible.com/t/use-of-nested-variables/34629)

<div class="topic-metadata">

**Author:** [@penguinpages](https://forum.ansible.com/u/penguinpages)\
**Replies:** 11\
**Last updated:** [February 17, 2021, 9:01pm UTC](https://forum.ansible.com/t/use-of-nested-variables/34629 "2021-02-17T21:01:55Z")

</div>

Goal: When playbook / task is called.. use varibles set for specific host withing a group /hosts.yml # site wide master ansible inentory all: children: Physical HyperConverge Server Devices for environment hci\_hosts: …

---

## [Win\_copy Not working](https://forum.ansible.com/t/win-copy-not-working/34626)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar\_Singh](https://forum.ansible.com/u/Praveen_Kumar_Singh)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 2:38pm UTC](https://forum.ansible.com/t/win-copy-not-working/34626 "2021-02-17T14:38:09Z")

</div>

I am trying to copy backup file from one remote windows server to another windows server using below playbook but the backup file is not copying. Although the playbook is running successful then also the backup file is n…

---

## [Please review and critique my script for IOS upgrade activity](https://forum.ansible.com/t/please-review-and-critique-my-script-for-ios-upgrade-activity/34634)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 11:17am UTC](https://forum.ansible.com/t/please-review-and-critique-my-script-for-ios-upgrade-activity/34634 "2021-02-17T11:17:09Z")

</div>

Hi, I have prepared a script for of IOS upgrade activity. Please review and give me your suggestions/scope for improvement, etc I have prepared the scirpt for pre-upgrade tasks only as of now. https://drive.google.com…

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

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