# Archives

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

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

**Page:** 555

---

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

---

## [Ansible 2.1.2 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-1-2-rc2-is-ready-for-testing/22437)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 6\
**Last updated:** [September 13, 2016, 1:06pm UTC](https://forum.ansible.com/t/ansible-2-1-2-rc2-is-ready-for-testing/22437 "2016-09-13T13:06:16Z")

</div>

Hi all, we’re happy to announce that RC2 for 2.1.2 is now available for testing. This release candidate also adds the following fixes for bugs: Fixed a bug in which INI files incorrectly treated a hosts range as a sec…

---

## [回复：\[ansible-project\] Re: Extend setup module](https://forum.ansible.com/t/ansible-project-re-extend-setup-module/22532)

<div class="topic-metadata">

**Author:** [@hzj.zh](https://forum.ansible.com/u/hzj.zh)\
**Replies:** 0\
**Last updated:** [September 13, 2016, 11:07am UTC](https://forum.ansible.com/t/ansible-project-re-extend-setup-module/22532 "2016-09-13T11:07:11Z")

</div>

The fact gathering code lives here: https://github.com/ansible/ansible/blob/devel/lib/ansible/module\_utils/facts.py

---

## [include task and when doesn't completely skip, variables is overwritten.](https://forum.ansible.com/t/include-task-and-when-doesnt-completely-skip-variables-is-overwritten/22527)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 2\
**Last updated:** [September 13, 2016, 8:18am UTC](https://forum.ansible.com/t/include-task-and-when-doesnt-completely-skip-variables-is-overwritten/22527 "2016-09-13T08:18:44Z")

</div>

Hi I have this simple example. It work as expected in v2.0.2 but not in 2.1.1 task1.yml

---

## [Error while doing installation in mac osX](https://forum.ansible.com/t/error-while-doing-installation-in-mac-osx/22529)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 0\
**Last updated:** [September 13, 2016, 3:13am UTC](https://forum.ansible.com/t/error-while-doing-installation-in-mac-osx/22529 "2016-09-13T03:13:26Z")

</div>

Hi here, Im getting below error while doing installation.Im using OS-X EI Capitan 10.11.5 Command "/usr/bin/python -u -c "import setuptools, tokenize;\_\_file\_\_='/private/tmp/pip-build-3FnH7o/pycrypto/setup.py';exec(comp…

---

## [register with with\_together not working](https://forum.ansible.com/t/register-with-with-together-not-working/22480)

<div class="topic-metadata">

**Author:** [@AnsiNoob](https://forum.ansible.com/u/AnsiNoob)\
**Replies:** 2\
**Last updated:** [September 10, 2016, 12:17am UTC](https://forum.ansible.com/t/register-with-with-together-not-working/22480 "2016-09-10T00:17:59Z")

</div>

I want to use register with loops (http://docs.ansible.com/ansible/playbooks\_loops.html#using-register-with-a-loop) to accomplish below tasks: – Surf through couple of variables arrays in with\_together format and save r…

---

## [Pyhon not found](https://forum.ansible.com/t/pyhon-not-found/22485)

<div class="topic-metadata">

**Author:** [@ZigDuDim](https://forum.ansible.com/u/ZigDuDim)\
**Replies:** 1\
**Last updated:** [September 9, 2016, 10:21pm UTC](https://forum.ansible.com/t/pyhon-not-found/22485 "2016-09-09T22:21:11Z")

</div>

Hi everyone, I have 2 servers, both under the lastest version of ubuntu server 16.04.1 LTS. One of them is my Ansible remote controler, and the other is my future DHCP server. I followed the instruction on this web si…

---

## [QUESTION: Recommended way to run unit tests in Travis](https://forum.ansible.com/t/question-recommended-way-to-run-unit-tests-in-travis/22514)

<div class="topic-metadata">

**Author:** [@mark4](https://forum.ansible.com/u/mark4)\
**Replies:** 2\
**Last updated:** [September 9, 2016, 9:18pm UTC](https://forum.ansible.com/t/question-recommended-way-to-run-unit-tests-in-travis/22514 "2016-09-09T21:18:34Z")

</div>

Our team is in the process of submitting a module with unit tests to https://github.com/ansible/ansible-modules-extras and we have a few questions about how to get it to run with the rest of the projects build steps in T…

---

## [In-progress MongoDB modules](https://forum.ansible.com/t/in-progress-mongodb-modules/22519)

<div class="topic-metadata">

**Author:** [@Gabriel\_Ciciliani](https://forum.ansible.com/u/Gabriel_Ciciliani)\
**Replies:** 5\
**Last updated:** [September 9, 2016, 7:19pm UTC](https://forum.ansible.com/t/in-progress-mongodb-modules/22519 "2016-09-09T19:19:16Z")

</div>

Hi Folks, Is anyone working on mongodb modules, specifically for replicasets management? I would like to contribute with this project Regards

---

## [Is it possible to use the su and sudo at the task?](https://forum.ansible.com/t/is-it-possible-to-use-the-su-and-sudo-at-the-task/22033)

<div class="topic-metadata">

**Author:** [@user84](https://forum.ansible.com/u/user84)\
**Replies:** 1\
**Last updated:** [September 9, 2016, 6:23pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-the-su-and-sudo-at-the-task/22033 "2016-09-09T18:23:10Z")

</div>

Hi, I’m trying to use Ansible in my production. I’d like to do the following command in Ansible. Is it possible? $ ssh user\_a@xxx $ su user\_b $ sudo xxx In my production, user\_a is only user allowed to SSH connecti…

---

## [variable registering everything, not just the stdout](https://forum.ansible.com/t/variable-registering-everything-not-just-the-stdout/22521)

<div class="topic-metadata">

**Author:** [@Jamie\_Thompson](https://forum.ansible.com/u/Jamie_Thompson)\
**Replies:** 2\
**Last updated:** [September 9, 2016, 5:53pm UTC](https://forum.ansible.com/t/variable-registering-everything-not-just-the-stdout/22521 "2016-09-09T17:53:01Z")

</div>

Hi all, In a role I have the following: name: generate new UUID shell: uuidgen register: new\_uuid When I call the variable in the template I get everything, not just the UUID. Example: UUID={{ new\_uuid }} I get: …

---

## [Did something changed in how handlers are called?](https://forum.ansible.com/t/did-something-changed-in-how-handlers-are-called/22523)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 1\
**Last updated:** [September 9, 2016, 5:47pm UTC](https://forum.ansible.com/t/did-something-changed-in-how-handlers-are-called/22523 "2016-09-09T17:47:57Z")

</div>

Did something change with how handlers are invoked? Today’s git pull of devel and all my handlers that need to run as root are failing. $ ansible --version ansible 2.2.0 (devel 19e00cf160) last updated 2016/09/09 11:0…

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

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