# Ansible Project

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

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

**Page:** 79

---

## [Windows Assign a mount point folder path to a drive : Ansible module ???](https://forum.ansible.com/t/windows-assign-a-mount-point-folder-path-to-a-drive-ansible-module/35025)

<div class="topic-metadata">

**Author:** [@Sandeep\_G](https://forum.ansible.com/u/Sandeep_G)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 2:53pm UTC](https://forum.ansible.com/t/windows-assign-a-mount-point-folder-path-to-a-drive-ansible-module/35025 "2021-04-27T14:53:53Z")

</div>

have created a playbook for 1-Initialize a disk : USING win\_initialize\_disk 2-Create partition with drive letter (fullsize using -1) : USING win\_partition 3- Full format the newly created partition (6 drives D,E,F,G,H…

---

## [Help with Playbook](https://forum.ansible.com/t/help-with-playbook/35068)

<div class="topic-metadata">

**Author:** [@Luiz\_Guilherme\_Nunes](https://forum.ansible.com/u/Luiz_Guilherme_Nunes)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 2:15pm UTC](https://forum.ansible.com/t/help-with-playbook/35068 "2021-04-27T14:15:22Z")

</div>

Dears, I have a doubt, I new verify if exist a service on systemd with playbook. My part code: name: Stop service puppet-agent service: name: puppet state: stopped enabled: no How Can I verify if existe puppet-a…

---

## [template error while templating string: no filter named 'failed'](https://forum.ansible.com/t/template-error-while-templating-string-no-filter-named-failed/35067)

<div class="topic-metadata">

**Author:** [@Nicola\_L](https://forum.ansible.com/u/Nicola_L)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 1:52pm UTC](https://forum.ansible.com/t/template-error-while-templating-string-no-filter-named-failed/35067 "2021-04-27T13:52:24Z")

</div>

Hi all! I’m having an issue while running the task at line 14 of this role: https://github.com/nicolimo86/ansible-go/blob/master/tasks/main.yml The error is the following: TASK \[ansible-go : Remove old installation o…

---

## [Unable to set parameter](https://forum.ansible.com/t/unable-to-set-parameter/35066)

<div class="topic-metadata">

**Author:** [@Dean\_Verrell](https://forum.ansible.com/u/Dean_Verrell)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 10:35am UTC](https://forum.ansible.com/t/unable-to-set-parameter/35066 "2021-04-27T10:35:59Z")

</div>

Hello i want to use playbook to config router in towerm but i have error message unable to set parameter. In my router you must go to privilege exec mode and do ssh for remote ---- hosts: ‘{{ host }}’ connection: netwo…

---

## [How to create a task dict from a templated variable](https://forum.ansible.com/t/how-to-create-a-task-dict-from-a-templated-variable/34973)

<div class="topic-metadata">

**Author:** [@Gianni\_Stubbe](https://forum.ansible.com/u/Gianni_Stubbe)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 9:31am UTC](https://forum.ansible.com/t/how-to-create-a-task-dict-from-a-templated-variable/34973 "2021-04-27T09:31:27Z")

</div>

Hello, I have a variable file that defines the config state of my network hardware. As I would need to create lots of if and loops in loops I would like to be able to template the modules so that the amount of sessions …

---

## [New release: ansible-core 2.11.0](https://forum.ansible.com/t/new-release-ansible-core-2-11-0/35061)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [April 26, 2021, 9:57pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-11-0/35061 "2021-04-26T21:57:48Z")

</div>

Hi all- we're happy to announce that the general release of ansible-core 2.11.0 is now available!

---

## [Test Coverage Report When Testing Roles with Molecule](https://forum.ansible.com/t/test-coverage-report-when-testing-roles-with-molecule/35060)

<div class="topic-metadata">

**Author:** [@Cindy](https://forum.ansible.com/u/Cindy)\
**Replies:** 0\
**Last updated:** [April 26, 2021, 4:03pm UTC](https://forum.ansible.com/t/test-coverage-report-when-testing-roles-with-molecule/35060 "2021-04-26T16:03:01Z")

</div>

Hello. Is there a way to gather a quantitative data about test coverage for molecule test created for an ansible role?

---

## [ansible ssh connections](https://forum.ansible.com/t/ansible-ssh-connections/35044)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 11\
**Last updated:** [April 26, 2021, 2:47pm UTC](https://forum.ansible.com/t/ansible-ssh-connections/35044 "2021-04-26T14:47:14Z")

</div>

Please someone help me. I do not understand why i get this error. I can ssh from my control node to this host and from the host to my control node. But ansible test show this results. 192.168.154.163 | UNREACHABLE! =\> { …

---

## [Backwards compatible Ansible Collection support in project?](https://forum.ansible.com/t/backwards-compatible-ansible-collection-support-in-project/34912)

<div class="topic-metadata">

**Author:** [@Erik\_Godding\_Boye](https://forum.ansible.com/u/Erik_Godding_Boye)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 1:03pm UTC](https://forum.ansible.com/t/backwards-compatible-ansible-collection-support-in-project/34912 "2021-04-26T13:03:46Z")

</div>

Greetings Ansible Community, I am a user/customer, contributor and recently a collaborator of https://github.com/confluentinc/cp-ansible. This project has proven extremely valuable in provisioning large and complex Kaf…

---

## [docker installation problems](https://forum.ansible.com/t/docker-installation-problems/35054)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 10\
**Last updated:** [April 26, 2021, 11:48am UTC](https://forum.ansible.com/t/docker-installation-problems/35054 "2021-04-26T11:48:26Z")

</div>

I am using ansible to install a docker but I get this error. How can i solve this please? Please help me, this installation has taken me a whole week Control node is ubuntu server 20.04 Target node is ubuntu desktop 1…

---

## [Facing issues with ssh connection as user root](https://forum.ansible.com/t/facing-issues-with-ssh-connection-as-user-root/35055)

<div class="topic-metadata">

**Author:** [@Hasini\_P](https://forum.ansible.com/u/Hasini_P)\
**Replies:** 7\
**Last updated:** [April 26, 2021, 10:47am UTC](https://forum.ansible.com/t/facing-issues-with-ssh-connection-as-user-root/35055 "2021-04-26T10:47:48Z")

</div>

Team, Can someone sort this out please… We are using 2.8.18 version of ansible on our control node. I am facing error when trying to perform ping-pong with ansible as become\_user root (as pasted below). On the remote se…

---

## [a Ansible regex\_replace filter to extract the first part of the string with double quote at beginning.](https://forum.ansible.com/t/a-ansible-regex-replace-filter-to-extract-the-first-part-of-the-string-with-double-quote-at-beginning/35051)

<div class="topic-metadata">

**Author:** [@vkky2k](https://forum.ansible.com/u/vkky2k)\
**Replies:** 0\
**Last updated:** [April 26, 2021, 1:28am UTC](https://forum.ansible.com/t/a-ansible-regex-replace-filter-to-extract-the-first-part-of-the-string-with-double-quote-at-beginning/35051 "2021-04-26T01:28:47Z")

</div>

My intention is to match and replace a string with its first part. The string would be started with double quote, and it’s format would be like this: some-string = “ORACLE\_logs:vserve-test-1”: { So, if my statement is: …

---

## [Getting changed/failed hosts list from a previous task](https://forum.ansible.com/t/getting-changed-failed-hosts-list-from-a-previous-task/35045)

<div class="topic-metadata">

**Author:** [@sumith\_nair](https://forum.ansible.com/u/sumith_nair)\
**Replies:** 1\
**Last updated:** [April 25, 2021, 4:28am UTC](https://forum.ansible.com/t/getting-changed-failed-hosts-list-from-a-previous-task/35045 "2021-04-25T04:28:19Z")

</div>

All, As part of my playbook, i’d like to know the list of hosts where a certain task executed and changed something or got failed. Since i need to use those hosts in the very next task in same playbook for some other ac…

---

## [Incorporating Custom Modules in Roles](https://forum.ansible.com/t/incorporating-custom-modules-in-roles/35047)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Replies:** 0\
**Last updated:** [April 25, 2021, 2:39am UTC](https://forum.ansible.com/t/incorporating-custom-modules-in-roles/35047 "2021-04-25T02:39:31Z")

</div>

I’m pretty new to Ansible, I am trying to understand how Roles work. This is my directory structure. ├── custom\_role\_test\_play\_book\_2.yaml ├── library │ └── task\_two\_custom\_module.py └── roles └── test\_role ├── de…

---

## [Call 2nd playbook to run on host defined on variable of 1st playbook](https://forum.ansible.com/t/call-2nd-playbook-to-run-on-host-defined-on-variable-of-1st-playbook/35042)

<div class="topic-metadata">

**Author:** [@Ricardo\_Esteves](https://forum.ansible.com/u/Ricardo_Esteves)\
**Replies:** 2\
**Last updated:** [April 23, 2021, 1:23pm UTC](https://forum.ansible.com/t/call-2nd-playbook-to-run-on-host-defined-on-variable-of-1st-playbook/35042 "2021-04-23T13:23:34Z")

</div>

Hi, i have a playbook that reads a csv file which as hostnames, and some other columns, and i would like for each line of this csv file to call another playbook to be run on the hostname that i read from the csv 1st col…

---

## [ansible to provision azure loadbalncer with private ip](https://forum.ansible.com/t/ansible-to-provision-azure-loadbalncer-with-private-ip/35040)

<div class="topic-metadata">

**Author:** [@Rinshad\_rin](https://forum.ansible.com/u/Rinshad_rin)\
**Replies:** 0\
**Last updated:** [April 23, 2021, 9:23am UTC](https://forum.ansible.com/t/ansible-to-provision-azure-loadbalncer-with-private-ip/35040 "2021-04-23T09:23:32Z")

</div>

Hello, I was trying to provision an Azure load-balancer with only a private IP address in an existing subnet. I could accomplish this with the below code. name: create load balancer azure\_rm\_loadbalancer: resource\_gro…

---

## [python3 issues with docker installation](https://forum.ansible.com/t/python3-issues-with-docker-installation/35039)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 2\
**Last updated:** [April 23, 2021, 8:03am UTC](https://forum.ansible.com/t/python3-issues-with-docker-installation/35039 "2021-04-23T08:03:59Z")

</div>

I am installing docker on kali but have this issue with python-pip3. I have installed python3 on the target host. I don’t know how to fix this problem TASK \[install python-pip3\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Display path of return variable of module find](https://forum.ansible.com/t/display-path-of-return-variable-of-module-find/35033)

<div class="topic-metadata">

**Author:** [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 1:56pm UTC](https://forum.ansible.com/t/display-path-of-return-variable-of-module-find/35033 "2021-04-22T13:56:34Z")

</div>

Hi, I want to get into a variable the list of file present in a directory. name: Affichage du contenu de chaque Oracle\_Home sqlNet find: paths: “{{ item.item }}/network/admin” register: tmp\_oracle\_sqlnet\_content w…

---

## [Owasp ZAP installation errors](https://forum.ansible.com/t/owasp-zap-installation-errors/35037)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 5\
**Last updated:** [April 22, 2021, 1:53pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037 "2021-04-22T13:53:39Z")

</div>

I need help to install Owasp ZAP on Kali. I have this errors and I don’t know what to do to fix it. Thank you. ERROR! Syntax Error while loading YAML. could not find expected ‘:’ The error appears to be in ‘/home/ansi…

---

## [update /etc/hosts.allow](https://forum.ansible.com/t/update-etc-hosts-allow/35034)

<div class="topic-metadata">

**Author:** [@shekar\_reddy](https://forum.ansible.com/u/shekar_reddy)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 12:07pm UTC](https://forum.ansible.com/t/update-etc-hosts-allow/35034 "2021-04-22T12:07:48Z")

</div>

Hi All, Please guide me using ansible how to update below entries into /etc/hosts.allow. snmpd: 127.0.0.1 snmpd: xxxxx.example.com Regards, Shekar

---

## [Abridged summary of ansible-project@googlegroups.com - 9 updates in 6 topics](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-9-updates-in-6-topics/35032)

<div class="topic-metadata">

**Author:** [@Margadarsi\_Ameerpet](https://forum.ansible.com/u/Margadarsi_Ameerpet)\
**Replies:** 0\
**Last updated:** [April 22, 2021, 6:41am UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-9-updates-in-6-topics/35032 "2021-04-22T06:41:10Z")

</div>

\*Margadarsi Chit Fund Pvt Ltd\* \*Ameerpet branch\*

---

## [Dynamic inventory on openstack](https://forum.ansible.com/t/dynamic-inventory-on-openstack/35031)

<div class="topic-metadata">

**Author:** [@abhay\_srivastava](https://forum.ansible.com/u/abhay_srivastava)\
**Replies:** 0\
**Last updated:** [April 22, 2021, 6:34am UTC](https://forum.ansible.com/t/dynamic-inventory-on-openstack/35031 "2021-04-22T06:34:57Z")

</div>

Hello team, How to run ansible using openstack.py inventory script. I need to run ansible playbook on ecs based on tag. So how to use it.

---

## [How do i compare the parsed output against a value?](https://forum.ansible.com/t/how-do-i-compare-the-parsed-output-against-a-value/35028)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 2\
**Last updated:** [April 22, 2021, 5:03am UTC](https://forum.ansible.com/t/how-do-i-compare-the-parsed-output-against-a-value/35028 "2021-04-22T05:03:41Z")

</div>

Hi, I used TTP parser to parse the output of ‘sh run int gi0/0’ and below is output. Say for example, i want to compare bandwidth value againt a number and check if it higher/lower than a certain value, how do i write …

---

## [Invalid ID from playbook](https://forum.ansible.com/t/invalid-id-from-playbook/35029)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan1](https://forum.ansible.com/u/Andrew_Morgan1)\
**Replies:** 0\
**Last updated:** [April 22, 2021, 4:31am UTC](https://forum.ansible.com/t/invalid-id-from-playbook/35029 "2021-04-22T04:31:31Z")

</div>

Hello All, I have a ansible playbook that run successfully except the last step which is to delete EBS voumes from a server. 1)It launches a server 2Gets the facts about the ec2 instances 3)kills the server and kills…

---

## [docker installation with ansible](https://forum.ansible.com/t/docker-installation-with-ansible/35023)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 2\
**Last updated:** [April 21, 2021, 2:20pm UTC](https://forum.ansible.com/t/docker-installation-with-ansible/35023 "2021-04-21T14:20:53Z")

</div>

I am trying to install docker on one of my VMs on esxi, but i get this error my playbook is below the error PLAY \[installing docker on ubuntu\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[vmware\_guest\] \*\*\*\*\*\*\*\*…

---

## [TTP parsing doesn't work in ansible, need assistance](https://forum.ansible.com/t/ttp-parsing-doesnt-work-in-ansible-need-assistance/35022)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 3\
**Last updated:** [April 21, 2021, 2:17pm UTC](https://forum.ansible.com/t/ttp-parsing-doesnt-work-in-ansible-need-assistance/35022 "2021-04-21T14:17:43Z")

</div>

I wrote below script to parse output of ‘sh flash:’ however iam getting blank output. I checked several examples and i seem to be following the format properly yet doesn’t work. What am i doing wrong? SCRIPT: ios\_comm…

---

## [Jinja2 2.9 performance degradation](https://forum.ansible.com/t/jinja2-2-9-performance-degradation/35024)

<div class="topic-metadata">

**Author:** [@Patrick\_Hemmer](https://forum.ansible.com/u/Patrick_Hemmer)\
**Replies:** 0\
**Last updated:** [April 21, 2021, 1:24pm UTC](https://forum.ansible.com/t/jinja2-2-9-performance-degradation/35024 "2021-04-21T13:24:11Z")

</div>

So I was trying to upgrade an older Ansible environment from Ansible 2.7 + Jinja2 2.8 and ran across some severe performance degradation. A template task that used to take about 30 sec to complete across all hosts now ta…

---

## [\- Unable to run the playbook with new modules for IBM V7000 storage boxes](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000)

<div class="topic-metadata">

**Author:** [@miqdad\_patwa](https://forum.ansible.com/u/miqdad_patwa)\
**Replies:** 5\
**Last updated:** [April 21, 2021, 1:05pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000 "2021-04-21T13:05:20Z")

</div>

Hello Team, I need to automate my IBM V7000 Storage system and run commands on the same. On google i found there is a module from Ansible collection: Ansible Collection - ibm.spectrum\_virtualize I downloaded it but i …

---

## [customer kms key assign to volume](https://forum.ansible.com/t/customer-kms-key-assign-to-volume/35021)

<div class="topic-metadata">

**Author:** [@Jayesh\_Mahajan](https://forum.ansible.com/u/Jayesh_Mahajan)\
**Replies:** 0\
**Last updated:** [April 21, 2021, 8:24am UTC](https://forum.ansible.com/t/customer-kms-key-assign-to-volume/35021 "2021-04-21T08:24:31Z")

</div>

Dear Tean, I want to encrypt my EBS volume with KMS for that I used the below task. ec2\_lc: name: “{{ childtenantname }}-iqb-{{ ami\_name }}-{{ ansible\_date\_time.epoch }}” image\_id: “{{ ami\_facts.images\[0\].image\_id }…

---

## [Looping through win\_disk\_facts to detect drives and init them](https://forum.ansible.com/t/looping-through-win-disk-facts-to-detect-drives-and-init-them/35018)

<div class="topic-metadata">

**Author:** [@A\_J1](https://forum.ansible.com/u/A_J1)\
**Replies:** 1\
**Last updated:** [April 20, 2021, 4:01pm UTC](https://forum.ansible.com/t/looping-through-win-disk-facts-to-detect-drives-and-init-them/35018 "2021-04-20T16:01:13Z")

</div>

I am trying to come up with a task that will step through the drives it finds from win\_disk\_facts and init them. This is my attempt so far. Any help would be appreciated. name: Get disk facts community.windows.win\_di…

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

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