# Archives

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

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

**Page:** 144

---

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

---

## [Ansible vault best practice with AWX](https://forum.ansible.com/t/ansible-vault-best-practice-with-awx/34655)

<div class="topic-metadata">

**Author:** [@Ted\_Underhill](https://forum.ansible.com/u/Ted_Underhill)\
**Replies:** 8\
**Last updated:** [February 19, 2021, 9:30pm UTC](https://forum.ansible.com/t/ansible-vault-best-practice-with-awx/34655 "2021-02-19T21:30:57Z")

</div>

Hi I currently have existing playbooks which use vault files in group\_vars (ie. group\_vars/dev/vault-all.yml). I’ve been having problems integrating my existing playbooks into AWX. When adding a source to my inventory v…

---

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

---

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

<div class="topic-metadata">

**Author:** [@Yan](https://forum.ansible.com/u/Yan)\
**Replies:** 3\
**Last updated:** [February 19, 2021, 3:48pm UTC](https://forum.ansible.com/t/awx-upgarde/34651 "2021-02-19T15:48:26Z")

</div>

Hello, I’m quite sure to ask for something that has already been discussed many times, but is there an easy way to upgrade my AWX installation to the latest one ? Thx in advance. Regards Yan

---

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

---

## [AD authentification](https://forum.ansible.com/t/ad-authentification/34607)

<div class="topic-metadata">

**Author:** [@Yan](https://forum.ansible.com/u/Yan)\
**Replies:** 3\
**Last updated:** [February 19, 2021, 12:30pm UTC](https://forum.ansible.com/t/ad-authentification/34607 "2021-02-19T12:30:51Z")

</div>

Hi, I do not manage to connect to our AD. I 've got this in our LDAP conf (See screenshot). Is there anything else to do to connect our AD users on AWX ? When I do this: $\> ldapsearch -H ldap://our\_AD:389 -x -D “adm…

---

## [awx 17.0.1 image build fail missing dependency @patternfly/react-table](https://forum.ansible.com/t/awx-17-0-1-image-build-fail-missing-dependency-patternfly-react-table/34653)

<div class="topic-metadata">

**Author:** [@sebastien\_chanson](https://forum.ansible.com/u/sebastien_chanson)\
**Replies:** 0\
**Last updated:** [February 19, 2021, 12:18pm UTC](https://forum.ansible.com/t/awx-17-0-1-image-build-fail-missing-dependency-patternfly-react-table/34653 "2021-02-19T12:18:26Z")

</div>

Hi, Before creating a bug on AWX github I wanted to make sure I am not doing somethign stupid. I build awx tag 17.0.1 using docker. I do not use prebuilt image as I have an ssl certificate to setup. When building the …

---

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

---

## [requirements.yml failing due to a non existant new line char](https://forum.ansible.com/t/requirements-yml-failing-due-to-a-non-existant-new-line-char/34643)

<div class="topic-metadata">

**Author:** [@john.westcott.iv](https://forum.ansible.com/u/john.westcott.iv)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 2:30pm UTC](https://forum.ansible.com/t/requirements-yml-failing-due-to-a-non-existant-new-line-char/34643 "2021-02-18T14:30:41Z")

</div>

For issues with Ansible Tower its best to open a support ticket with Red Hat. -John

---

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

---

## [yml --\> yml file invocation (ansible playbook)](https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638)

<div class="topic-metadata">

**Author:** [@Heman\_Malve](https://forum.ansible.com/u/Heman_Malve)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 7:05am UTC](https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638 "2021-02-18T07:05:43Z")

</div>

Team, Requirement is , 1)define main yaml file with - hosts: localhost (its just execution in localhost) and should contain ~10 yaml files which will perform individual activities based upon hosts {remote servers} entr…

---

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

---

## [Need to deploy script over Azure accunt](https://forum.ansible.com/t/need-to-deploy-script-over-azure-accunt/34633)

<div class="topic-metadata">

**Author:** [@Cloud-devops](https://forum.ansible.com/u/Cloud-devops)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 6:23am UTC](https://forum.ansible.com/t/need-to-deploy-script-over-azure-accunt/34633 "2021-02-17T06:23:38Z")

</div>

Hi All, Do we have any module to run script on Azure account based Vm during launch new Vm or exist VMs.? Task: i have 2 script which need to run on azure VMs but it should be automated (not passing user credential) l…

---

## [Ansible releases delayed due to extreme weather](https://forum.ansible.com/t/ansible-releases-delayed-due-to-extreme-weather/34632)

<div class="topic-metadata">

**Author:** [@sdoran](https://forum.ansible.com/u/sdoran)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 3:06pm UTC](https://forum.ansible.com/t/ansible-releases-delayed-due-to-extreme-weather/34632 "2021-02-16T15:06:50Z")

</div>

Extreme winter weather has caused power outages across parts of the US. As a result, the next round of Ansible relases has been delayed until further notice while our team focuses on trying to stay warm and safe.

---

## [I am facing issue while installing software from local machine in windows.](https://forum.ansible.com/t/i-am-facing-issue-while-installing-software-from-local-machine-in-windows/34631)

<div class="topic-metadata">

**Author:** [@sd1](https://forum.ansible.com/u/sd1)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 2:54pm UTC](https://forum.ansible.com/t/i-am-facing-issue-while-installing-software-from-local-machine-in-windows/34631 "2021-02-16T14:54:41Z")

</div>

hi , I am facing issue while installing software from local machine in windows. here is my code name: installing soft hosts: win gather\_facts: no tasks: name: install soft win\_package: path: E:\\Soft\\UltraViewer\_s…

---

## [register variable with\_items and failed\_when](https://forum.ansible.com/t/register-variable-with-items-and-failed-when/34624)

<div class="topic-metadata">

**Author:** [@Mukuntha\_rajaa](https://forum.ansible.com/u/Mukuntha_rajaa)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 2:53pm UTC](https://forum.ansible.com/t/register-variable-with-items-and-failed-when/34624 "2021-02-16T14:53:34Z")

</div>

Hello, I am using custom module and looping through items to do “kubectl apply -f”. name: create rbac objects kubectl: manifest: “{{ item }}” state: present with\_fileglob: “{{ CAAS.rbac\_manifests\_directory }}/\*” …

---

## [AWX API limit ??](https://forum.ansible.com/t/awx-api-limit/34630)

<div class="topic-metadata">

**Author:** [@Newbie1](https://forum.ansible.com/u/Newbie1)\
**Replies:** 2\
**Last updated:** [February 16, 2021, 2:14pm UTC](https://forum.ansible.com/t/awx-api-limit/34630 "2021-02-16T14:14:58Z")

</div>

Hi Group When running curl/invoke-restmethod on Linux/windows GET request to inventory inventory I get only 50 hosts from 160 listed in inventory https://HOSTNAME/api/v2/inventories/2/hosts/ Also lines in output json …

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

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