# Ansible Project

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

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

**Page:** 28

---

## [Remove bracket and u from json data in ansi le](https://forum.ansible.com/t/remove-bracket-and-u-from-json-data-in-ansi-le/37578)

<div class="topic-metadata">

**Author:** [@Abhiroxxx](https://forum.ansible.com/u/Abhiroxxx)\
**Replies:** 9\
**Last updated:** [January 30, 2023, 12:29pm UTC](https://forum.ansible.com/t/remove-bracket-and-u-from-json-data-in-ansi-le/37578 "2023-01-30T12:29:07Z")

</div>

Hello All, I want remove bracket and u from json data in ansible. I am trying to retrieve data from json. I executed this code in playbook debug: msg: “{{ item }}” loop: “{{ raidurl1 | json\_query(‘json.Members\[\].\[\]…

---

## [Help with loop tasks Ansible](https://forum.ansible.com/t/help-with-loop-tasks-ansible/37586)

<div class="topic-metadata">

**Author:** [@voishunter](https://forum.ansible.com/u/voishunter)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 12:07pm UTC](https://forum.ansible.com/t/help-with-loop-tasks-ansible/37586 "2023-01-30T12:07:12Z")

</div>

I have a trouble with my tasks and can’t find solution. Maybe u can help me) I need to loop this tasks if “{{country\_info\_loop}} != {{region}}” but if “{{country\_info\_loop}} == {{region}}” then stop it. - name: St…

---

## [How to use existing network in a different RG in Azure with ansible](https://forum.ansible.com/t/how-to-use-existing-network-in-a-different-rg-in-azure-with-ansible/37588)

<div class="topic-metadata">

**Author:** [@williamflow](https://forum.ansible.com/u/williamflow)\
**Replies:** 0\
**Last updated:** [January 27, 2023, 8:46pm UTC](https://forum.ansible.com/t/how-to-use-existing-network-in-a-different-rg-in-azure-with-ansible/37588 "2023-01-27T20:46:09Z")

</div>

My goal here is to create a VM in Azure with Ansible name: Create a VM azure.azcollection.azure\_rm\_virtualmachine: resource\_group: RG-Bill name: testvm002 vm\_size: Standard\_DS1\_v2 admin\_username: centos ssh\_publi…

---

## [Looking For next Integer Directory created , if current already exist.](https://forum.ansible.com/t/looking-for-next-integer-directory-created-if-current-already-exist/37587)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 5\
**Last updated:** [January 27, 2023, 3:36pm UTC](https://forum.ansible.com/t/looking-for-next-integer-directory-created-if-current-already-exist/37587 "2023-01-27T15:36:02Z")

</div>

i am looking for some concent like below Look For /var/test01 , if not there create it- test01 Look For /var/test01 , if already exist then move to next name :- test02 (move like next integer number) Look for /var/test…

---

## [how i will get rid of dictionary or only grab first match in loop output with satisfying when condition.](https://forum.ansible.com/t/how-i-will-get-rid-of-dictionary-or-only-grab-first-match-in-loop-output-with-satisfying-when-condition/37569)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 4\
**Last updated:** [January 27, 2023, 1:31pm UTC](https://forum.ansible.com/t/how-i-will-get-rid-of-dictionary-or-only-grab-first-match-in-loop-output-with-satisfying-when-condition/37569 "2023-01-27T13:31:34Z")

</div>

Hi Team, how i will get rid of dictionary or only grab first match in loop output with satisfying when condition.

---

## [How to set a task to run for a specific inventory group](https://forum.ansible.com/t/how-to-set-a-task-to-run-for-a-specific-inventory-group/37584)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 3\
**Last updated:** [January 27, 2023, 2:26am UTC](https://forum.ansible.com/t/how-to-set-a-task-to-run-for-a-specific-inventory-group/37584 "2023-01-27T02:26:41Z")

</div>

Good morning everyone, this is my hosts file: web-servers: hosts: web01: ansible\_host: x.x.x.x web02: ansible\_host: x.x.x.x backend-servers: hosts: balance1: ansible\_host: x.x.x.x balance2: ansible\_host: x.x.…

---

## [Silly (?) inventory problem](https://forum.ansible.com/t/silly-inventory-problem/37560)

<div class="topic-metadata">

**Author:** [@Norbert\_Klamann](https://forum.ansible.com/u/Norbert_Klamann)\
**Replies:** 2\
**Last updated:** [January 25, 2023, 12:43pm UTC](https://forum.ansible.com/t/silly-inventory-problem/37560 "2023-01-25T12:43:50Z")

</div>

Hello all, i want to use the ’ community.general.proxmox’ inventory. I call its in this way and get some errors which I do not understand: nsible-inventory -i inventory/local.proxmox.yaml --list /home/norbert/.local/…

---

## [Patching System with rollback function](https://forum.ansible.com/t/patching-system-with-rollback-function/37579)

<div class="topic-metadata">

**Author:** [@Fabiuscom](https://forum.ansible.com/u/Fabiuscom)\
**Replies:** 3\
**Last updated:** [January 25, 2023, 11:10am UTC](https://forum.ansible.com/t/patching-system-with-rollback-function/37579 "2023-01-25T11:10:49Z")

</div>

Hello, I need some information: if I want to install a patch using ansible, for example RHSA-2000:2023 and then I want to rollback because the patch has “brought” problems to the system, what could be a valid way to foll…

---

## [ansible playbook to run cmd using its root user (sudo rootsh) and password](https://forum.ansible.com/t/ansible-playbook-to-run-cmd-using-its-root-user-sudo-rootsh-and-password/37563)

<div class="topic-metadata">

**Author:** [@saravanan\_jothilinga](https://forum.ansible.com/u/saravanan_jothilinga)\
**Replies:** 12\
**Last updated:** [January 24, 2023, 1:13pm UTC](https://forum.ansible.com/t/ansible-playbook-to-run-cmd-using-its-root-user-sudo-rootsh-and-password/37563 "2023-01-24T13:13:37Z")

</div>

Hi, I am a novice to ansible and am practising to get more hands-on. I am trying one usecase where I need to connect to a remote SLES12 linux server using my id and then switch to root user and execute some tasks. While…

---

## [how to include template file inside other template file ?](https://forum.ansible.com/t/how-to-include-template-file-inside-other-template-file/37566)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 5\
**Last updated:** [January 24, 2023, 11:10am UTC](https://forum.ansible.com/t/how-to-include-template-file-inside-other-template-file/37566 "2023-01-24T11:10:14Z")

</div>

I have a template file called main.conf.j2 and this is distributed to all of my servers. There additional server that need to have a single configuration that should include the configuration of the main.conf.j2 file and…

---

## [credssp: ('Connection aborted.'; ConnectionResetError(104; 'Connection reset by peer')](https://forum.ansible.com/t/credssp-connection-aborted-connectionreseterror-104-connection-reset-by-peer/37572)

<div class="topic-metadata">

**Author:** [@5d5985669a19a843b4d4](https://forum.ansible.com/u/5d5985669a19a843b4d4)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 9:09pm UTC](https://forum.ansible.com/t/credssp-connection-aborted-connectionreseterror-104-connection-reset-by-peer/37572 "2023-01-23T21:09:48Z")

</div>

We are facing below error on Windows 2008 servers in Ansible report . credssp: (‘Connection aborted.’; ConnectionResetError(104; ‘Connection reset by peer’)) → 2008 server upgraded to PS ver 5.1 → WinRM is Enabled w…

---

## [Stop/Start SAP service via ansible](https://forum.ansible.com/t/stop-start-sap-service-via-ansible/37570)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 5:02pm UTC](https://forum.ansible.com/t/stop-start-sap-service-via-ansible/37570 "2023-01-23T17:02:46Z")

</div>

Hi, Could someone help here to stop/start sap services via ansible? Regards Kumar

---

## [Vmware ESXI v7.03 issue with network portgroup name same on both standard and dv switches](https://forum.ansible.com/t/vmware-esxi-v7-03-issue-with-network-portgroup-name-same-on-both-standard-and-dv-switches/36987)

<div class="topic-metadata">

**Author:** [@Jason\_B](https://forum.ansible.com/u/Jason_B)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 8:26pm UTC](https://forum.ansible.com/t/vmware-esxi-v7-03-issue-with-network-portgroup-name-same-on-both-standard-and-dv-switches/36987 "2023-01-20T20:26:44Z")

</div>

We recently upgraded our venter to 7.03 and ESXI systems to v7.03 and this issues has started rearing its ugly head. Basically the scenario is as follows: Standard Switch with a port-group name that is the same as Dist…

---

## [unable to execute a perl script on windows server](https://forum.ansible.com/t/unable-to-execute-a-perl-script-on-windows-server/37565)

<div class="topic-metadata">

**Author:** [@Josmi\_Jose](https://forum.ansible.com/u/Josmi_Jose)\
**Replies:** 4\
**Last updated:** [January 20, 2023, 2:32pm UTC](https://forum.ansible.com/t/unable-to-execute-a-perl-script-on-windows-server/37565 "2023-01-20T14:32:55Z")

</div>

Hi, I am trying to run a run a perl script in the windows server using ansible playbook located in linux and getting the below error.Can some one help me. “changed”: false, “module\_stderr”: "Exception calling "Create"…

---

## [Error "The conditional check 'file\_stat.stat.exists == False' failed. The error was: error while evaluating conditional (file\_stat.stat.exists == False): 'file\_stat' is undefined](https://forum.ansible.com/t/error-the-conditional-check-file-stat-stat-exists-false-failed-the-error-was-error-while-evaluating-conditional-file-stat-stat-exists-false-file-stat-is-undefined/37556)

<div class="topic-metadata">

**Author:** [@Matthew\_Franco](https://forum.ansible.com/u/Matthew_Franco)\
**Replies:** 9\
**Last updated:** [January 19, 2023, 7:30pm UTC](https://forum.ansible.com/t/error-the-conditional-check-file-stat-stat-exists-false-failed-the-error-was-error-while-evaluating-conditional-file-stat-stat-exists-false-file-stat-is-undefined/37556 "2023-01-19T19:30:54Z")

</div>

with what I am doing shouldn’t file\_stat get registered as part of the loop? What am I doing wrong? I get the following error when trying to run my script below: PLAY \[Download and install RPMs from a local directory\] …

---

## [Could not find or access files on Ansible Controller](https://forum.ansible.com/t/could-not-find-or-access-files-on-ansible-controller/37564)

<div class="topic-metadata">

**Author:** [@Kanika\_Gola](https://forum.ansible.com/u/Kanika_Gola)\
**Replies:** 1\
**Last updated:** [January 19, 2023, 3:34pm UTC](https://forum.ansible.com/t/could-not-find-or-access-files-on-ansible-controller/37564 "2023-01-19T15:34:11Z")

</div>

I am getting this error while building my application through Jenkins through ansible. Here is the playbook

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/37562)

<div class="topic-metadata">

**Author:** [@Sean\_Son](https://forum.ansible.com/u/Sean_Son)\
**Replies:** 1\
**Last updated:** [January 19, 2023, 1:49pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/37562 "2023-01-19T13:49:27Z")

</div>

Hello I hope all is well. I am new to Ansible and I am trying to set up a play or a playbook that will run the following command: yum update --skip-broken --nobest -y I am running Ansible 2.9.27 on a RHEL 7.9 server. …

---

## [ansible\_facts showing interface eth0\_1](https://forum.ansible.com/t/ansible-facts-showing-interface-eth0-1/37547)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 5\
**Last updated:** [January 18, 2023, 7:35pm UTC](https://forum.ansible.com/t/ansible-facts-showing-interface-eth0-1/37547 "2023-01-18T19:35:59Z")

</div>

I’m using ansible-core 1.18. When I gather facts on a device, it shows the interfaces of eth0, eth0\_1, eth1 and lo. The results of “ip a” show only eth0, eth1 and lo interfaces . When I try to start arpwatch for each int…

---

## [Issue with dynamic inventory for azure](https://forum.ansible.com/t/issue-with-dynamic-inventory-for-azure/37559)

<div class="topic-metadata">

**Author:** [@abhay\_srivastava](https://forum.ansible.com/u/abhay_srivastava)\
**Replies:** 2\
**Last updated:** [January 18, 2023, 10:18am UTC](https://forum.ansible.com/t/issue-with-dynamic-inventory-for-azure/37559 "2023-01-18T10:18:57Z")

</div>

Hello all, We are facing one issue with dynamic inventory of azure. Getting below error ansible-inventory -i test.azure\_rm.yaml --graph -vvv ansible-inventory \[core 2.13.7\] config file = /etc/ansible/ansible.cfg co…

---

## [AVI networks ansible integration](https://forum.ansible.com/t/avi-networks-ansible-integration/37558)

<div class="topic-metadata">

**Author:** [@Nick1](https://forum.ansible.com/u/Nick1)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 10:51pm UTC](https://forum.ansible.com/t/avi-networks-ansible-integration/37558 "2023-01-17T22:51:05Z")

</div>

Unable to send SSL certificate to the controller using avi\_pool module. How can we even connect using AVI modules… ssl parameters are not even supported? Thanks

---

## [cisco ucs admin password reset](https://forum.ansible.com/t/cisco-ucs-admin-password-reset/37557)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 7:32pm UTC](https://forum.ansible.com/t/cisco-ucs-admin-password-reset/37557 "2023-01-17T19:32:33Z")

</div>

Can we reset cisco ucsm admin password using ansible playbook Here is how i do i manually ssh ucsm #scope security #set password Enter old password: Enter new password: Confirm new password: #commit I saw the co…

---

## [Need help with ansible playbook](https://forum.ansible.com/t/need-help-with-ansible-playbook/37553)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 6:07pm UTC](https://forum.ansible.com/t/need-help-with-ansible-playbook/37553 "2023-01-17T18:07:20Z")

</div>

Hi All, I need help with writing an ansible playbook, where it loops over a few pods and checks if any pod is not running, does a describe on it, and prints the events (we get when we describe pods). I’m stuck on the 2…

---

## [Reading multiple lines of input using "ansible.builtin.pause" or "vars\_prompt" (or another plugin)?](https://forum.ansible.com/t/reading-multiple-lines-of-input-using-ansible-builtin-pause-or-vars-prompt-or-another-plugin/37555)

<div class="topic-metadata">

**Author:** [@Wade\_C](https://forum.ansible.com/u/Wade_C)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 5:37pm UTC](https://forum.ansible.com/t/reading-multiple-lines-of-input-using-ansible-builtin-pause-or-vars-prompt-or-another-plugin/37555 "2023-01-17T17:37:37Z")

</div>

Has anyone come across a way to do this? Something like: — - name: Playbook to prompt for a multi-line string hosts: localhost gather\_facts: false tasks: - ansible.builtin.pause: prompt: Enter value multiline: yes # not…

---

## [IBMi check if library already exists](https://forum.ansible.com/t/ibmi-check-if-library-already-exists/37540)

<div class="topic-metadata">

**Author:** [@Paul\_Fenstermacher](https://forum.ansible.com/u/Paul_Fenstermacher)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 4:16am UTC](https://forum.ansible.com/t/ibmi-check-if-library-already-exists/37540 "2023-01-17T04:16:49Z")

</div>

I want to include this create library task in playbooks that will run against IBMi systems. However, the playbook fails if the library already exists, and I need to know how to skip the command if the library is already …

---

## [Inventory from uploaded file](https://forum.ansible.com/t/inventory-from-uploaded-file/37535)

<div class="topic-metadata">

**Author:** [@Chris\_Condon](https://forum.ansible.com/u/Chris_Condon)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 3:10am UTC](https://forum.ansible.com/t/inventory-from-uploaded-file/37535 "2023-01-17T03:10:17Z")

</div>

I’m trying to create my inventory from WSUS. For me there are advantages in terms of capturing physical servers that aren’t in vCenter. I am mostly there. On the WSUS server I have a PowerShell script that exports the l…

---

## [Ansible AWX - Add Execution](https://forum.ansible.com/t/ansible-awx-add-execution/37549)

<div class="topic-metadata">

**Author:** [@Mattia\_Maragno](https://forum.ansible.com/u/Mattia_Maragno)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 2:50am UTC](https://forum.ansible.com/t/ansible-awx-add-execution/37549 "2023-01-17T02:50:48Z")

</div>

Hello, i try to install awx execution to isolated network. VM is Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy Python 3.10.6 ansible \[core 2.13.7\] but when execute “ansibl…

---

## [Unable to run ansible-playbook after installed ansible-core](https://forum.ansible.com/t/unable-to-run-ansible-playbook-after-installed-ansible-core/37551)

<div class="topic-metadata">

**Author:** [@Sathishs\_Subramani](https://forum.ansible.com/u/Sathishs_Subramani)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 1:27pm UTC](https://forum.ansible.com/t/unable-to-run-ansible-playbook-after-installed-ansible-core/37551 "2023-01-16T13:27:38Z")

</div>

pip3 install ansible-core WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see pypa/pip#5599 for advice on fixing the underlying issue. To avoid this problem you…

---

## [AWX installing application to IBM AIX, no space in file system?](https://forum.ansible.com/t/awx-installing-application-to-ibm-aix-no-space-in-file-system/37552)

<div class="topic-metadata">

**Author:** [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Replies:** 3\
**Last updated:** [January 15, 2023, 12:22am UTC](https://forum.ansible.com/t/awx-installing-application-to-ibm-aix-no-space-in-file-system/37552 "2023-01-15T00:22:19Z")

</div>

I don’t know where to start with this one. The Installation Manager is 180mb, and we have 6gb available and plenty of inodes. We can move a 100kb file, no problem, so it actually looks like space, but I have no idea how …

---

## [Access reusable code & files from within custom lookup plugin ?](https://forum.ansible.com/t/access-reusable-code-files-from-within-custom-lookup-plugin/37541)

<div class="topic-metadata">

**Author:** [@Jan\_Goyvaerts](https://forum.ansible.com/u/Jan_Goyvaerts)\
**Replies:** 4\
**Last updated:** [January 13, 2023, 3:08pm UTC](https://forum.ansible.com/t/access-reusable-code-files-from-within-custom-lookup-plugin/37541 "2023-01-13T15:08:38Z")

</div>

Hello Ansible community, I am developing a series of custom plugins, with common Python code and common json schema files. Take for example a lookup plugin that needs to import the external Python code and open the json…

---

## [IPv4 / IPv6 issue with apt\_repository](https://forum.ansible.com/t/ipv4-ipv6-issue-with-apt-repository/37548)

<div class="topic-metadata">

**Author:** [@Eli\_Taft](https://forum.ansible.com/u/Eli_Taft)\
**Replies:** 2\
**Last updated:** [January 12, 2023, 4:12pm UTC](https://forum.ansible.com/t/ipv4-ipv6-issue-with-apt-repository/37548 "2023-01-12T16:12:45Z")

</div>

Hi everyone, I have two Debian servers on EC2 instances in AWS. I’m using ansible to deploy to them. As far as I can tell they are configured the same (someone else set them up, but I’ve been trying to compare things in…

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

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