# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=192

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

**Page:** 193

---

## [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 …

---

## [ansible-base 2.10.0b1 is available](https://forum.ansible.com/t/ansible-base-2-10-0b1-is-available/33207)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [June 17, 2020, 11:43pm UTC](https://forum.ansible.com/t/ansible-base-2-10-0b1-is-available/33207 "2020-06-17T23:43:46Z")

</div>

Hi all- we’re happy to announce a beta release of the new ansible-base 2.10 package is now available! The ansible-base package consists of only the Ansible execution engine, related tools (e.g. ansible-galaxy, ansible-te…

---

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

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [June 17, 2020, 10:25pm UTC](https://forum.ansible.com/t/print-volume-group-with-highest-number/33206 "2020-06-17T22:25:44Z")

</div>

Something like this will sort the keys and use the last one. - debug: msg={{ansible\_lvm.vgs\[(ansible\_lvm.vgs.keys()|sorted|list)\[-1\]\]}}

---

## [AnsiballZ overhead when your hosts already have all modules and dependencies](https://forum.ansible.com/t/ansiballz-overhead-when-your-hosts-already-have-all-modules-and-dependencies/33205)

<div class="topic-metadata">

**Author:** [@Artem\_Gromov](https://forum.ansible.com/u/Artem_Gromov)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 9:13pm UTC](https://forum.ansible.com/t/ansiballz-overhead-when-your-hosts-already-have-all-modules-and-dependencies/33205 "2020-06-17T21:13:01Z")

</div>

Hello, I am thinking about an idea to put Python and Ansible together with modules, plugins, and other dependencies into one static binary executable. Then I am going to distribute such a binary to all my hosts, includ…

---

## [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…

---

## [Create a directory when symlink already exists](https://forum.ansible.com/t/create-a-directory-when-symlink-already-exists/33166)

<div class="topic-metadata">

**Author:** [@Akansha](https://forum.ansible.com/u/Akansha)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 5:30pm UTC](https://forum.ansible.com/t/create-a-directory-when-symlink-already-exists/33166 "2020-06-17T17:30:34Z")

</div>

Hi, I am new to Ansible and I have written a task to create sub directories at a given path using item/loop. The code is working in normal conditions, but it fails if soft/symbolic link already exists for any of the ite…

---

## [ansible-test and testing locally before commit](https://forum.ansible.com/t/ansible-test-and-testing-locally-before-commit/33201)

<div class="topic-metadata">

**Author:** [@Sydo\_Luciani](https://forum.ansible.com/u/Sydo_Luciani)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 2:57pm UTC](https://forum.ansible.com/t/ansible-test-and-testing-locally-before-commit/33201 "2020-06-17T14:57:20Z")

</div>

Getting error running ansible-test against the existing modules in either community.aws or amazon.aws: ansible-test sanity --test yamllint route53\_zone.py ERROR: Target pattern not matched: route53\_zone.py any idea wh…

---

## [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 …

---

## [Send an email on Yum update (success) or fail, etc](https://forum.ansible.com/t/send-an-email-on-yum-update-success-or-fail-etc/33190)

<div class="topic-metadata">

**Author:** [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 1:45am UTC](https://forum.ansible.com/t/send-an-email-on-yum-update-success-or-fail-etc/33190 "2020-06-16T01:45:39Z")

</div>

Hello All, Finally got my axw running reliably. Using Ubuntu 19.10. I use the yum module (ansible) with success for listing, updating, etc. I hope this question is not out-of-scope for the awx forum. I can get the st…

---

## [Packer definitions for AWX](https://forum.ansible.com/t/packer-definitions-for-awx/33189)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 9:32pm UTC](https://forum.ansible.com/t/packer-definitions-for-awx/33189 "2020-06-15T21:32:45Z")

</div>

Hello guys, I am looking for designing and testing a HashiCorp Packer definition that allows easy and consistent deployment of Ansible AWX to: Vagrant OpenStack AWS VMWare Do you know where I could find these definit…

---

## [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…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=191)

[Next page](https://forum.ansible.com/c/archives/31.md?page=193)
