# Latest

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

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

**Page:** 726

---

## [Ansible merge multiple files.](https://forum.ansible.com/t/ansible-merge-multiple-files/22540)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 4\
**Last updated:** [September 15, 2016, 7:54pm UTC](https://forum.ansible.com/t/ansible-merge-multiple-files/22540 "2016-09-15T19:54:42Z")

</div>

Hello, I have a number of templates that are generated by Ansible but I need them combined into a single file. Is there a way to do this without having to do a shell command "file1 \>\> newFile.txt" For example I have …

---

## [Ansible and kube-deploy](https://forum.ansible.com/t/ansible-and-kube-deploy/22560)

<div class="topic-metadata">

**Author:** [@Laurent\_Dumont](https://forum.ansible.com/u/Laurent_Dumont)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 4:53pm UTC](https://forum.ansible.com/t/ansible-and-kube-deploy/22560 "2016-09-15T16:53:11Z")

</div>

Hi, I’m trying to integrate Ansible into kube-deploy to allow for a faster and smoother deployment. I’ve ran into a strange issue where if I’m running the script for the ansible playbook, I cant mount gluster volumes in…

---

## [Extra vars with plugins](https://forum.ansible.com/t/extra-vars-with-plugins/22550)

<div class="topic-metadata">

**Author:** [@Andrew1](https://forum.ansible.com/u/Andrew1)\
**Replies:** 7\
**Last updated:** [September 15, 2016, 4:01pm UTC](https://forum.ansible.com/t/extra-vars-with-plugins/22550 "2016-09-15T16:01:08Z")

</div>

Hello, I’m attempting to make some things happen with nested playbooks. Seems like including full on playbooks (as opposed to “taskbooks”) from within “tasks” is not supported as described here. Doing vars, vars\_files, …

---

## [Prompt in Custom Ansible Module](https://forum.ansible.com/t/prompt-in-custom-ansible-module/22551)

<div class="topic-metadata">

**Author:** [@Moses\_Lim\_Him\_Kuong](https://forum.ansible.com/u/Moses_Lim_Him_Kuong)\
**Replies:** 1\
**Last updated:** [September 15, 2016, 3:24pm UTC](https://forum.ansible.com/t/prompt-in-custom-ansible-module/22551 "2016-09-15T15:24:54Z")

</div>

what is the right way to prompt user for input in a custom module?

---

## [Extend setup module](https://forum.ansible.com/t/extend-setup-module/22531)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 3\
**Last updated:** [September 15, 2016, 3:18pm UTC](https://forum.ansible.com/t/extend-setup-module/22531 "2016-09-15T15:18:13Z")

</div>

We have a internal CMDB that gathers facts from systems using the setup module on playbook execution. Is there a way to extend the setup module to include extra information? From what I have read the local facts would w…

---

## [Prompt user for input in Custom Ansible Module](https://forum.ansible.com/t/prompt-user-for-input-in-custom-ansible-module/22552)

<div class="topic-metadata">

**Author:** [@Moses\_Lim\_Him\_Kuong](https://forum.ansible.com/u/Moses_Lim_Him_Kuong)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 1:23pm UTC](https://forum.ansible.com/t/prompt-user-for-input-in-custom-ansible-module/22552 "2016-09-15T13:23:52Z")

</div>

How to prompt user for input inside the custom module?

---

## [get\_url newbie question](https://forum.ansible.com/t/get-url-newbie-question/16300)

<div class="topic-metadata">

**Author:** [@Daniel\_Laird](https://forum.ansible.com/u/Daniel_Laird)\
**Replies:** 4\
**Last updated:** [September 15, 2016, 12:48pm UTC](https://forum.ansible.com/t/get-url-newbie-question/16300 "2016-09-15T12:48:44Z")

</div>

All, New to ansible and struggling a bit. I want to use get\_url on a list of files. But also due to issues with the server I am downloading from I want to retry the download on failure. I have something like this: n…

---

## [running shell commands on Windows](https://forum.ansible.com/t/running-shell-commands-on-windows/22530)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 12:26pm UTC](https://forum.ansible.com/t/running-shell-commands-on-windows/22530 "2016-09-15T12:26:18Z")

</div>

Hello, I did write an Ansible playbook to run on Linux, and now I would like to port it to run on Windows. I would like to list the subdirectories to save it but because I don’t know the full name, on Linux did write t…

---

## [I got error 'dict object' has no attribute 'state' when use state in when](https://forum.ansible.com/t/i-got-error-dict-object-has-no-attribute-state-when-use-state-in-when/22556)

<div class="topic-metadata">

**Author:** [@Andrey\_Rogovsky](https://forum.ansible.com/u/Andrey_Rogovsky)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 12:12pm UTC](https://forum.ansible.com/t/i-got-error-dict-object-has-no-attribute-state-when-use-state-in-when/22556 "2016-09-15T12:12:36Z")

</div>

Hi, all! There is result of execute my playbook: ansible-playbook test.yml PLAY \[ldap\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* … TASK \[freeipa-ds389d : Check if FreeIPA is configured\] \*\*\*…

---

## [List comprehension like in defaults/main.yml](https://forum.ansible.com/t/list-comprehension-like-in-defaults-main-yml/22544)

<div class="topic-metadata">

**Author:** [@Ju\_Ju](https://forum.ansible.com/u/Ju_Ju)\
**Replies:** 1\
**Last updated:** [September 15, 2016, 11:02am UTC](https://forum.ansible.com/t/list-comprehension-like-in-defaults-main-yml/22544 "2016-09-15T11:02:40Z")

</div>

Hi, I need to create a list of fqdn according to à list of subdomain and a domain: app\_\_domain: '{{ ansible\_local.core.domain if (ansible\_local|d() and ansible\_local.core|d() and …

---

## [Using ansible to run a test suite](https://forum.ansible.com/t/using-ansible-to-run-a-test-suite/22553)

<div class="topic-metadata">

**Author:** [@varun\_naagaraj](https://forum.ansible.com/u/varun_naagaraj)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 10:11am UTC](https://forum.ansible.com/t/using-ansible-to-run-a-test-suite/22553 "2016-09-15T10:11:30Z")

</div>

Hi, I have been working on Ansible for over 2 months now for the automation of patch fixes. The code has been integrated into the system. Now i want to know if there is any means by which i can run a previously develope…

---

## [How to get and parse the output from target hosts](https://forum.ansible.com/t/how-to-get-and-parse-the-output-from-target-hosts/22546)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 8:53am UTC](https://forum.ansible.com/t/how-to-get-and-parse-the-output-from-target-hosts/22546 "2016-09-15T08:53:02Z")

</div>

Hello, I would like to write a playbook to install Red Hat Security Advisory on my hosts. The idea is to put the published information about the advisories with their Numbers (e.g. RHSA-2016:1234) in a variable and run …

---

## [How can i get the value from a dict of dicts when the key is supplied by a variable ?](https://forum.ansible.com/t/how-can-i-get-the-value-from-a-dict-of-dicts-when-the-key-is-supplied-by-a-variable/22533)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 6:47am UTC](https://forum.ansible.com/t/how-can-i-get-the-value-from-a-dict-of-dicts-when-the-key-is-supplied-by-a-variable/22533 "2016-09-15T06:47:22Z")

</div>

I have prepared a YAML file which arrange some constant values as dictionary of dictionaries: values: key1: val1: 1.1 val2: - 1.2.1 - 1.2.2 val3: - 1.3.1 - 1.3.2 val4: - 1.4.1 - 1.4.2 key2: val1: 2.1 val2: …

---

## [Docker container fails to reload](https://forum.ansible.com/t/docker-container-fails-to-reload/21617)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 9\
**Last updated:** [September 15, 2016, 3:41am UTC](https://forum.ansible.com/t/docker-container-fails-to-reload/21617 "2016-09-15T03:41:26Z")

</div>

I keep getting this error when I run a playbook with a docker task whose state is set to ‘reloaded’: fatal: \[10.0.3.22\]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “Traceback (mo…

---

## [Very simple, but very usefull path to ec2\_remote\_facts](https://forum.ansible.com/t/very-simple-but-very-usefull-path-to-ec2-remote-facts/22549)

<div class="topic-metadata">

**Author:** [@Oleg\_Tsarev](https://forum.ansible.com/u/Oleg_Tsarev)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 12:30am UTC](https://forum.ansible.com/t/very-simple-but-very-usefull-path-to-ec2-remote-facts/22549 "2016-09-15T00:30:02Z")

</div>

Hi everybody, It would be very usefull to receive public\_ip from ec2\_remote\_facts.py I wrote simple patch for that. Probably we should include it to the ansible 2.2? With best regards, Oleg --- a/venv/lib/python2.7/…

---

## [Trouble with mount](https://forum.ansible.com/t/trouble-with-mount/22535)

<div class="topic-metadata">

**Author:** [@Mateus\_Interciso](https://forum.ansible.com/u/Mateus_Interciso)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 10:04pm UTC](https://forum.ansible.com/t/trouble-with-mount/22535 "2016-09-14T22:04:07Z")

</div>

Hello all, I’m veyr new on ansible and currently trying to make some automation with mount. Should be veyr simple, but please take a look at this. This is part of my playbook: mount: name: “{{ instance.value.mount }}…

---

## [Is there a sane way to build a list of dictionaries from two lists?](https://forum.ansible.com/t/is-there-a-sane-way-to-build-a-list-of-dictionaries-from-two-lists/22547)

<div class="topic-metadata">

**Author:** [@cohen.ben](https://forum.ansible.com/u/cohen.ben)\
**Replies:** 0\
**Last updated:** [September 14, 2016, 8:16pm UTC](https://forum.ansible.com/t/is-there-a-sane-way-to-build-a-list-of-dictionaries-from-two-lists/22547 "2016-09-14T20:16:02Z")

</div>

I want to use with\_nested to assemble a list by iterating over two lists and extracting particular keys from both – ideally something like …: name: “Build flat list of security group rules that should exist” set\_fact: …

---

## [AWS - new EC2 Resource ID length - is Ansible ready?](https://forum.ansible.com/t/aws-new-ec2-resource-id-length-is-ansible-ready/20256)

<div class="topic-metadata">

**Author:** [@Adam\_Johnson](https://forum.ansible.com/u/Adam_Johnson)\
**Replies:** 4\
**Last updated:** [September 14, 2016, 6:30pm UTC](https://forum.ansible.com/t/aws-new-ec2-resource-id-length-is-ansible-ready/20256 "2016-09-14T18:30:40Z")

</div>

AWS have recently announced the opt-in scheme for new Resource ID lengths for instances and reservations, which will become mandatory in December. Since Ansible uses Boto directly and probably doesn’t make any assumption…

---

## [Trouble Running 'ntc\_show\_command' Module](https://forum.ansible.com/t/trouble-running-ntc-show-command-module/22524)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 5:46pm UTC](https://forum.ansible.com/t/trouble-running-ntc-show-command-module/22524 "2016-09-14T17:46:22Z")

</div>

I am trying to run ntc\_show\_command module but getting the following error: {"changed": false, "failed": true, "msg": "This module requires TextFSM"} Here is my pip list: Babel (0.9.6) cffi (1.7.0) coverage (4.2) …

---

## [Variables precedence in dependencies](https://forum.ansible.com/t/variables-precedence-in-dependencies/22526)

<div class="topic-metadata">

**Author:** [@Federico\_Alaimo](https://forum.ansible.com/u/Federico_Alaimo)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 1:04pm UTC](https://forum.ansible.com/t/variables-precedence-in-dependencies/22526 "2016-09-14T13:04:52Z")

</div>

Hello, I have a doubt regarding variables precedence: I sometimes have the case where role B depends on role A with role A needing a specific variable value. So in the dependencies file for role B I have something like…

---

## [connect to nova websocket](https://forum.ansible.com/t/connect-to-nova-websocket/22543)

<div class="topic-metadata">

**Author:** [@Maurizio\_Santovito](https://forum.ansible.com/u/Maurizio_Santovito)\
**Replies:** 0\
**Last updated:** [September 14, 2016, 10:54am UTC](https://forum.ansible.com/t/connect-to-nova-websocket/22543 "2016-09-14T10:54:29Z")

</div>

Hi all, is there any way I can use ansible to connect to websockets such as nova instance serial consoles? I need to run commands there and fetch results, and those instances are chained each other in a isolated networ…

---

## [Return of issue #13602: ansible runs setup for all plays when run with -t](https://forum.ansible.com/t/return-of-issue-13602-ansible-runs-setup-for-all-plays-when-run-with-t/22419)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 7:56am UTC](https://forum.ansible.com/t/return-of-issue-13602-ansible-runs-setup-for-all-plays-when-run-with-t/22419 "2016-09-14T07:56:38Z")

</div>

Hi It seems that https://github.com/ansible/ansible/issues/13602 is back in Ansible 2.1.1 and devel. Running ansible-playbook with -t will collect facts even if no task/role in the play is selected. This also happens wi…

---

## [idea: allow group\_vars/ and host\_vars/ files to be organised in sub folders](https://forum.ansible.com/t/idea-allow-group-vars-and-host-vars-files-to-be-organised-in-sub-folders/12672)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 12\
**Last updated:** [September 14, 2016, 7:38am UTC](https://forum.ansible.com/t/idea-allow-group-vars-and-host-vars-files-to-be-organised-in-sub-folders/12672 "2016-09-14T07:38:03Z")

</div>

Hi list, My use case: At $WORK, we divise our ansible repo in multiple projects/\* dirs, where all projects have their own hosts file and group\_vars/; a wrapper script merges all these together in $basedir; basically ha…

---

## [install ansible from tar bundle as non root user on oracle linux](https://forum.ansible.com/t/install-ansible-from-tar-bundle-as-non-root-user-on-oracle-linux/22542)

<div class="topic-metadata">

**Author:** [@m4sanjeevk.dba](https://forum.ansible.com/u/m4sanjeevk.dba)\
**Replies:** 0\
**Last updated:** [September 14, 2016, 3:03am UTC](https://forum.ansible.com/t/install-ansible-from-tar-bundle-as-non-root-user-on-oracle-linux/22542 "2016-09-14T03:03:38Z")

</div>

I downloaded tar bundle from absible website but was not able to install software with make install. as non root user. how to install this as non root user on linux?

---

## [iosxr\_config load config question](https://forum.ansible.com/t/iosxr-config-load-config-question/22525)

<div class="topic-metadata">

**Author:** [@Radoslav\_Mitov](https://forum.ansible.com/u/Radoslav_Mitov)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 2:07am UTC](https://forum.ansible.com/t/iosxr-config-load-config-question/22525 "2016-09-14T02:07:44Z")

</div>

Hi All, I have a problem with uploading a config file to ios XR box. When i run the play the error is: fatal: \[pe2\]: FAILED! =\> {“changed”: false, “failed”: true, “invocation”: {“module\_args”: {“backup”: false, “host”…

---

## [Not able ping instances using dynamic inventory](https://forum.ansible.com/t/not-able-ping-instances-using-dynamic-inventory/22502)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 3\
**Last updated:** [September 13, 2016, 11:09pm UTC](https://forum.ansible.com/t/not-able-ping-instances-using-dynamic-inventory/22502 "2016-09-13T23:09:25Z")

</div>

I have downloaded ec2.py and ec2.ini files and placed them under /etc/ansible/inventory and i have changed the ansible.cfg to inventory = /etc/ansible/inventory/ec2.py i have environment variables set up as e…

---

## [Does Ansible have to run as root?   sudo and --become-user](https://forum.ansible.com/t/does-ansible-have-to-run-as-root-sudo-and-become-user/22536)

<div class="topic-metadata">

**Author:** [@Mike\_Schlottman](https://forum.ansible.com/u/Mike_Schlottman)\
**Replies:** 4\
**Last updated:** [September 13, 2016, 7:00pm UTC](https://forum.ansible.com/t/does-ansible-have-to-run-as-root-sudo-and-become-user/22536 "2016-09-13T19:00:20Z")

</div>

I have just started looking into Ansible and have built a server on Centos 7. I generally don’t run anything as root so I created an ansible account and group and chown -R ansible:ansible /etc/ansible. I assumed that th…

---

## [privileged execution while local connection loop not working](https://forum.ansible.com/t/privileged-execution-while-local-connection-loop-not-working/22537)

<div class="topic-metadata">

**Author:** [@John\_Scancella](https://forum.ansible.com/u/John_Scancella)\
**Replies:** 2\
**Last updated:** [September 13, 2016, 5:37pm UTC](https://forum.ansible.com/t/privileged-execution-while-local-connection-loop-not-working/22537 "2016-09-13T17:37:52Z")

</div>

hello, I believe that issue https://github.com/ansible/ansible/issues/13763 still isn’t resolved as I am experiencing it currently. I am using version 2.0.0.2 Here is an example script that will cause the same error m…

---

## [Include multiple tasks from different roles](https://forum.ansible.com/t/include-multiple-tasks-from-different-roles/22534)

<div class="topic-metadata">

**Author:** [@Sunny\_Bhatheja](https://forum.ansible.com/u/Sunny_Bhatheja)\
**Replies:** 0\
**Last updated:** [September 13, 2016, 2:38pm UTC](https://forum.ansible.com/t/include-multiple-tasks-from-different-roles/22534 "2016-09-13T14:38:39Z")

</div>

I want to include multiple tasks from different roles in a specific order. As of now my playbook looks like \`

---

## [Aborting entire playbook when one host unreachable](https://forum.ansible.com/t/aborting-entire-playbook-when-one-host-unreachable/22508)

<div class="topic-metadata">

**Author:** [@Gustav\_Karlsson](https://forum.ansible.com/u/Gustav_Karlsson)\
**Replies:** 1\
**Last updated:** [September 13, 2016, 1:22pm UTC](https://forum.ansible.com/t/aborting-entire-playbook-when-one-host-unreachable/22508 "2016-09-13T13:22:47Z")

</div>

Hi, We are using an ansible (v 2.0.2) playbook for deployment of our webapp. A simplified example of what we are doing is: Play 1 - db Expand the database schema to support new version of the webapp. Play 2 - appser…

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

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