# Latest

**URL:** https://forum.ansible.com/latest.md?page=499

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

**Page:** 500

---

## [iterate with\_file contents ?](https://forum.ansible.com/t/iterate-with-file-contents/29208)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [December 6, 2018, 3:54pm UTC](https://forum.ansible.com/t/iterate-with-file-contents/29208 "2018-12-06T15:54:59Z")

</div>

I have some files under my role path dir : \` ls roles/my-role/files/ file1 file2 file3 \` I can display the content of the file by running : \` name: display contents debug: msg: “{{ item }}” with\_file: “roles…

---

## [Iterating with fileglob?](https://forum.ansible.com/t/iterating-with-fileglob/29207)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 1\
**Last updated:** [December 6, 2018, 2:11pm UTC](https://forum.ansible.com/t/iterating-with-fileglob/29207 "2018-12-06T14:11:12Z")

</div>

Is there a way to iterate the fileglob with a list? If I have 3 groups “group1”, “group2”, “group3” and each group is represented as a directory on the management host /path/to/group1 /path/to/group2 /path/to/group…

---

## [help processing nested data structure](https://forum.ansible.com/t/help-processing-nested-data-structure/29206)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 3\
**Last updated:** [December 6, 2018, 12:51pm UTC](https://forum.ansible.com/t/help-processing-nested-data-structure/29206 "2018-12-06T12:51:47Z")

</div>

I am trying to process a nested data structure and can’t find a suitable syntax to let me do it. Ansible only seems to allow one level of looping, or two with sub-elements. Given a data structure like this: vars: vpcs…

---

## [Please reopen and fix GitHub issue #22169 (redundant role execution)](https://forum.ansible.com/t/please-reopen-and-fix-github-issue-22169-redundant-role-execution/29210)

<div class="topic-metadata">

**Author:** [@Kay\_Masslow](https://forum.ansible.com/u/Kay_Masslow)\
**Replies:** 0\
**Last updated:** [December 6, 2018, 9:37am UTC](https://forum.ansible.com/t/please-reopen-and-fix-github-issue-22169-redundant-role-execution/29210 "2018-12-06T09:37:08Z")

</div>

Hi all, Where can I turn to in order to have https://github.com/ansible/ansible/issues/22169 reopened? This issue is still present. Best regards, Kay

---

## [Dynamic Inventory script](https://forum.ansible.com/t/dynamic-inventory-script/29110)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 5\
**Last updated:** [December 6, 2018, 8:43am UTC](https://forum.ansible.com/t/dynamic-inventory-script/29110 "2018-12-06T08:43:40Z")

</div>

Hi Is there any simple dynamic inventory script that would read from a local file contain list of hostnames only?

---

## [Using Ansible to setup newly installed Ubuntu-box, no ssh](https://forum.ansible.com/t/using-ansible-to-setup-newly-installed-ubuntu-box-no-ssh/29191)

<div class="topic-metadata">

**Author:** [@Sorin\_Srbu](https://forum.ansible.com/u/Sorin_Srbu)\
**Replies:** 11\
**Last updated:** [December 6, 2018, 8:30am UTC](https://forum.ansible.com/t/using-ansible-to-setup-newly-installed-ubuntu-box-no-ssh/29191 "2018-12-06T08:30:29Z")

</div>

Hi all, It goes like this. I order and buy a bunch of Dell laptops with Ubuntu 16 LTS preinstalled. I manually go trough the first-install-config. After reboot, it’s up, and I want to use Ansible from a remote …

---

## [vmware\_guest spin up multiple VMs at once?](https://forum.ansible.com/t/vmware-guest-spin-up-multiple-vms-at-once/29204)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 1\
**Last updated:** [December 6, 2018, 6:31am UTC](https://forum.ansible.com/t/vmware-guest-spin-up-multiple-vms-at-once/29204 "2018-12-06T06:31:06Z")

</div>

Hi Is it possible to spin up multiple vmware VMs at once with vmware\_guest? I found something about using with\_items to loop it, but it sounds like it is going to loop it meaning it would spin up the VMs sequentially? I…

---

## [how to prompt user for hostname to deploy playbook to?](https://forum.ansible.com/t/how-to-prompt-user-for-hostname-to-deploy-playbook-to/29130)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 4\
**Last updated:** [December 6, 2018, 5:24am UTC](https://forum.ansible.com/t/how-to-prompt-user-for-hostname-to-deploy-playbook-to/29130 "2018-12-06T05:24:44Z")

</div>

Hi Can we run a playbook and have it prompt the user for the hostname to deploy the playbook tasks to? This is what I have tried in my playbook.

---

## [dig lookup multiple hosts](https://forum.ansible.com/t/dig-lookup-multiple-hosts/29205)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 11:16pm UTC](https://forum.ansible.com/t/dig-lookup-multiple-hosts/29205 "2018-12-05T23:16:05Z")

</div>

Hey all - I’m trying to lookup the IPs for a list of FQDNs. The dig lookup is close to what I need, but it appears to return a list of IPs for a single FQDN; when using with\_items, it yields each of the IPs for that FQDN…

---

## [Roles Concept in ansible 2.7 version](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177)

<div class="topic-metadata">

**Author:** [@VJ49](https://forum.ansible.com/u/VJ49)\
**Replies:** 8\
**Last updated:** [December 5, 2018, 10:28pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177 "2018-12-05T22:28:19Z")

</div>

HI, I am familiar with this ansible coding. Right now, ansible updated to 2.7. While running/checking the syntax of a code. I am getting error as a malformed block was encountered while loading a block. I found that pr…

---

## [Using "shell" with a switch](https://forum.ansible.com/t/using-shell-with-a-switch/29180)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 29\
**Last updated:** [December 5, 2018, 3:56pm UTC](https://forum.ansible.com/t/using-shell-with-a-switch/29180 "2018-12-05T15:56:53Z")

</div>

Hey, all. I need to run a script residing on the remote machine with a switch, as in “/scripts/myscript -f” (it must be executed by root). I’m using the shell module, but can find no way to add the switch without the pl…

---

## [Ansible 2.7 - what replace yum+with\_lines'](https://forum.ansible.com/t/ansible-2-7-what-replace-yum-with-lines/29201)

<div class="topic-metadata">

**Author:** [@Shlomit\_Afgin](https://forum.ansible.com/u/Shlomit_Afgin)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 3:15pm UTC](https://forum.ansible.com/t/ansible-2-7-what-replace-yum-with-lines/29201 "2018-12-05T15:15:52Z")

</div>

Hi, I update Ansible to 2.7. Now when I run it I get deprecated warning. I trying to install with yum the packages that list in the file yum\_packages.txt I have: \` name: install Basic Packages to specific version …

---

## [Requests is running with a non urllib3 backend](https://forum.ansible.com/t/requests-is-running-with-a-non-urllib3-backend/29203)

<div class="topic-metadata">

**Author:** [@Carter\_Stephen](https://forum.ansible.com/u/Carter_Stephen)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 2:50pm UTC](https://forum.ansible.com/t/requests-is-running-with-a-non-urllib3-backend/29203 "2018-12-05T14:50:59Z")

</div>

Has anyone ever seen or fixed this error before when using ntlm to connect to a windows machine? It is only happening to me on a CentOS machine. My ubuntu machine does not experience this warning. I can’t seem to find an…

---

## [Updating MongoDB role - ones I've found stopped at 3.2](https://forum.ansible.com/t/updating-mongodb-role-ones-ive-found-stopped-at-3-2/29202)

<div class="topic-metadata">

**Author:** [@Paul\_Hardwick](https://forum.ansible.com/u/Paul_Hardwick)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 2:49pm UTC](https://forum.ansible.com/t/updating-mongodb-role-ones-ive-found-stopped-at-3-2/29202 "2018-12-05T14:49:20Z")

</div>

I am doing an update to our platform and one of the things is upgrading MongoDB, this step has hit a stumbling block. I am taking it up to the latest release in Ver 3 but the role I used before and all the ones I have fo…

---

## [How to use variable declare in this variable](https://forum.ansible.com/t/how-to-use-variable-declare-in-this-variable/29200)

<div class="topic-metadata">

**Author:** [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 2:32pm UTC](https://forum.ansible.com/t/how-to-use-variable-declare-in-this-variable/29200 "2018-12-05T14:32:29Z")

</div>

Hi, I try to declare a variable which contains all my structure. But for the struct.parts, i use a variable which declare in another branch of my struct var (struct.hdds) and it doesn’t work … \` Valorisation des vari…

---

## [Declare variable user created with limits](https://forum.ansible.com/t/declare-variable-user-created-with-limits/29185)

<div class="topic-metadata">

**Author:** [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 2:29pm UTC](https://forum.ansible.com/t/declare-variable-user-created-with-limits/29185 "2018-12-05T14:29:06Z")

</div>

Hi, I have a variable with this structure where i declare the users that i have to create. \` struct : users: { name: user1, uid: 2001, shell: /bin/sh, group: grp1, groups: grp2, home: /home/user1 } { name: user2, u…

---

## [Need review for PR issues/29811 (mysql\_user support REQUIRE NONE to remove a REQUIRE SSL "GRANT")](https://forum.ansible.com/t/need-review-for-pr-issues-29811-mysql-user-support-require-none-to-remove-a-require-ssl-grant/29199)

<div class="topic-metadata">

**Author:** [@user16](https://forum.ansible.com/u/user16)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 12:40pm UTC](https://forum.ansible.com/t/need-review-for-pr-issues-29811-mysql-user-support-require-none-to-remove-a-require-ssl-grant/29199 "2018-12-05T12:40:15Z")

</div>

There is my PR: https://github.com/ansible/ansible/pull/41625

---

## [Use id of AMI I have created as a variable in later tasks](https://forum.ansible.com/t/use-id-of-ami-i-have-created-as-a-variable-in-later-tasks/29190)

<div class="topic-metadata">

**Author:** [@shane.do](https://forum.ansible.com/u/shane.do)\
**Replies:** 11\
**Last updated:** [December 5, 2018, 11:52am UTC](https://forum.ansible.com/t/use-id-of-ami-i-have-created-as-a-variable-in-later-tasks/29190 "2018-12-05T11:52:36Z")

</div>

I am trying to create a playbook which does the following: creates an image of an AWS instance copies the image to a different region installs updates to the instance I can do all of this apart from getting the AMI to…

---

## [Reviews needed for 99 new modules in Ansible Extras](https://forum.ansible.com/t/reviews-needed-for-99-new-modules-in-ansible-extras/18524)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 6\
**Last updated:** [December 5, 2018, 10:46am UTC](https://forum.ansible.com/t/reviews-needed-for-99-new-modules-in-ansible-extras/18524 "2018-12-05T10:46:07Z")

</div>

We currently have 99 new modules in Ansible Extras that need review. You can see the list here: https://github.com/ansible/ansible-modules-extras/labels/new\_module If you are a module author yourself (official list: h…

---

## [Failed to create new process - win\_command](https://forum.ansible.com/t/failed-to-create-new-process-win-command/29186)

<div class="topic-metadata">

**Author:** [@yyellapragada](https://forum.ansible.com/u/yyellapragada)\
**Replies:** 5\
**Last updated:** [December 5, 2018, 3:32am UTC](https://forum.ansible.com/t/failed-to-create-new-process-win-command/29186 "2018-12-05T03:32:39Z")

</div>

Hello Team, I am trying to install an AV agent on a windows machine and I get this error: fatal: \[10.217.25.55\]: FAILED! =\> { “changed”: false, “cmd”: “\\\[machine\]\[path\]\\Setup.exe -updp “\\\[machine name\]\[path\]” -user “…

---

## [AWX Offline Installation.](https://forum.ansible.com/t/awx-offline-installation/29198)

<div class="topic-metadata">

**Author:** [@Casey](https://forum.ansible.com/u/Casey)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 1:41am UTC](https://forum.ansible.com/t/awx-offline-installation/29198 "2018-12-05T01:41:37Z")

</div>

Hi, I would like to try this open source AWX Ansible but my environment is restricted going out to any external sites. Is there any documentation on how to instal AWX Offline? Thanks Casey

---

## [ANSIBLE\_HOST\_KEY\_CHECKING seems to be ignored](https://forum.ansible.com/t/ansible-host-key-checking-seems-to-be-ignored/29197)

<div class="topic-metadata">

**Author:** [@John\_Mason](https://forum.ansible.com/u/John_Mason)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 1:34am UTC](https://forum.ansible.com/t/ansible-host-key-checking-seems-to-be-ignored/29197 "2018-12-05T01:34:21Z")

</div>

Hi, we are deploying a new AWX cluster in Kubernetes using version AWX 2.1.0. Our current installation is version 1.0.7. The problem we’re running into is that when Ansible makes its SSH connection to any host, ssh give…

---

## [Possible to not automatically create Demo inventory, credential, etc?](https://forum.ansible.com/t/possible-to-not-automatically-create-demo-inventory-credential-etc/29195)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 3\
**Last updated:** [December 4, 2018, 9:05pm UTC](https://forum.ansible.com/t/possible-to-not-automatically-create-demo-inventory-credential-etc/29195 "2018-12-04T21:05:05Z")

</div>

Hello, I am deploying via Docker compose and I’m wondering if there is an environmental variable or something that can be passed in order to disable the pre-seeding of data. I don’t want the Demo inventory, project, cred…

---

## [ssh connectivity issue AWX 2.1.0](https://forum.ansible.com/t/ssh-connectivity-issue-awx-2-1-0/29181)

<div class="topic-metadata">

**Author:** [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Replies:** 7\
**Last updated:** [December 4, 2018, 6:20pm UTC](https://forum.ansible.com/t/ssh-connectivity-issue-awx-2-1-0/29181 "2018-12-04T18:20:51Z")

</div>

Hi Team, I am facing some weird issue. Issue: I installed AWX 2.1.0 standalone. I configured passwordless login to target host Verified by login into the target host from command line. We are setting up dynamic ent…

---

## [Find all instances, and build a list](https://forum.ansible.com/t/find-all-instances-and-build-a-list/29183)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 11\
**Last updated:** [December 4, 2018, 6:11pm UTC](https://forum.ansible.com/t/find-all-instances-and-build-a-list/29183 "2018-12-04T18:11:27Z")

</div>

I have a file, as an example, with the following content: disk = \[file:/OVS/Repositories/0004fb0000030000df2ee11376f1cd94/VirtualDisks/b7558d7745c14b02806d08f8003906e1.img,xvda,w,phy:/OVS/Repositories/0004fb0000030000df…

---

## [Confusion about storing and accessing variables](https://forum.ansible.com/t/confusion-about-storing-and-accessing-variables/29194)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 0\
**Last updated:** [December 4, 2018, 5:44pm UTC](https://forum.ansible.com/t/confusion-about-storing-and-accessing-variables/29194 "2018-12-04T17:44:18Z")

</div>

Hello, I’m trying to store a cisco device config in the fact cache, I’m doing it like this: name: “Get Config” register: config ios\_command: commands: show running-config name: “Store config as fact” set\_fact: …

---

## [Ansible playbook to check disk space is failing](https://forum.ansible.com/t/ansible-playbook-to-check-disk-space-is-failing/29187)

<div class="topic-metadata">

**Author:** [@powcarz](https://forum.ansible.com/u/powcarz)\
**Replies:** 2\
**Last updated:** [December 4, 2018, 12:49pm UTC](https://forum.ansible.com/t/ansible-playbook-to-check-disk-space-is-failing/29187 "2018-12-04T12:49:13Z")

</div>

Hi You are declaring ansible\_mounts as a list of strings. It literally is: ansible\_mounts: \['xyz', 'abc'\]. Ansible is complaining, that the string 'xyz' does not have a 'mount' property. You are obviously missing a st…

---

## [Ansible development modules documentation](https://forum.ansible.com/t/ansible-development-modules-documentation/29189)

<div class="topic-metadata">

**Author:** [@rpachi](https://forum.ansible.com/u/rpachi)\
**Replies:** 0\
**Last updated:** [December 4, 2018, 12:01pm UTC](https://forum.ansible.com/t/ansible-development-modules-documentation/29189 "2018-12-04T12:01:39Z")

</div>

Hi Experts, Can some one point me to a link where I can find good documentation on unit testing of developed ansible modules. Ansible documentation is not so clear. Thanks, Rajas

---

## [The installed version of WinRM does not support transport(s) \[u''\]](https://forum.ansible.com/t/the-installed-version-of-winrm-does-not-support-transport-s-u/29184)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 2\
**Last updated:** [December 4, 2018, 11:59am UTC](https://forum.ansible.com/t/the-installed-version-of-winrm-does-not-support-transport-s-u/29184 "2018-12-04T11:59:53Z")

</div>

Hello there, I’m trying to configure a bunch of Windows machines through Ansible and installed pywinrm correctly but Ansible is throwing an error message. Command: ansible-playbook -i inventory/hosts playbooks/common.y…

---

## [Credential type for Netapp, Ontap modules](https://forum.ansible.com/t/credential-type-for-netapp-ontap-modules/29188)

<div class="topic-metadata">

**Author:** [@Richard\_Klar](https://forum.ansible.com/u/Richard_Klar)\
**Replies:** 0\
**Last updated:** [December 4, 2018, 10:42am UTC](https://forum.ansible.com/t/credential-type-for-netapp-ontap-modules/29188 "2018-12-04T10:42:46Z")

</div>

Hi, Which credential type should be used in AWX för Netapp, Ontap modules? // Richard

[Previous page](https://forum.ansible.com/latest.md?page=498)

[Next page](https://forum.ansible.com/latest.md?page=500)
