# Ansible Project

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

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

**Page:** 99

---

## [Create a list of Failed tasks](https://forum.ansible.com/t/create-a-list-of-failed-tasks/34095)

<div class="topic-metadata">

**Author:** [@Jason](https://forum.ansible.com/u/Jason)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 4:48pm UTC](https://forum.ansible.com/t/create-a-list-of-failed-tasks/34095 "2020-10-24T16:48:57Z")

</div>

Hello, I am trying to get a list of devices that are out of compliance with Cisco licensing. I would like to take failed out of compliance devices and add them to a list. Then send it to Microsoft Teams. What I am look…

---

## [Create a variable of interfaces from an IOS switch based on the way they are configured.](https://forum.ansible.com/t/create-a-variable-of-interfaces-from-an-ios-switch-based-on-the-way-they-are-configured/34099)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 0\
**Last updated:** [October 24, 2020, 3:46pm UTC](https://forum.ansible.com/t/create-a-variable-of-interfaces-from-an-ios-switch-based-on-the-way-they-are-configured/34099 "2020-10-24T15:46:27Z")

</div>

Hello, I am looking for way to pull interfaces from an cisco switch and make them a variable based on they way they are currently configured so I can make configuration changes. For example if it is a trunk interface mak…

---

## [Command Not found but module is installed](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074)

<div class="topic-metadata">

**Author:** [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Replies:** 18\
**Last updated:** [October 23, 2020, 7:02pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074 "2020-10-23T19:02:58Z")

</div>

---

## [Ansible playbook execution from webportal](https://forum.ansible.com/t/ansible-playbook-execution-from-webportal/34091)

<div class="topic-metadata">

**Author:** [@Sathiya\_Vasagan](https://forum.ansible.com/u/Sathiya_Vasagan)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 6:59pm UTC](https://forum.ansible.com/t/ansible-playbook-execution-from-webportal/34091 "2020-10-23T18:59:46Z")

</div>

Hi Team, we need to execute Ansible playbook from java webportal using Ansible Engine

---

## [unable tp ping esx hosts](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 6:18pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092 "2020-10-23T18:18:11Z")

</div>

I am trying simple ping command to esx host but keep getting this ansible esx -m ping ansible esxhost-m ping esxhost | FAILED! =\> { “msg”: “to use the ‘ssh’ connection type with passwords, you must install the sshpas…

---

## [Performing action on list items inside another loop](https://forum.ansible.com/t/performing-action-on-list-items-inside-another-loop/34094)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 5:02pm UTC](https://forum.ansible.com/t/performing-action-on-list-items-inside-another-loop/34094 "2020-10-23T17:02:05Z")

</div>

Hi guys, Please provide your advise on below scenario: Finding files and putting in a list code ----- name: find Files to move find: paths: ‘{{ item.VlclDirName }}’ patterns: ‘{{ item.VlclFileSpec }}’ register: …

---

## [l2 Interfaces](https://forum.ansible.com/t/l2-interfaces/34093)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 4:43pm UTC](https://forum.ansible.com/t/l2-interfaces/34093 "2020-10-23T16:43:30Z")

</div>

When I run this in ansible I pull a list of interfaces off a network switch.

---

## [Copy Module with host name in file:  dest: "/root/file \<hostname\>](https://forum.ansible.com/t/copy-module-with-host-name-in-file-dest-root-file-hostname/34088)

<div class="topic-metadata">

**Author:** [@Sobhan\_Anavarapu](https://forum.ansible.com/u/Sobhan_Anavarapu)\
**Replies:** 3\
**Last updated:** [October 23, 2020, 8:30am UTC](https://forum.ansible.com/t/copy-module-with-host-name-in-file-dest-root-file-hostname/34088 "2020-10-23T08:30:11Z")

</div>

Hi All, I am seeking for your help if I can create files in the controller node with the output we generate against the multiple IP’s Eg: If I am passing 2 IP’s with vars\_prompt. In copy module it should create 2 diffe…

---

## [Can’t open lib ‘/usr/lib64/libmyodbc5.so’ : file not found](https://forum.ansible.com/t/can-t-open-lib-usr-lib64-libmyodbc5-so-file-not-found/34087)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 5:57am UTC](https://forum.ansible.com/t/can-t-open-lib-usr-lib64-libmyodbc5-so-file-not-found/34087 "2020-10-23T05:57:19Z")

</div>

command: $ echo “select 1” | isql -v asterisk asterisk password Error: \[01000\]\[unixODBC\]\[Driver Manager\]Can’t open lib ‘/usr/lib64/libmyodbc5.so’ : file not found \[ISQL\]ERROR: Could not SQLConnect odbcinst.ini: \[Pos…

---

## [mssql-tools breaks yum update](https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085)

<div class="topic-metadata">

**Author:** [@JeremyVV](https://forum.ansible.com/u/JeremyVV)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 5:52am UTC](https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085 "2020-10-23T05:52:33Z")

</div>

I have a patching playbook that works fine if the yum package installation doesn’t require any prompts, as per rpm best practices. Well when I ran my patching playbook to update my OS I discovered that mssql-tools upon r…

---

## [Ansible: need help uninstalling Windows software via playbook](https://forum.ansible.com/t/ansible-need-help-uninstalling-windows-software-via-playbook/34086)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 8:54pm UTC](https://forum.ansible.com/t/ansible-need-help-uninstalling-windows-software-via-playbook/34086 "2020-10-22T20:54:01Z")

</div>

Hello, I would greatly appreciate any help/input to help me get this playbook working. I have been trying with win\_package (win\_package states the program is uninstalled, but its not). I have even tried powershell via w…

---

## [Conditionally input to a playbook based on vars\_prompt](https://forum.ansible.com/t/conditionally-input-to-a-playbook-based-on-vars-prompt/34082)

<div class="topic-metadata">

**Author:** [@Sobhan\_Anavarapu](https://forum.ansible.com/u/Sobhan_Anavarapu)\
**Replies:** 6\
**Last updated:** [October 22, 2020, 4:53pm UTC](https://forum.ansible.com/t/conditionally-input-to-a-playbook-based-on-vars-prompt/34082 "2020-10-22T16:53:01Z")

</div>

I have a question, with optional input of A or B in vars\_prompt can the command be executed in a playbook task. example name: checking the switchshow value\_command: command\_set: command: switchdisable command: switc…

---

## [Ansible-ServiceNow integration](https://forum.ansible.com/t/ansible-servicenow-integration/34083)

<div class="topic-metadata">

**Author:** [@Zaldy\_B](https://forum.ansible.com/u/Zaldy_B)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 12:40pm UTC](https://forum.ansible.com/t/ansible-servicenow-integration/34083 "2020-10-22T12:40:16Z")

</div>

Hi Experts. My setup is this: I have lists of playbooks for network devices (like traceroute, ping, etc). our ansible is not the source of incident to create ticket (we have other management system for that). if there i…

---

## [vmware\_guest - Failed to set static IP - VCenter 6.5](https://forum.ansible.com/t/vmware-guest-failed-to-set-static-ip-vcenter-6-5/34078)

<div class="topic-metadata">

**Author:** [@Saketha\_Vamshi\_d](https://forum.ansible.com/u/Saketha_Vamshi_d)\
**Replies:** 8\
**Last updated:** [October 22, 2020, 10:02am UTC](https://forum.ansible.com/t/vmware-guest-failed-to-set-static-ip-vcenter-6-5/34078 "2020-10-22T10:02:25Z")

</div>

Hello guys, I’m trying to deploy a new VM on ESXi host with ansible 2.9.13 with a device\_type=e1000. But unfortunately it is not accepting my static IP value, even when I mentioned type=static in playbook. For e.g.: n…

---

## [Urgent help required on vmware\_guest\_network](https://forum.ansible.com/t/urgent-help-required-on-vmware-guest-network/34077)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 8:05am UTC](https://forum.ansible.com/t/urgent-help-required-on-vmware-guest-network/34077 "2020-10-22T08:05:23Z")

</div>

Hello Everyone, I am trying to add network adaptor to vmware virtual machine, but while executing playbook i am getting below error. Please help me to resolve this issue. Note: we are process in to upgrade ansible & p…

---

## [vm\_extra\_config in vmware\_guest not available?](https://forum.ansible.com/t/vm-extra-config-in-vmware-guest-not-available/34081)

<div class="topic-metadata">

**Author:** [@Jay\_O](https://forum.ansible.com/u/Jay_O)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 5:39am UTC](https://forum.ansible.com/t/vm-extra-config-in-vmware-guest-not-available/34081 "2020-10-22T05:39:40Z")

</div>

Hi, I’ve used vm\_extra\_config from “vsphere\_guest”. Now I’m transitioning my playbooks to “vmware\_guest”. However I can’t seem to find the equivalent for vm\_extra\_config (to add extra params to vmx file). Is this not a…

---

## [Register IOS ports based on port configurations](https://forum.ansible.com/t/register-ios-ports-based-on-port-configurations/34080)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 9:41pm UTC](https://forum.ansible.com/t/register-ios-ports-based-on-port-configurations/34080 "2020-10-21T21:41:06Z")

</div>

I am working on a way to register interfaces to use as a variable based on the way the port is configured. For example I want all ports that are configured for a trunk or access vlan 10. I have not found a way to use the…

---

## [Linux lun mount and format/filesystem](https://forum.ansible.com/t/linux-lun-mount-and-format-filesystem/33976)

<div class="topic-metadata">

**Author:** [@anonymus](https://forum.ansible.com/u/anonymus)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 4:55pm UTC](https://forum.ansible.com/t/linux-lun-mount-and-format-filesystem/33976 "2020-10-21T16:55:17Z")

</div>

i am newbie on ansible i wanted to do the below task using ansible , is there any playbook for Discovering an iscsi target Login in rescanning iscsi bus formatting the newly discovered lun creating filesystem on it. u…

---

## [How to filter plugins access vars from host](https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 2:53pm UTC](https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075 "2020-10-21T14:53:27Z")

</div>

Hi, I create a new filter plugin but the plugin needs to get vars from the host. How to get the vars in python filter plugins?

---

## [ansible taking a really long time](https://forum.ansible.com/t/ansible-taking-a-really-long-time/34067)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 12:17pm UTC](https://forum.ansible.com/t/ansible-taking-a-really-long-time/34067 "2020-10-21T12:17:01Z")

</div>

When I run: $ ansible all -m command -a uptime -o for 97 hosts (Solaris and GNU/Linux) the command (just ran) takes 31 minutes. How can I find where the time is being spent? I have a custom ~/.ansible.cfg that specifi…

---

## [create folder adds \[' my var ’\]](https://forum.ansible.com/t/create-folder-adds-my-var/34068)

<div class="topic-metadata">

**Author:** [@Gisbert\_Haas](https://forum.ansible.com/u/Gisbert_Haas)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 10:24am UTC](https://forum.ansible.com/t/create-folder-adds-my-var/34068 "2020-10-21T10:24:33Z")

</div>

I have the following regex in my playbook: name: get business ID set\_fact: my\_var: “{{ inventory\_hostname | regex\_findall(‘.+?(?=-).+?(?=-).+?(?=-).+?(?=-)+’) }}” the debug returns the right value: ok: \[DE-LEI-GRO-…

---

## [Harvesting UIDs above 1000](https://forum.ansible.com/t/harvesting-uids-above-1000/34064)

<div class="topic-metadata">

**Author:** [@Joseph\_Alexander](https://forum.ansible.com/u/Joseph_Alexander)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 6:10am UTC](https://forum.ansible.com/t/harvesting-uids-above-1000/34064 "2020-10-21T06:10:37Z")

</div>

I have a task from our program security to verify all local accounts on all of our RHEL servers and turn them in. I have a working playbook, but I’m wondering if there is a better, more cleaner way to do this. I have a …

---

## [False positives using win\_psexec module](https://forum.ansible.com/t/false-positives-using-win-psexec-module/34066)

<div class="topic-metadata">

**Author:** [@Roman\_DeHonney](https://forum.ansible.com/u/Roman_DeHonney)\
**Replies:** 0\
**Last updated:** [October 20, 2020, 4:56pm UTC](https://forum.ansible.com/t/false-positives-using-win-psexec-module/34066 "2020-10-20T16:56:57Z")

</div>

So I am attempting to run an .exe that I created using Auto IT. It simply makes two clicks on a program to perform a test and logs it. It works fine if I am logged into the host and double click the exe. I need to run t…

---

## [has anyone setup private ansible galaxy?](https://forum.ansible.com/t/has-anyone-setup-private-ansible-galaxy/34054)

<div class="topic-metadata">

**Author:** [@Prabha](https://forum.ansible.com/u/Prabha)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 9:26am UTC](https://forum.ansible.com/t/has-anyone-setup-private-ansible-galaxy/34054 "2020-10-20T09:26:23Z")

</div>

Hi, Has anyone ever setup a Private Ansible Galaxy server. I am hardly finding any documents around it. As an organization we aren’t allowed to pull repos from internet and we would like to create our own Ansible Galax…

---

## [Accessing Cfg file values within nested loops + using sections + passing section in cmd argument](https://forum.ansible.com/t/accessing-cfg-file-values-within-nested-loops-using-sections-passing-section-in-cmd-argument/34059)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 2\
**Last updated:** [October 19, 2020, 7:51pm UTC](https://forum.ansible.com/t/accessing-cfg-file-values-within-nested-loops-using-sections-passing-section-in-cmd-argument/34059 "2020-10-19T19:51:27Z")

</div>

Hi All, Hope all is well with everyone during these bad times because of covid :-). I would like to know some good advices from the community on a scenario am working on , it goes as followed: Cfg file: SectionA: ls…

---

## [Reading NTFS ACL's](https://forum.ansible.com/t/reading-ntfs-acls/34060)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 7:08pm UTC](https://forum.ansible.com/t/reading-ntfs-acls/34060 "2020-10-19T19:08:09Z")

</div>

From what I’ve found from searching and tinkering myself, it isn’t too easy to read NTFS ACL’s from a file path, local or UNC, doesn’t matter… am I mistaken on this? Would this be something better to just cheat and writ…

---

## [SELinux Role Review](https://forum.ansible.com/t/selinux-role-review/34055)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 2:39pm UTC](https://forum.ansible.com/t/selinux-role-review/34055 "2020-10-19T14:39:03Z")

</div>

Hello ALL, I’m working on a linux-system-role-selinux. Expected functionality: Set enforcing/permissive restorecon portions of filesystem tree Set/Get Booleans Set/Get file contexts Manage logins Mana…

---

## [Display apt-get install progress in realtime](https://forum.ansible.com/t/display-apt-get-install-progress-in-realtime/34052)

<div class="topic-metadata">

**Author:** [@Gebrina\_Divva\_Meuthi](https://forum.ansible.com/u/Gebrina_Divva_Meuthi)\
**Replies:** 1\
**Last updated:** [October 19, 2020, 12:53pm UTC](https://forum.ansible.com/t/display-apt-get-install-progress-in-realtime/34052 "2020-10-19T12:53:21Z")

</div>

Hi so I encountered some problems, while ansible have been a blessing for my automation task, I have some problems with apt installation package. What I mean is that I want ansible to display each of the progress realtim…

---

## [ansible nxos bgp "restart bgp \<AS#\>"](https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 1\
**Last updated:** [October 19, 2020, 5:37am UTC](https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906 "2020-10-19T05:37:04Z")

</div>

Hello, I have to write ansible script for Cisco NXOS to restart bgp. I am looking “restart bgp \<AS#\>” but it looks ansible module doesn’t have it available. what are my options? how to accomplish it?

---

## [Error - "No Package MySQL-python avaiable". How to fix this?](https://forum.ansible.com/t/error-no-package-mysql-python-avaiable-how-to-fix-this/34048)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 3\
**Last updated:** [October 19, 2020, 4:15am UTC](https://forum.ansible.com/t/error-no-package-mysql-python-avaiable-how-to-fix-this/34048 "2020-10-19T04:15:27Z")

</div>

\[root@localhost playbooks\]# ansible-playbook starfish.yml \[DEPRECATION WARNING\]: The firewalld module has been moved to the ansible.posix collection. This feature will be removed from community.general in version 2.0.…

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

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