# Ansible Project

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

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

**Page:** 158

---

## [Dynamic disk format and mount](https://forum.ansible.com/t/dynamic-disk-format-and-mount/31640)

<div class="topic-metadata">

**Author:** [@Barun\_kumar](https://forum.ansible.com/u/Barun_kumar)\
**Replies:** 0\
**Last updated:** [November 12, 2019, 7:09am UTC](https://forum.ansible.com/t/dynamic-disk-format-and-mount/31640 "2019-11-12T07:09:29Z")

</div>

HI team, We have a servers attached with multiple disks that Is not known, now I want to use facts module to format disk and mount in fstab, any idea how to do that? Regards, Barun

---

## [ERROR! 'service' is not a valid attribute for a Play](https://forum.ansible.com/t/error-service-is-not-a-valid-attribute-for-a-play/31637)

<div class="topic-metadata">

**Author:** [@morten\_hoffmann](https://forum.ansible.com/u/morten_hoffmann)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 7:22pm UTC](https://forum.ansible.com/t/error-service-is-not-a-valid-attribute-for-a-play/31637 "2019-11-11T19:22:02Z")

</div>

Hi I’m trying to execute following dev01.yml playbook. Problem aer on machine02…I can’t find the appropriate code to stop a RHEL service on second server name: Stopping the OBIEE processes hosts: obiee remote\_user:…

---

## [New to ansible and development](https://forum.ansible.com/t/new-to-ansible-and-development/31636)

<div class="topic-metadata">

**Author:** [@evnflow](https://forum.ansible.com/u/evnflow)\
**Replies:** 4\
**Last updated:** [November 11, 2019, 6:40pm UTC](https://forum.ansible.com/t/new-to-ansible-and-development/31636 "2019-11-11T18:40:40Z")

</div>

I am trying to write ansible code to check space on a mount and when it hits below 12% of drive space to fail.

---

## [ACI mso\_schema\_template\_bd : not valid VRF association](https://forum.ansible.com/t/aci-mso-schema-template-bd-not-valid-vrf-association/31635)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 4:10pm UTC](https://forum.ansible.com/t/aci-mso-schema-template-bd-not-valid-vrf-association/31635 "2019-11-11T16:10:50Z")

</div>

All, using the mso\_schema\_template\_bd module I have come across the following issue: Setting the scene: VRF has been create in Schema X, with template X associated to tenant USER BD has been created in Schema1, with …

---

## [ACI mso\_schema\_template\_bd help needed](https://forum.ansible.com/t/aci-mso-schema-template-bd-help-needed/31634)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 2\
**Last updated:** [November 11, 2019, 3:51pm UTC](https://forum.ansible.com/t/aci-mso-schema-template-bd-help-needed/31634 "2019-11-11T15:51:25Z")

</div>

Hello all, I hope someone can assist here. Trying to use the mso\_schema\_template\_bd module to develop some scripts for a customer but I am getting am struggling to understand what is required to add a subnets as a ‘lis…

---

## [Ansible react on unreachable / failed hosts](https://forum.ansible.com/t/ansible-react-on-unreachable-failed-hosts/31633)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 1:09pm UTC](https://forum.ansible.com/t/ansible-react-on-unreachable-failed-hosts/31633 "2019-11-11T13:09:38Z")

</div>

I am administering a heterogeneous environment with a lot of stakeholders. It would be crucial to react on unreachable and failed hosts differently. So far my solution is: \` hosts: all:localhost tasks: If fact gathe…

---

## [How to convert this to docker](https://forum.ansible.com/t/how-to-convert-this-to-docker/31629)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 4\
**Last updated:** [November 10, 2019, 12:36am UTC](https://forum.ansible.com/t/how-to-convert-this-to-docker/31629 "2019-11-10T00:36:53Z")

</div>

We want to integrate Nexus 3 Opensource Edition into our toolchain. Nexus is an artifactory for npm, Docker Registry, maven, nuget, etc. We want to use docker containers for everything. Problem: Nexus does…

---

## [Undefined variables and filter subelements](https://forum.ansible.com/t/undefined-variables-and-filter-subelements/31616)

<div class="topic-metadata">

**Author:** [@Tobias\_Kirchhofer](https://forum.ansible.com/u/Tobias_Kirchhofer)\
**Replies:** 6\
**Last updated:** [November 9, 2019, 8:04am UTC](https://forum.ansible.com/t/undefined-variables-and-filter-subelements/31616 "2019-11-09T08:04:09Z")

</div>

We think we experience an anomalie with undefined variables and usage of subelements: \` name: Enable/disable service firewalld: zone: “{{ item.0.ZONE }}” service: “{{ item.1.SERVICE }}” permanent: yes immediate: …

---

## [Simple assert failure](https://forum.ansible.com/t/simple-assert-failure/31627)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 9:38pm UTC](https://forum.ansible.com/t/simple-assert-failure/31627 "2019-11-08T21:38:23Z")

</div>

Simple, but I can’t figure it out. The following doesn’t appear to be working. Wondering if I have a syntax error? \` assert: that: user is defined msg: “Be sure to define the username under defaults/main.yml” \` Wh…

---

## [What am I missing?](https://forum.ansible.com/t/what-am-i-missing/31621)

<div class="topic-metadata">

**Author:** [@Steven\_Williams](https://forum.ansible.com/u/Steven_Williams)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 12:41pm UTC](https://forum.ansible.com/t/what-am-i-missing/31621 "2019-11-08T12:41:00Z")

</div>

Getting Error: PLAY \[show Anyconnect VPN connections for ASA\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[Set terminal page to zero\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [running commands on guest VM from Ansible Controller](https://forum.ansible.com/t/running-commands-on-guest-vm-from-ansible-controller/31622)

<div class="topic-metadata">

**Author:** [@Sandeep\_Sridhar](https://forum.ansible.com/u/Sandeep_Sridhar)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 10:27am UTC](https://forum.ansible.com/t/running-commands-on-guest-vm-from-ansible-controller/31622 "2019-11-08T10:27:18Z")

</div>

I have an Ansible controller and a remote host. On the remote host, we have created a guest VM instance. All of this is achieved through a playbook running on ansible controller. The guest VM does not have network conne…

---

## [Robot Framework tests won't start under MS Windows 10 (VirtualBox virtual machine)](https://forum.ansible.com/t/robot-framework-tests-wont-start-under-ms-windows-10-virtualbox-virtual-machine/31608)

<div class="topic-metadata">

**Author:** [@ipaleka](https://forum.ansible.com/u/ipaleka)\
**Replies:** 5\
**Last updated:** [November 8, 2019, 10:24am UTC](https://forum.ansible.com/t/robot-framework-tests-wont-start-under-ms-windows-10-virtualbox-virtual-machine/31608 "2019-11-08T10:24:28Z")

</div>

I’ve been pointed to this group for solving the problem with running Robot Framework tests in Windows 10 virtual machine (https://github.com/ansible/ansible/issues/64381). I’ve successfully run my Robot Framework tests …

---

## [Module uri - Image to base64 String for JSON object](https://forum.ansible.com/t/module-uri-image-to-base64-string-for-json-object/31585)

<div class="topic-metadata">

**Author:** [@Alexander1](https://forum.ansible.com/u/Alexander1)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 5:53am UTC](https://forum.ansible.com/t/module-uri-image-to-base64-string-for-json-object/31585 "2019-11-08T05:53:41Z")

</div>

Hi community, maybe one of you have an nice idea how to solve my problem. I want to transfer a logo (jpg) over the ansible tower api “api/v2/settings/ui/”. \` name: Import over API uri: url: “{{ api\_url }}” user: …

---

## [Empty file while copying from localhost](https://forum.ansible.com/t/empty-file-while-copying-from-localhost/31620)

<div class="topic-metadata">

**Author:** [@Alain\_Gilbert](https://forum.ansible.com/u/Alain_Gilbert)\
**Replies:** 0\
**Last updated:** [November 7, 2019, 8:31pm UTC](https://forum.ansible.com/t/empty-file-while-copying-from-localhost/31620 "2019-11-07T20:31:40Z")

</div>

I have a bug with Ansible 2.8.3. I create a vm from a template and one of my step is to copy a local file to the remote server. When the last task (copy) is done and I reboot the server, the file exist but is empty. D…

---

## [How to fix this?](https://forum.ansible.com/t/how-to-fix-this/31619)

<div class="topic-metadata">

**Author:** [@Steven\_Williams](https://forum.ansible.com/u/Steven_Williams)\
**Replies:** 1\
**Last updated:** [November 7, 2019, 7:13pm UTC](https://forum.ansible.com/t/how-to-fix-this/31619 "2019-11-07T19:13:44Z")

</div>

root@jmpnet:/etc/ansible# ansible-playbook test-asa.yml ERROR! ‘debug’ is not a valid attribute for a Play The error appears to be in ‘/etc/ansible/test-asa.yml’: line 15, column 3, but may be elsewhere in the file de…

---

## [Ansible Keyring Lookup](https://forum.ansible.com/t/ansible-keyring-lookup/31618)

<div class="topic-metadata">

**Author:** [@alessio\_perotti](https://forum.ansible.com/u/alessio_perotti)\
**Replies:** 0\
**Last updated:** [November 7, 2019, 6:45pm UTC](https://forum.ansible.com/t/ansible-keyring-lookup/31618 "2019-11-07T18:45:03Z")

</div>

Hi all, I’d like to use Keyring Lookup Plugin for password recovery in my ansible playbook, but now I’ve the following problem. I put keyring lookup in my inventory host file, used in a playbook, and in a first time I …

---

## [How to check for undefined variable in Ansible. Getting error.](https://forum.ansible.com/t/how-to-check-for-undefined-variable-in-ansible-getting-error/31615)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 12:39pm UTC](https://forum.ansible.com/t/how-to-check-for-undefined-variable-in-ansible-getting-error/31615 "2019-11-07T12:39:26Z")

</div>

Incase a variable “outputmsg” has not been defined and assigned a value using set\_fact in the playbook I wish to assign a string value to the variable. Howver, if outputmsg is defined and is assigned some value which is…

---

## [List active directory user & group details  from azure with ansible modules](https://forum.ansible.com/t/list-active-directory-user-group-details-from-azure-with-ansible-modules/31614)

<div class="topic-metadata">

**Author:** [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Replies:** 0\
**Last updated:** [November 7, 2019, 1:49am UTC](https://forum.ansible.com/t/list-active-directory-user-group-details-from-azure-with-ansible-modules/31614 "2019-11-07T01:49:55Z")

</div>

Hello Experts, I am trying to use ansible for azure automation and want to use ansible as much as possible for resources creation and auto assigning the role based access. While doing so , I couldn’t find any replaceme…

---

## [How to send ansible-awx metrics to prometheus](https://forum.ansible.com/t/how-to-send-ansible-awx-metrics-to-prometheus/31612)

<div class="topic-metadata">

**Author:** [@Manu\_el](https://forum.ansible.com/u/Manu_el)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 9:04pm UTC](https://forum.ansible.com/t/how-to-send-ansible-awx-metrics-to-prometheus/31612 "2019-11-06T21:04:23Z")

</div>

Hello, I saw that feature was available on ansible tower as mentioned here : https://docs.ansible.com/ansible-tower/latest/html/administration/metrics.html# But how can i do the same thing for ansible-AWX ? Thanks !

---

## [zypper module dependency (catch 22)](https://forum.ansible.com/t/zypper-module-dependency-catch-22/31603)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 2:50pm UTC](https://forum.ansible.com/t/zypper-module-dependency-catch-22/31603 "2019-11-06T14:50:10Z")

</div>

Updated to ansible 2.9 and ran into a (semi) circular dependency for suse. The zypper package now requires a non-stock python module, which… means it cannot be installed via the zypper module. Workaround is to use the …

---

## [Error in ios\_vlans module](https://forum.ansible.com/t/error-in-ios-vlans-module/31606)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 5\
**Last updated:** [November 6, 2019, 2:03pm UTC](https://forum.ansible.com/t/error-in-ios-vlans-module/31606 "2019-11-06T14:03:50Z")

</div>

Hi, I have a simple playbook: name: Delete all VLANs ios\_vlans: state: deleted when I run it, it throws an error: The full traceback is: Traceback (most recent call last): File “/home/misch/.ansible/tmp/ansible-…

---

## [Tasks in a task file that should not have been included are being listed](https://forum.ansible.com/t/tasks-in-a-task-file-that-should-not-have-been-included-are-being-listed/31607)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 11:56am UTC](https://forum.ansible.com/t/tasks-in-a-task-file-that-should-not-have-been-included-are-being-listed/31607 "2019-11-06T11:56:27Z")

</div>

My roles/test/tasks/main.yml file looks like this:

---

## [issue with script module in ansible 2.8](https://forum.ansible.com/t/issue-with-script-module-in-ansible-2-8/31595)

<div class="topic-metadata">

**Author:** [@Sandeep\_Sridhar](https://forum.ansible.com/u/Sandeep_Sridhar)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 11:06am UTC](https://forum.ansible.com/t/issue-with-script-module-in-ansible-2-8/31595 "2019-11-06T11:06:34Z")

</div>

I have a shell script that is designed to run “virsh domifaddr | grep ipv4 | awk ‘{print $4}’” on the remote host. From my ansible controller, the playbook calls this piece: name: Find out the IP address of ucloud\_vm\_…

---

## [How to use enable password with ansible](https://forum.ansible.com/t/how-to-use-enable-password-with-ansible/30713)

<div class="topic-metadata">

**Author:** [@Ankur\_Atri](https://forum.ansible.com/u/Ankur_Atri)\
**Replies:** 6\
**Last updated:** [November 6, 2019, 8:01am UTC](https://forum.ansible.com/t/how-to-use-enable-password-with-ansible/30713 "2019-11-06T08:01:04Z")

</div>

I am trying to perform telnet which works fine with username & password but i want to find a way to enter enable password. Below example does not work. name: run show commands hosts: routers gather\_facts: False tas…

---

## [Unable to create or destroy database in influxdb from ansible](https://forum.ansible.com/t/unable-to-create-or-destroy-database-in-influxdb-from-ansible/31600)

<div class="topic-metadata">

**Author:** [@Irfan\_Pasha](https://forum.ansible.com/u/Irfan_Pasha)\
**Replies:** 0\
**Last updated:** [November 5, 2019, 8:02pm UTC](https://forum.ansible.com/t/unable-to-create-or-destroy-database-in-influxdb-from-ansible/31600 "2019-11-05T20:02:23Z")

</div>

Hi, I was trying to run ansible commands influxdb\_database to create and destroy databases and I seeing errors with it. The ansible command look like this name: Destroy database influxdb\_database: hostname: “{{ an…

---

## [Issue with ansible playbook for windows](https://forum.ansible.com/t/issue-with-ansible-playbook-for-windows/31599)

<div class="topic-metadata">

**Author:** [@Jayan\_Anirudhan](https://forum.ansible.com/u/Jayan_Anirudhan)\
**Replies:** 4\
**Last updated:** [November 5, 2019, 6:22pm UTC](https://forum.ansible.com/t/issue-with-ansible-playbook-for-windows/31599 "2019-11-05T18:22:24Z")

</div>

Hi All, I have created a playbook to execute a VBScript on windows server and its showing error while performing the syntax check. Kindly have a look and please help me in this regard.

---

## [How can I supress ansible character limit?](https://forum.ansible.com/t/how-can-i-supress-ansible-character-limit/31596)

<div class="topic-metadata">

**Author:** [@Tayfun\_Egemen](https://forum.ansible.com/u/Tayfun_Egemen)\
**Replies:** 0\
**Last updated:** [November 5, 2019, 11:52am UTC](https://forum.ansible.com/t/how-can-i-supress-ansible-character-limit/31596 "2019-11-05T11:52:32Z")

</div>

I’m working with the aruba\_diff playbook below, but the output is incorrect due to the 80 character limit. How can I supress this limit. My playbook: - hosts: 24\_port connection: local gather\_facts: false tasks: …

---

## [Delgate\_facts understanding](https://forum.ansible.com/t/delgate-facts-understanding/31589)

<div class="topic-metadata">

**Author:** [@Vicente\_Dominguez](https://forum.ansible.com/u/Vicente_Dominguez)\
**Replies:** 13\
**Last updated:** [November 5, 2019, 8:35am UTC](https://forum.ansible.com/t/delgate-facts-understanding/31589 "2019-11-05T08:35:51Z")

</div>

Hello everyone, I don’t totally get the point of the delegate\_facts usage in Ansible. I have written the follow code to test this clause: - name: delegate facts testing hosts: localhost tasks: - name: print FQDN -…

---

## [Get-AnsibleParam: Missing required argument: \_raw\_params](https://forum.ansible.com/t/get-ansibleparam-missing-required-argument-raw-params/31587)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 6\
**Last updated:** [November 4, 2019, 6:51pm UTC](https://forum.ansible.com/t/get-ansibleparam-missing-required-argument-raw-params/31587 "2019-11-04T18:51:53Z")

</div>

Hi All, I’m writing a playbook task to run WinZip.wzmul after WinZip installation for Winzip registration. please note WinZip has been installed without any incident. Playbook task:

---

## [Unable to uninstall Notepad++ in Windows host](https://forum.ansible.com/t/unable-to-uninstall-notepad-in-windows-host/31592)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 0\
**Last updated:** [November 4, 2019, 6:12pm UTC](https://forum.ansible.com/t/unable-to-uninstall-notepad-in-windows-host/31592 "2019-11-04T18:12:56Z")

</div>

I’m unable to uninstall notepad++ in the Windows host: name: uninstall notepad++ win\_package: path: ‘{{ notepadpp\_install\_dir }}\\uninstall.exe’ product\_id: ‘Notepad++\*’ arguments: /S state: present name: unins…

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

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