# Ansible Project

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

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

**Page:** 85

---

## [Ansible to Power BI Integration](https://forum.ansible.com/t/ansible-to-power-bi-integration/34758)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 1:48pm UTC](https://forum.ansible.com/t/ansible-to-power-bi-integration/34758 "2021-03-10T13:48:17Z")

</div>

Hi, We would like to import Ansible metrics to Microsoft Power BI Dataset. I don’t see any direct module available to accomplish this task. Any help to achieve this would be much appreciated.

---

## [Help need - Trimming unnecessary characters from the output](https://forum.ansible.com/t/help-need-trimming-unnecessary-characters-from-the-output/34757)

<div class="topic-metadata">

**Author:** [@Malith\_Perera](https://forum.ansible.com/u/Malith_Perera)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 7:32am UTC](https://forum.ansible.com/t/help-need-trimming-unnecessary-characters-from-the-output/34757 "2021-03-10T07:32:26Z")

</div>

I’m new to the Ansible world. I’m trying to create a playbook that gets the MD5 value from the Cisco IOS. The IOS verification run on Cisco with bunch of dots and give the MD5 at the end (below) …Done! verify /md5 (flas…

---

## [Need - Ansible Consultant in McLean, VA](https://forum.ansible.com/t/need-ansible-consultant-in-mclean-va/34754)

<div class="topic-metadata">

**Author:** [@Santhosh\_K](https://forum.ansible.com/u/Santhosh_K)\
**Replies:** 0\
**Last updated:** [March 9, 2021, 6:01pm UTC](https://forum.ansible.com/t/need-ansible-consultant-in-mclean-va/34754 "2021-03-09T18:01:01Z")

</div>

Hi, Please check the below position and reply back with the below details and updated resume if you are comfortable. Title: Ansible Consultant Location: McLean, VA Contract: Long term JOB DESCRIPTION · Depth Knowle…

---

## [Getting a errors with ansible checks...](https://forum.ansible.com/t/getting-a-errors-with-ansible-checks/34753)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 0\
**Last updated:** [March 9, 2021, 5:32pm UTC](https://forum.ansible.com/t/getting-a-errors-with-ansible-checks/34753 "2021-03-09T17:32:46Z")

</div>

Hi all, I am routinely getting this error running a playbook. I’ve verified that python3-dnf IS installed, so I’m not sure why it’s complaining here. failed: \[dido-test\] (item=\[‘puppet-agent’, ‘puppet5-release’\]) =\> {“…

---

## [ios\_facts doesn't return output when used in playbook but shows output in ad-hoc command. Why?](https://forum.ansible.com/t/ios-facts-doesnt-return-output-when-used-in-playbook-but-shows-output-in-ad-hoc-command-why/34750)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 9, 2021, 2:25pm UTC](https://forum.ansible.com/t/ios-facts-doesnt-return-output-when-used-in-playbook-but-shows-output-in-ad-hoc-command-why/34750 "2021-03-09T14:25:13Z")

</div>

Below is my playbook to gather ios\_facts info in GNS3 router. The output shows “VARIABLE IS NOT DEFINED!” But when i gather ios\_facts using ad-hoc command, it works. Why the difference?

---

## [vmware\_guest - VM is created but the name "none"](https://forum.ansible.com/t/vmware-guest-vm-is-created-but-the-name-none/34735)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 8\
**Last updated:** [March 9, 2021, 9:23am UTC](https://forum.ansible.com/t/vmware-guest-vm-is-created-but-the-name-none/34735 "2021-03-09T09:23:08Z")

</div>

Hi folks When i use below on a Ubuntu 20.04 ansible control node , vm is created but the OS name shows “none” Same playbook i am running on a CentOS7 ansible control node the then the vm name is not none but correct on…

---

## [Getting ansible\_python\_interpreter error in mac local machine](https://forum.ansible.com/t/getting-ansible-python-interpreter-error-in-mac-local-machine/34744)

<div class="topic-metadata">

**Author:** [@Jaydip\_Jadeja](https://forum.ansible.com/u/Jaydip_Jadeja)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 9:33pm UTC](https://forum.ansible.com/t/getting-ansible-python-interpreter-error-in-mac-local-machine/34744 "2021-03-08T21:33:53Z")

</div>

zsh shell : ansible-playbook -D -l ‘local’ -e “cluster=xxx1” cluster.yml error : “msg”: “Failed to import the required Python library (openshift) on MacBook-Pro.local’s Python /System/Library/Frameworks/Python.framework…

---

## [Slowness problèmes after upgrade from 2.8 to 2.9](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 3\
**Last updated:** [March 8, 2021, 8:39pm UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071 "2021-03-08T20:39:09Z")

</div>

Hi everyone, I have a slowness problem after upgrading ansible from ansible 2.8 to ansible 2.9 (and from python 2.7 to python 3 only on controller). A lot of differents taskes (and différents modules) became very slow (…

---

## [ovirt\_vm import OVA](https://forum.ansible.com/t/ovirt-vm-import-ova/34745)

<div class="topic-metadata">

**Author:** [@Arsene\_Gschwind](https://forum.ansible.com/u/Arsene_Gschwind)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 8:24pm UTC](https://forum.ansible.com/t/ovirt-vm-import-ova/34745 "2021-03-08T20:24:55Z")

</div>

Hi, I’m having trouble getting the ovirt\_vm module to import an ova image, i’m always getting the following error: Traceback (most recent call last): File “/tmp/ansible\_ovirt\_vm\_payload\_upn728mm/ansible\_ovirt\_vm\_paylo…

---

## [ansible remote host to remote synchronize.py error](https://forum.ansible.com/t/ansible-remote-host-to-remote-synchronize-py-error/34733)

<div class="topic-metadata">

**Author:** [@Raj](https://forum.ansible.com/u/Raj)\
**Replies:** 4\
**Last updated:** [March 8, 2021, 7:20pm UTC](https://forum.ansible.com/t/ansible-remote-host-to-remote-synchronize-py-error/34733 "2021-03-08T19:20:35Z")

</div>

Hi all, Below is my playbook for copy from server A to server B. Could you please help me on this issue.

---

## [ansible group not working](https://forum.ansible.com/t/ansible-group-not-working/34734)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 8\
**Last updated:** [March 8, 2021, 6:20pm UTC](https://forum.ansible.com/t/ansible-group-not-working/34734 "2021-03-08T18:20:06Z")

</div>

any idea why the below is failing for my hosts pa-mgt01?

---

## [How can I use with\_items twice in a single tasks?](https://forum.ansible.com/t/how-can-i-use-with-items-twice-in-a-single-tasks/34739)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 3\
**Last updated:** [March 8, 2021, 6:01pm UTC](https://forum.ansible.com/t/how-can-i-use-with-items-twice-in-a-single-tasks/34739 "2021-03-08T18:01:00Z")

</div>

How can I use with\_items twice in a single tasks? For example , using line-in-file , I wish to update few parameters on a file that can be found on 2 locations name: update file lineinfile: path: {{ item }} ← This …

---

## [How to extract specific value from register output](https://forum.ansible.com/t/how-to-extract-specific-value-from-register-output/34740)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 4:21pm UTC](https://forum.ansible.com/t/how-to-extract-specific-value-from-register-output/34740 "2021-03-08T16:21:45Z")

</div>

How to extract a specific value from register output: From the below register output I’m trying to extract the path value with no luck, I have tried few options but still, I’m falling debug: msg: “{{ file\_name }}” - …

---

## [executable location = /usr/local/bin/ansible VS executable location = /bin/ansible](https://forum.ansible.com/t/executable-location-usr-local-bin-ansible-vs-executable-location-bin-ansible/34736)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 8:18am UTC](https://forum.ansible.com/t/executable-location-usr-local-bin-ansible-vs-executable-location-bin-ansible/34736 "2021-03-08T08:18:34Z")

</div>

Hi Folks Anyone can suggest anything for below problem For root user i see below for path : root: ~ $ # ansible --version ansible 2.10.6 config file = /etc/ansible/ansible.cfg configured module search path = \[‘/roo…

---

## [line-in-file . line update from a list of values](https://forum.ansible.com/t/line-in-file-line-update-from-a-list-of-values/34737)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 8:08am UTC](https://forum.ansible.com/t/line-in-file-line-update-from-a-list-of-values/34737 "2021-03-08T08:08:47Z")

</div>

Hi I’m using lineinfile to include new value inside a file Original line Kafka-list= kafka1:9092;kafka2:9092;kafka3:9092 I need to replace the value with parameters that are managed inside a configuration – I need to…

---

## [Ansible showing incorrect info when i try to find free space in switch, please help](https://forum.ansible.com/t/ansible-showing-incorrect-info-when-i-try-to-find-free-space-in-switch-please-help/34732)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 7:07pm UTC](https://forum.ansible.com/t/ansible-showing-incorrect-info-when-i-try-to-find-free-space-in-switch-please-help/34732 "2021-03-07T19:07:22Z")

</div>

I have written a script to check for free space in switch before i proceed to copy image. I used ios\_facts module and i used below return values however the free and total space displayed is incorrect than the actual fre…

---

## [help: loop through a remote file](https://forum.ansible.com/t/help-loop-through-a-remote-file/34726)

<div class="topic-metadata">

**Author:** [@danish09](https://forum.ansible.com/u/danish09)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 7:24am UTC](https://forum.ansible.com/t/help-loop-through-a-remote-file/34726 "2021-03-07T07:24:15Z")

</div>

Hi, Using ansible 2.4.0 on controller. Remote is an ubuntu 14.04 LTS. Python 2.7 I am trying to cat through passwd file, awk the first column, register that into a variable and then create a compressed archive of a r…

---

## [escaping in a shell module](https://forum.ansible.com/t/escaping-in-a-shell-module/34730)

<div class="topic-metadata">

**Author:** [@danish09](https://forum.ansible.com/u/danish09)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 7:22am UTC](https://forum.ansible.com/t/escaping-in-a-shell-module/34730 "2021-03-07T07:22:12Z")

</div>

Hi, ansible 2.4.0 remote environment: ubuntu 14.04 host/controller: Ubuntu 16.04.7 LTS I have a task to extract some usernames from the passwd file - name: extract usernames from password file shell: “awk -v LIMIT=…

---

## [Plybook with community.vmware modules & inventory item issue](https://forum.ansible.com/t/plybook-with-community-vmware-modules-inventory-item-issue/34729)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 5\
**Last updated:** [March 6, 2021, 11:56pm UTC](https://forum.ansible.com/t/plybook-with-community-vmware-modules-inventory-item-issue/34729 "2021-03-06T23:56:04Z")

</div>

Hi I am using community.vmware related modules in a playbook … which updates tags & reboot vms In the same vm i would like to patch the VM Below is the code … but the yum module here seems not acting on the target ie …

---

## [Can not post to ansible-projekt (no permissions). Can you help?](https://forum.ansible.com/t/can-not-post-to-ansible-projekt-no-permissions-can-you-help/34731)

<div class="topic-metadata">

**Author:** [@Stefan\_Schmid](https://forum.ansible.com/u/Stefan_Schmid)\
**Replies:** 0\
**Last updated:** [March 6, 2021, 5:01pm UTC](https://forum.ansible.com/t/can-not-post-to-ansible-projekt-no-permissions-can-you-help/34731 "2021-03-06T17:01:26Z")

</div>

Hi Would love to answer questions but no permissions. Used to work in the past (2019, 2020).Am I blocked? I am registered with this email : stefan.schmid.switzerland@gmail.com Thanks. Best regards Stefan

---

## [setting env variables causing syntax error](https://forum.ansible.com/t/setting-env-variables-causing-syntax-error/34728)

<div class="topic-metadata">

**Author:** [@VB\_C](https://forum.ansible.com/u/VB_C)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 9:27pm UTC](https://forum.ansible.com/t/setting-env-variables-causing-syntax-error/34728 "2021-03-05T21:27:34Z")

</div>

hello folks I am unable to set env variables, so that app\_user is able to run app as a linux service. can someone help ?

---

## [How to stop checking for further TASKS if a condition is not met?](https://forum.ansible.com/t/how-to-stop-checking-for-further-tasks-if-a-condition-is-not-met/34727)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 8:04pm UTC](https://forum.ansible.com/t/how-to-stop-checking-for-further-tasks-if-a-condition-is-not-met/34727 "2021-03-05T20:04:05Z")

</div>

Iam writing a script to upgrade IOS image in several switches. I have several TASKS written which would be checked in sequential order. I wish to add a condition that if a particular TASK/condition were to fail, then pl…

---

## [Task timeout](https://forum.ansible.com/t/task-timeout/34721)

<div class="topic-metadata">

**Author:** [@Simon\_Macpherson](https://forum.ansible.com/u/Simon_Macpherson)\
**Replies:** 5\
**Last updated:** [March 5, 2021, 1:00am UTC](https://forum.ansible.com/t/task-timeout/34721 "2021-03-05T01:00:57Z")

</div>

Hi, I’m using the Check Point Ansible Mgmt Collection (https://galaxy.ansible.com/check\_point/mgmt) Whilst running my playbook from the CLI, the run script task (check\_point.mgmt.cp\_mgmt\_run\_script) operation times out…

---

## [Ansible - VPN connection to Azure](https://forum.ansible.com/t/ansible-vpn-connection-to-azure/34724)

<div class="topic-metadata">

**Author:** [@Adam\_Nowak](https://forum.ansible.com/u/Adam_Nowak)\
**Replies:** 0\
**Last updated:** [March 4, 2021, 9:09pm UTC](https://forum.ansible.com/t/ansible-vpn-connection-to-azure/34724 "2021-03-04T21:09:13Z")

</div>

Welcome. I need to connect via VPN to Azure. For this I need to use ansible which is installed on local Ubuntu 18.4 without GIU. In Ansible I have playbooks which installs all programs. From Azure I got a file with . p…

---

## [Need clarification regarding ios\_facts module](https://forum.ansible.com/t/need-clarification-regarding-ios-facts-module/34723)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [March 4, 2021, 5:29pm UTC](https://forum.ansible.com/t/need-clarification-regarding-ios-facts-module/34723 "2021-03-04T17:29:36Z")

</div>

I usually use below script to check free space before proceeding to copy image. But when i need to copy image to a stacked switch, will this command show free space in ALL member switches or will it show only master swit…

---

## [BlockinFile module help](https://forum.ansible.com/t/blockinfile-module-help/34722)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 0\
**Last updated:** [March 4, 2021, 10:11am UTC](https://forum.ansible.com/t/blockinfile-module-help/34722 "2021-03-04T10:11:13Z")

</div>

Hi Guys , I am using the below block for writing a variable values into a file name: Add output of task for getting content to the local local\_action: module: blockinfile path: “{{ File }}” marker: " " state: pre…

---

## [Adding single quotes when I use regex\_search('\[^=\]\*$')](https://forum.ansible.com/t/adding-single-quotes-when-i-use-regex-search/34690)

<div class="topic-metadata">

**Author:** [@Pravin\_V](https://forum.ansible.com/u/Pravin_V)\
**Replies:** 6\
**Last updated:** [March 4, 2021, 5:54am UTC](https://forum.ansible.com/t/adding-single-quotes-when-i-use-regex-search/34690 "2021-03-04T05:54:43Z")

</div>

Hello Everyone, When I use the regex\_search in tasks, it is adding single quotes in the starting and end. Like for this - sw01 GigabitEthernet0/0 IF-MIB.ifSpeed = 1000000000 when I use regex\_search- name: SET FA…

---

## [Does IOS network module work for IOS-XE models as well?](https://forum.ansible.com/t/does-ios-network-module-work-for-ios-xe-models-as-well/34714)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 4, 2021, 5:34am UTC](https://forum.ansible.com/t/does-ios-network-module-work-for-ios-xe-models-as-well/34714 "2021-03-04T05:34:33Z")

</div>

Will IOS network module work only for IOS OS running devices or will it work for IOS-XE OS devices as well? Reason iam asking is because i see separate modules for IOS, NX-OS and IOS-XR but nothing for IOS-XE. So i want…

---

## [update hots file - the default inventory file](https://forum.ansible.com/t/update-hots-file-the-default-inventory-file/34711)

<div class="topic-metadata">

**Author:** [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Replies:** 4\
**Last updated:** [March 4, 2021, 5:18am UTC](https://forum.ansible.com/t/update-hots-file-the-default-inventory-file/34711 "2021-03-04T05:18:20Z")

</div>

Can you provide output of lineinfile ? Mine look like changed: \[localhost\] =\> (item=a) =\> {“ansible\_loop\_var”: “item”, “backup”: “”, “changed”: true, “item”: “a”, “msg”: “line added”} changed: \[localhost\] =\> (item=b) =\>…

---

## [Privilege Escalation issue](https://forum.ansible.com/t/privilege-escalation-issue/34720)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 0\
**Last updated:** [March 4, 2021, 2:15am UTC](https://forum.ansible.com/t/privilege-escalation-issue/34720 "2021-03-04T02:15:09Z")

</div>

We are trying to do some operations on our oVirt hosted engine machines. They are configured with the DISA STIG (I believe). We can log into them as root without any issues, but when we use ansible-playbook, we always ge…

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

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