# Ansible Project

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

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

**Page:** 119

---

## [New Ansible release 2.9.10](https://forum.ansible.com/t/new-ansible-release-2-9-10/33214)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 10:28pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-10/33214 "2020-06-18T22:28:57Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.9.10 is now available! How do you get it?

---

## [How to Segregate Inventory file and Group Variable to provide Ansible User name and password](https://forum.ansible.com/t/how-to-segregate-inventory-file-and-group-variable-to-provide-ansible-user-name-and-password/33202)

<div class="topic-metadata">

**Author:** [@ditun\_dhar](https://forum.ansible.com/u/ditun_dhar)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 6:56pm UTC](https://forum.ansible.com/t/how-to-segregate-inventory-file-and-group-variable-to-provide-ansible-user-name-and-password/33202 "2020-06-18T18:56:27Z")

</div>

Guys, I am new in Ansible and need some help. I am in need of segregating my inventory file (which will change continuously based on another script output) with credential file. However Ansible username, password and ad…

---

## [Failed to import the required Python library (Docker SDK for Python: docker (Python \>= 2.7) or docker-py (Python 2.6)) on MacBook-Pro](https://forum.ansible.com/t/failed-to-import-the-required-python-library-docker-sdk-for-python-docker-python-2-7-or-docker-py-python-2-6-on-macbook-pro/33209)

<div class="topic-metadata">

**Author:** [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 4:44pm UTC](https://forum.ansible.com/t/failed-to-import-the-required-python-library-docker-sdk-for-python-docker-python-2-7-or-docker-py-python-2-6-on-macbook-pro/33209 "2020-06-18T16:44:01Z")

</div>

Hi, Who can help me to figure out what to do to avoid that the docker\_container module complains that it is not installed \` Failed to import the required Python library (Docker SDK for Python: docker (Python \>= 2.7) o…

---

## [pulling infor from a config.](https://forum.ansible.com/t/pulling-infor-from-a-config/33211)

<div class="topic-metadata">

**Author:** [@Joe3](https://forum.ansible.com/u/Joe3)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 1:56pm UTC](https://forum.ansible.com/t/pulling-infor-from-a-config/33211 "2020-06-18T13:56:21Z")

</div>

I am trying to figure out how to put information from a switch config using ansible so it can be manipulated and used as data in your ansible playbook. For example, all switches have a configuration section similar to th…

---

## [nested  with\_items](https://forum.ansible.com/t/nested-with-items/33204)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 12:40pm UTC](https://forum.ansible.com/t/nested-with-items/33204 "2020-06-18T12:40:16Z")

</div>

I have a senerio where i think a nested with\_items would work , but i am not seeing any examples where there are multiple keys. Today i have a with\_items that looks like this: \` name: Include vmware workflow for Tag …

---

## [Need help for Ansible Documentation](https://forum.ansible.com/t/need-help-for-ansible-documentation/33208)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 8:02am UTC](https://forum.ansible.com/t/need-help-for-ansible-documentation/33208 "2020-06-18T08:02:31Z")

</div>

Hi Ansible Gurus, I have many roles in my Ansible Project . Each role has a different set of variables . In the end , it is a huge list of documents in case we want to document. Wanted to check if Ansible provides any …

---

## [trying to enable winrm over https on new VM](https://forum.ansible.com/t/trying-to-enable-winrm-over-https-on-new-vm/33199)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 5:53pm UTC](https://forum.ansible.com/t/trying-to-enable-winrm-over-https-on-new-vm/33199 "2020-06-17T17:53:11Z")

</div>

I am clining VM with the vmware\_guest module. it works fine and join domain. but I need to enable winrm over https. is there way to do this from the runonce or predeployment tasks? I cant even copy a script over sinc…

---

## [Needs to Write a Playbook](https://forum.ansible.com/t/needs-to-write-a-playbook/33179)

<div class="topic-metadata">

**Author:** [@rama543](https://forum.ansible.com/u/rama543)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 11:08am UTC](https://forum.ansible.com/t/needs-to-write-a-playbook/33179 "2020-06-17T11:08:11Z")

</div>

Hi Friends, I am new to this Ansible world Needs to write a playbook for one scenario Scenario-1: I have 1000 Servers . Host-names are like Server1, Server2, Server3, Server4, Server5, …Server1000 . I have two Scrip…

---

## [win\_shell, kerberos and credential delegation](https://forum.ansible.com/t/win-shell-kerberos-and-credential-delegation/32922)

<div class="topic-metadata">

**Author:** [@Luca\_remix\_tj\_Lorenz](https://forum.ansible.com/u/Luca_remix_tj_Lorenz)\
**Replies:** 3\
**Last updated:** [June 17, 2020, 10:36am UTC](https://forum.ansible.com/t/win-shell-kerberos-and-credential-delegation/32922 "2020-06-17T10:36:51Z")

</div>

Hello, i’m hitting an issue with windows authentication and credential delegation. That’s the piece of playbook that has problem with privileges: name: define migrator command set\_fact: migratore\_command: “{{ backu…

---

## [offending line appears to be state: directory](https://forum.ansible.com/t/offending-line-appears-to-be-state-directory/33172)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 6:18am UTC](https://forum.ansible.com/t/offending-line-appears-to-be-state-directory/33172 "2020-06-17T06:18:51Z")

</div>

any idea what is wrong with my playbook here? name: Retrieve info about the mount directory stat: path: “{{ mount\_dir\_path }}” register: mount\_dir\_stat\_first tags: prereqs If the mount directory doesn’t already ex…

---

## [installing ansible in isolated virtual env](https://forum.ansible.com/t/installing-ansible-in-isolated-virtual-env/33196)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 6\
**Last updated:** [June 17, 2020, 4:55am UTC](https://forum.ansible.com/t/installing-ansible-in-isolated-virtual-env/33196 "2020-06-17T04:55:41Z")

</div>

Is there a way to install ansible on osX in an isolated virtual environment? without having to setup a ubuntu VM? I dont want the ansible binaries or whatever software it installs on osx to interfere with my working env…

---

## [issue with nmcli module in RHEL 8](https://forum.ansible.com/t/issue-with-nmcli-module-in-rhel-8/33198)

<div class="topic-metadata">

**Author:** [@rocky\_rns](https://forum.ansible.com/u/rocky_rns)\
**Replies:** 0\
**Last updated:** [June 17, 2020, 1:15am UTC](https://forum.ansible.com/t/issue-with-nmcli-module-in-rhel-8/33198 "2020-06-17T01:15:28Z")

</div>

Hi Folks, I have small issue using the nmcli module. I get the below error. I think this package is missing "NetworkManager-glib" how do we resolve this issue. fatal: \[node002\]: FAILED! =\> {"changed": false,…

---

## [Inventory for playbooks with all uri calls ran local](https://forum.ansible.com/t/inventory-for-playbooks-with-all-uri-calls-ran-local/33192)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 4:07pm UTC](https://forum.ansible.com/t/inventory-for-playbooks-with-all-uri-calls-ran-local/33192 "2020-06-16T16:07:16Z")

</div>

I am trying to see how I can setup an inventory file for an application that is all managed by uri calls. I have multiple end points that will end up with some different vars by host. But I have the host as 127.0.0.1 si…

---

## [vmeware\_guest customization runonce](https://forum.ansible.com/t/vmeware-guest-customization-runonce/33195)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 12:36pm UTC](https://forum.ansible.com/t/vmeware-guest-customization-runonce/33195 "2020-06-16T12:36:48Z")

</div>

how to enable winrm over https with runonce ?

---

## [print highest number of volume group](https://forum.ansible.com/t/print-highest-number-of-volume-group/33188)

<div class="topic-metadata">

**Author:** [@sharanpeetani](https://forum.ansible.com/u/sharanpeetani)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 11:17am UTC](https://forum.ansible.com/t/print-highest-number-of-volume-group/33188 "2020-06-16T11:17:14Z")

</div>

Hello, I Is there a way to print only volume group name on server with the highest number? for eg if the server has vg00, vg01, vg02 I want to have print only highest number vg which is vg02. I am trying to use with an…

---

## [Windows Domain/Ansible Kerberos Auth Issues Still](https://forum.ansible.com/t/windows-domain-ansible-kerberos-auth-issues-still/33121)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 10:51am UTC](https://forum.ansible.com/t/windows-domain-ansible-kerberos-auth-issues-still/33121 "2020-06-16T10:51:35Z")

</div>

(I’ve posted a bit about this before, but I want to revisit it because its frustrating as I try to optimize my playbooks) I have a playbook where I build servers from vmware templates using vmware\_guest and I join the d…

---

## [windows CPU Memory Swap-Memory utilization report in txt format](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194)

<div class="topic-metadata">

**Author:** [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 10:32am UTC](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194 "2020-06-16T10:32:14Z")

</div>

Hello Ansible Team I am trying to develped below task CPU/Memory related alerts need manual intervention to review the system health against the resources consuming the CPU/MEMORY. Every time engineer needs to login to…

---

## [JSON Inventory Host LIst isn't accepted anymore when YUM or DNF PKG Mgr is used](https://forum.ansible.com/t/json-inventory-host-list-isnt-accepted-anymore-when-yum-or-dnf-pkg-mgr-is-used/33193)

<div class="topic-metadata">

**Author:** [@M\_Manna](https://forum.ansible.com/u/M_Manna)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 8:25am UTC](https://forum.ansible.com/t/json-inventory-host-list-isnt-accepted-anymore-when-yum-or-dnf-pkg-mgr-is-used/33193 "2020-06-16T08:25:40Z")

</div>

Hello, With Regards to Github Ticket - https://github.com/ansible/ansible/issues/70054 I have not reached a successful resolution. Here is the summary of the issue The inventory.py script which is supposed to output …

---

## [Create and add to a multi field array](https://forum.ansible.com/t/create-and-add-to-a-multi-field-array/33186)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 6:26am UTC](https://forum.ansible.com/t/create-and-add-to-a-multi-field-array/33186 "2020-06-16T06:26:44Z")

</div>

I am trying to find away that i can create an array that i can reference later that would be built through a series of include\_task plays. Through the plays i will specific pieces of data that i care to keep for use late…

---

## [ipaddr cidr\_lookup](https://forum.ansible.com/t/ipaddr-cidr-lookup/33191)

<div class="topic-metadata">

**Author:** [@ryanmerolle](https://forum.ansible.com/u/ryanmerolle)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 2:05am UTC](https://forum.ansible.com/t/ipaddr-cidr-lookup/33191 "2020-06-16T02:05:04Z")

</div>

Anyone use this filter function? It seems like a lookup to see if an IP or subnet is a member of a larger prefix. https://github.com/ansible-collections/ansible.netcommon/blob/master/plugins/filter/ipaddr.py#L665 I am …

---

## [Conditional with dict2item is falied](https://forum.ansible.com/t/conditional-with-dict2item-is-falied/33187)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 8:33pm UTC](https://forum.ansible.com/t/conditional-with-dict2item-is-falied/33187 "2020-06-15T20:33:55Z")

</div>

Hi guys, I have a task with equal below, but when I validate it is defined it not recognized. name: include vars virtual\_machine include\_tasks: virtual\_machine.yml when: gms\_az\_vm\_action == ‘create\_virtual\_machine’ v…

---

## [ansible 2.9.4 - task with delegate\_to: \<windows\_host\> works, subsequent tasks fail](https://forum.ansible.com/t/ansible-2-9-4-task-with-delegate-to-windows-host-works-subsequent-tasks-fail/33157)

<div class="topic-metadata">

**Author:** [@vampyreapocalypse](https://forum.ansible.com/u/vampyreapocalypse)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 7:29pm UTC](https://forum.ansible.com/t/ansible-2-9-4-task-with-delegate-to-windows-host-works-subsequent-tasks-fail/33157 "2020-06-15T19:29:10Z")

</div>

Hi All, hope this question makes sense. Here goes: Context: I have several automated patching playbooks that rely on stopping/starting services on windows before patching a database on Linux. We are using a python scrip…

---

## [Sending ansible output to python function](https://forum.ansible.com/t/sending-ansible-output-to-python-function/33155)

<div class="topic-metadata">

**Author:** [@Douglas\_R\_Christense](https://forum.ansible.com/u/Douglas_R_Christense)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 4:47pm UTC](https://forum.ansible.com/t/sending-ansible-output-to-python-function/33155 "2020-06-15T16:47:28Z")

</div>

Hello, I have posted the following at https://stackoverflow.com/questions/62309274/how-to-have-ansible-send-output-to-a-python-function-in-a-custom-library, but I wanted to share here to get some more insight. I am a n…

---

## [Ansible is being run in a world writable directory (/vagrant), ), ignoring it as an ansible.cfg source](https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185)

<div class="topic-metadata">

**Author:** [@Abhishek\_Karigar](https://forum.ansible.com/u/Abhishek_Karigar)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 2:22pm UTC](https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185 "2020-06-15T14:22:59Z")

</div>

SUMMARY trying to provision the vagrant guest using ansible\_local. with ansible provision i was able to do it successfully. ISSUE TYPE- Bug Report COMPONENT NAME##### ANSIBLE VERSION ansible 2.9.9 CONFIGURATION OS …

---

## [How to Secure Ansible playbook](https://forum.ansible.com/t/how-to-secure-ansible-playbook/33183)

<div class="topic-metadata">

**Author:** [@Nihanth\_Joseph](https://forum.ansible.com/u/Nihanth_Joseph)\
**Replies:** 4\
**Last updated:** [June 15, 2020, 2:12pm UTC](https://forum.ansible.com/t/how-to-secure-ansible-playbook/33183 "2020-06-15T14:12:51Z")

</div>

I need to encrypt my playbook, so once i deploy it to customer environment, they cannot edit or read my file. I have tired ansible-vault, but for this we need to save password in text file, so ultimately customer can de…

---

## [Abort playbook if host is not ready](https://forum.ansible.com/t/abort-playbook-if-host-is-not-ready/33041)

<div class="topic-metadata">

**Author:** [@Laci](https://forum.ansible.com/u/Laci)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 11:16am UTC](https://forum.ansible.com/t/abort-playbook-if-host-is-not-ready/33041 "2020-06-15T11:16:40Z")

</div>

Is there a good way to abort the playbook if host is not ready? For example I want to run a playbook against thisserver, but thisserver is unreachable by ssh or it is reachable but there is no python install. If any of …

---

## [Conditional actions based on host type?](https://forum.ansible.com/t/conditional-actions-based-on-host-type/33181)

<div class="topic-metadata">

**Author:** [@Mark\_Farrington](https://forum.ansible.com/u/Mark_Farrington)\
**Replies:** 4\
**Last updated:** [June 15, 2020, 10:47am UTC](https://forum.ansible.com/t/conditional-actions-based-on-host-type/33181 "2020-06-15T10:47:38Z")

</div>

Hi, New to ansible and looking for advice. I have an action inside a task (I think that is correct terminology). Something like this: name: Cloudwatch deploy agent configuration for webserver template: src: templa…

---

## [Ansible Modules for HP Switches (Comware 7)](https://forum.ansible.com/t/ansible-modules-for-hp-switches-comware-7/33182)

<div class="topic-metadata">

**Author:** [@gineesh](https://forum.ansible.com/u/gineesh)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 10:36am UTC](https://forum.ansible.com/t/ansible-modules-for-hp-switches-comware-7/33182 "2020-06-15T10:36:37Z")

</div>

Hi Guys, Hope all are doing good. I was developing some latest playbooks for HP Switches (HP 5130 - CMW710) and noticed the 3rd party modules (refer link below) are not working any more with latest Ansible version (ans…

---

## [ansible-playbook --ask-become-user in vault file?](https://forum.ansible.com/t/ansible-playbook-ask-become-user-in-vault-file/33178)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 2:55am UTC](https://forum.ansible.com/t/ansible-playbook-ask-become-user-in-vault-file/33178 "2020-06-15T02:55:31Z")

</div>

can i put a sudo password and other passwords together in a vault file? when i run thios playbook, i want it to read the vault file w/o asking me for the password anymore ansible-playbook --ask-vault-pass vcenter\_sddc\_…

---

## [Ansible rolling restart in multi-clustered environment](https://forum.ansible.com/t/ansible-rolling-restart-in-multi-clustered-environment/33177)

<div class="topic-metadata">

**Author:** [@Rishabh\_Kumar](https://forum.ansible.com/u/Rishabh_Kumar)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 9:04pm UTC](https://forum.ansible.com/t/ansible-rolling-restart-in-multi-clustered-environment/33177 "2020-06-14T21:04:11Z")

</div>

Hi, I have a use case where I want to execute rolling updates in multiple clusters. As first step, I have created a task to execute serially on the hosts passed to the task which will execute the restart one node at a t…

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

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