# Archives

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

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

**Page:** 594

---

## [hosts: launched](https://forum.ansible.com/t/hosts-launched/21395)

<div class="topic-metadata">

**Author:** [@William\_Donnelly](https://forum.ansible.com/u/William_Donnelly)\
**Replies:** 0\
**Last updated:** [May 10, 2016, 2:44pm UTC](https://forum.ansible.com/t/hosts-launched/21395 "2016-05-10T14:44:10Z")

</div>

Hello, Has anyone found the correct syntax for launching a temporary ec2 instance with Ansible, doing some config on it, then using the newly created ip address of the ec2 instance in the the host inventory. This part…

---

## [yum\_repository module (has anyone thought of doing it...)](https://forum.ansible.com/t/yum-repository-module-has-anyone-thought-of-doing-it/12630)

<div class="topic-metadata">

**Author:** [@Jimmy\_Tang](https://forum.ansible.com/u/Jimmy_Tang)\
**Replies:** 17\
**Last updated:** [May 10, 2016, 1:39pm UTC](https://forum.ansible.com/t/yum-repository-module-has-anyone-thought-of-doing-it/12630 "2016-05-10T13:39:04Z")

</div>

Hi All I just noticed that I wanted to run ‘yum-conf-manager’ to add http://ftp1.scientificlinux.org/linux/scientific/6.4/x86\_64/addons/mock-sl6-config/ to my SL machines for testing and realised that there is probably …

---

## [Register shell output in a variable](https://forum.ansible.com/t/register-shell-output-in-a-variable/21384)

<div class="topic-metadata">

**Author:** [@Ivo\_Hechmann](https://forum.ansible.com/u/Ivo_Hechmann)\
**Replies:** 3\
**Last updated:** [May 10, 2016, 12:47pm UTC](https://forum.ansible.com/t/register-shell-output-in-a-variable/21384 "2016-05-10T12:47:44Z")

</div>

Hello team ansible How can I register the output of a script in a variable? Thus, not the script result object with all its attributes like stdout, stderr etc, but only catch the stdout and register as variable? Thank …

---

## [Is it possible to use YAML node references in role task?](https://forum.ansible.com/t/is-it-possible-to-use-yaml-node-references-in-role-task/21391)

<div class="topic-metadata">

**Author:** [@Artem\_Kozlov](https://forum.ansible.com/u/Artem_Kozlov)\
**Replies:** 0\
**Last updated:** [May 10, 2016, 12:25pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-yaml-node-references-in-role-task/21391 "2016-05-10T12:25:08Z")

</div>

Should it be possible to use YAML references in roles task to reference node from vars or defaults file? (I’m using ansible 2.0) E.g I have vars/main.yml: \` docker\_defaults: &docker\_defaults name: “{{name}}” \` And …

---

## [File lookup plugin behavior concerning quotes @abadger, @bcoca](https://forum.ansible.com/t/file-lookup-plugin-behavior-concerning-quotes-abadger-bcoca/21358)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 13\
**Last updated:** [May 10, 2016, 11:42am UTC](https://forum.ansible.com/t/file-lookup-plugin-behavior-concerning-quotes-abadger-bcoca/21358 "2016-05-10T11:42:33Z")

</div>

Hi all, This is mostly aimed at the core team… Can you explain why the file lookup plugin changes the contents of the file as far as quotes are concerned? I.e. it changes all double quotes to single quotes. I am not s…

---

## [ERROR! Unexpected Exception: \[Errno 24\] Too many open files Ansible](https://forum.ansible.com/t/error-unexpected-exception-errno-24-too-many-open-files-ansible/21389)

<div class="topic-metadata">

**Author:** [@Lawrence1](https://forum.ansible.com/u/Lawrence1)\
**Replies:** 0\
**Last updated:** [May 10, 2016, 9:02am UTC](https://forum.ansible.com/t/error-unexpected-exception-errno-24-too-many-open-files-ansible/21389 "2016-05-10T09:02:46Z")

</div>

Hello, I can’t execute my ansible playbook because there is too many open files. Have you already got this problem ? If you have already faced this problem, could you please share your solution ? Thanks advance for yo…

---

## [127.0.0.1 and localhost in synchronize module (redux)](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module-redux/21387)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 1\
**Last updated:** [May 10, 2016, 5:32am UTC](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module-redux/21387 "2016-05-10T05:32:31Z")

</div>

Run into a similar problem documented at \<https://github.com/ansible/ansible/issues/5240\> and \<https://groups.google.com/d/msg/ansible-project/gT2eie6SVuU/MwUd44Eh15sJ\> I’m not sure if this is a personal problem or a r…

---

## [Copy module can not run in coreos](https://forum.ansible.com/t/copy-module-can-not-run-in-coreos/21356)

<div class="topic-metadata">

**Author:** [@tao\_zhang](https://forum.ansible.com/u/tao_zhang)\
**Replies:** 2\
**Last updated:** [May 10, 2016, 2:22am UTC](https://forum.ansible.com/t/copy-module-can-not-run-in-coreos/21356 "2016-05-10T02:22:18Z")

</div>

Hi guys, Has anyone meet the below issue? Copy module can not run in coreos. I got the below error message: /bin/bash: warning: setlocale: LC\_ALL: cannot change locale (en\_US.UTF-8) /bin/bash: warning: setlocale: LC\_…

---

## [Register command output with\_items](https://forum.ansible.com/t/register-command-output-with-items/21300)

<div class="topic-metadata">

**Author:** [@Srividhya\_Mohan](https://forum.ansible.com/u/Srividhya_Mohan)\
**Replies:** 2\
**Last updated:** [May 10, 2016, 12:41am UTC](https://forum.ansible.com/t/register-command-output-with-items/21300 "2016-05-10T00:41:02Z")

</div>

Hi I have the following in my playbook hosts: localhost tasks: name: echo output command: echo {{item}} register: echo\_output with\_items: hi hello debug: msg=“{{ echo\_output.results}}” When I run t…

---

## [Dependency to a role used in distinct hosts](https://forum.ansible.com/t/dependency-to-a-role-used-in-distinct-hosts/21385)

<div class="topic-metadata">

**Author:** [@Paulo\_Suderio](https://forum.ansible.com/u/Paulo_Suderio)\
**Replies:** 0\
**Last updated:** [May 9, 2016, 9:24pm UTC](https://forum.ansible.com/t/dependency-to-a-role-used-in-distinct-hosts/21385 "2016-05-09T21:24:25Z")

</div>

Hi all, If I’ve understood correctly, role dependencies are to run in the same hosts. At least this seems to be the design. But I have many cases where dependencies are to roles that will run in other groups of hosts. E…

---

## [New Boto3-only requirement for new  AWS modules](https://forum.ansible.com/t/new-boto3-only-requirement-for-new-aws-modules/21379)

<div class="topic-metadata">

**Author:** [@pjodouin](https://forum.ansible.com/u/pjodouin)\
**Replies:** 3\
**Last updated:** [May 9, 2016, 6:48pm UTC](https://forum.ansible.com/t/new-boto3-only-requirement-for-new-aws-modules/21379 "2016-05-09T18:48:46Z")

</div>

Hi all, My Lambda modules have been sitting in community\_review long enough that they no longer build. I’ve written them with Boto3 but had to include boto as they would not compile otherwise due to some dependancy in t…

---

## [Ansible test frameworks ?](https://forum.ansible.com/t/ansible-test-frameworks/21380)

<div class="topic-metadata">

**Author:** [@Michael\_Bright](https://forum.ansible.com/u/Michael_Bright)\
**Replies:** 1\
**Last updated:** [May 9, 2016, 3:42pm UTC](https://forum.ansible.com/t/ansible-test-frameworks/21380 "2016-05-09T15:42:00Z")

</div>

I want to do some testing across multiple hosts (of an OpenStack platform) and I’d really like to base this on Ansible to take advantage of the inventory management. However, I really don’t want the standard ansible-pla…

---

## [ansible locale issue](https://forum.ansible.com/t/ansible-locale-issue/21377)

<div class="topic-metadata">

**Author:** [@Andy3](https://forum.ansible.com/u/Andy3)\
**Replies:** 5\
**Last updated:** [May 8, 2016, 3:36pm UTC](https://forum.ansible.com/t/ansible-locale-issue/21377 "2016-05-08T15:36:48Z")

</div>

Hi experts,I report a bug on github, but I notice the maillist is a better way to ask my quesiton, so anyone can help me on below issue? ANSIBLE VERSION ansible 1.9.6 configured module search path = None CONFIGURATION /…

---

## [Accessing variables programatically](https://forum.ansible.com/t/accessing-variables-programatically/21368)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 3\
**Last updated:** [May 8, 2016, 8:01am UTC](https://forum.ansible.com/t/accessing-variables-programatically/21368 "2016-05-08T08:01:34Z")

</div>

Hello, I'm developing both an Ansible module and a dynamic inventory script, in Python. In each case, I need to lookup/obtain the value of a host/group variable. I've looked through the documentation, and tried a bunc…

---

## [API 2.0](https://forum.ansible.com/t/api-2-0/21378)

<div class="topic-metadata">

**Author:** [@Noam\_Greenberg](https://forum.ansible.com/u/Noam_Greenberg)\
**Replies:** 4\
**Last updated:** [May 7, 2016, 3:18pm UTC](https://forum.ansible.com/t/api-2-0/21378 "2016-05-07T15:18:32Z")

</div>

Hi all i wander if any one have a link or book about the Ansible 2.0 API (python ) function , param etc … something i try to run a playbook from python and i dont find any doc that explain how to or witch function to …

---

## [Mesos related modules?](https://forum.ansible.com/t/mesos-related-modules/20486)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 3\
**Last updated:** [May 7, 2016, 1:58pm UTC](https://forum.ansible.com/t/mesos-related-modules/20486 "2016-05-07T13:58:34Z")

</div>

Hi I recently started to work with mesos and discovered really simple frameworks rest APIs: marathon https://mesosphere.github.io/marathon/docs/rest-api.html chronos https://mesos.github.io/chronos/docs/api.html Has …

---

## [Define variable with a loop](https://forum.ansible.com/t/define-variable-with-a-loop/21376)

<div class="topic-metadata">

**Author:** [@sylvain2](https://forum.ansible.com/u/sylvain2)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 8:45pm UTC](https://forum.ansible.com/t/define-variable-with-a-loop/21376 "2016-05-06T20:45:28Z")

</div>

Hi All, I’m a new (and enthousiast !) user of ansible. I’m trying to set up an automated way of handling the development environments of our team, using Ansible and some publicly available roles, in particular https://…

---

## [win\_msi issues with Ansible 2.1](https://forum.ansible.com/t/win-msi-issues-with-ansible-2-1/21374)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 2\
**Last updated:** [May 6, 2016, 8:38pm UTC](https://forum.ansible.com/t/win-msi-issues-with-ansible-2-1/21374 "2016-05-06T20:38:13Z")

</div>

Management Node running: Ansible 2.1 Centos 7 Remote Node running: Windows 7 Powershell 3 The playbook below appears to run without errors but nothing happens on the remote node.

---

## [Ansible 2.0.2.0 + shade 1.8.0 + openstack : Update inventory  not working](https://forum.ansible.com/t/ansible-2-0-2-0-shade-1-8-0-openstack-update-inventory-not-working/21375)

<div class="topic-metadata">

**Author:** [@t10tennn](https://forum.ansible.com/u/t10tennn)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 7:15pm UTC](https://forum.ansible.com/t/ansible-2-0-2-0-shade-1-8-0-openstack-update-inventory-not-working/21375 "2016-05-06T19:15:12Z")

</div>

Hi, I 'm an ansible newbie , I’m following lars blog to get ansible play nice with openstack I have a strange issue Issue. I can launch instances on openstack. But I’m unable to update the inventory. playbook: –sn…

---

## [Can Ansible pause on errors, allowing user to intervene, then proceed?](https://forum.ansible.com/t/can-ansible-pause-on-errors-allowing-user-to-intervene-then-proceed/21367)

<div class="topic-metadata">

**Author:** [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Replies:** 4\
**Last updated:** [May 6, 2016, 5:45pm UTC](https://forum.ansible.com/t/can-ansible-pause-on-errors-allowing-user-to-intervene-then-proceed/21367 "2016-05-06T17:45:41Z")

</div>

When initially trying to get an elaborate playbook to work, it’s very costly to repeat the process when a single task fails. I’d like the playbook to automatically pause on a task that I haven’t set ignore\_errors: True …

---

## [Reading a Json file using Ansible](https://forum.ansible.com/t/reading-a-json-file-using-ansible/21371)

<div class="topic-metadata">

**Author:** [@Shwetha\_Hadimani](https://forum.ansible.com/u/Shwetha_Hadimani)\
**Replies:** 1\
**Last updated:** [May 6, 2016, 1:46pm UTC](https://forum.ansible.com/t/reading-a-json-file-using-ansible/21371 "2016-05-06T13:46:10Z")

</div>

Hi, I have a json file like below called “develop.json” { “releasedata”: { “release\_name”: “abcd”, “release\_number”: “22” } Below is my ansible script. I need to fetch release\_name from the file.

---

## [multiple elements from list](https://forum.ansible.com/t/multiple-elements-from-list/21372)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 11:47am UTC](https://forum.ansible.com/t/multiple-elements-from-list/21372 "2016-05-06T11:47:56Z")

</div>

Just a guess: debug: msg="{{item.stdout\_lines}}" with\_items: packages.results or just output the whole: debug: var=packages or debug: var=packages.results What do you want to achieve? Johannes

---

## [Apt packages](https://forum.ansible.com/t/apt-packages/21370)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 2\
**Last updated:** [May 6, 2016, 9:29am UTC](https://forum.ansible.com/t/apt-packages/21370 "2016-05-06T09:29:03Z")

</div>

Use something like this: apt: name="{{ item }}" ... with\_items: your\_package\_list and call the playbook with ansible-playbook -e 'your\_package\_list=\[foo,bar,xyz\]' Untested! Johannes

---

## [Reading a json file using Ansible](https://forum.ansible.com/t/reading-a-json-file-using-ansible/21369)

<div class="topic-metadata">

**Author:** [@Shwetha\_Hadimani](https://forum.ansible.com/u/Shwetha_Hadimani)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 8:44am UTC](https://forum.ansible.com/t/reading-a-json-file-using-ansible/21369 "2016-05-06T08:44:19Z")

</div>

Hi, I have a json file called “develop.json” like below, { “releasedata”: { “release\_name”: “abcd”, “release\_number”: “22” } } I want to read this file in ansible and get the value for “release\_name” key. I have …

---

## [Line appending failing](https://forum.ansible.com/t/line-appending-failing/21366)

<div class="topic-metadata">

**Author:** [@amritha\_sanath](https://forum.ansible.com/u/amritha_sanath)\
**Replies:** 1\
**Last updated:** [May 6, 2016, 7:52am UTC](https://forum.ansible.com/t/line-appending-failing/21366 "2016-05-06T07:52:48Z")

</div>

I have a file which is datadog.conf in which i have to append the line dogstreams: /root/ddmonitor/pattern.txt:/opt/datadog-agent/agent/checks/libs/parsers.py:parse-web at EOF i am using ansible lineinfile option and my…

---

## [Obscure error message in Unicode-related jinja2 template fail](https://forum.ansible.com/t/obscure-error-message-in-unicode-related-jinja2-template-fail/21178)

<div class="topic-metadata">

**Author:** [@Alan\_Orth](https://forum.ansible.com/u/Alan_Orth)\
**Replies:** 2\
**Last updated:** [May 6, 2016, 7:47am UTC](https://forum.ansible.com/t/obscure-error-message-in-unicode-related-jinja2-template-fail/21178 "2016-05-06T07:47:41Z")

</div>

Hi, I was trying to template PHP 7’s default pool.conf file and ran into this unhelpful error message with Ansible 2.0.1.0: \[WARNING\]: Failure when attempting to use callback plugin (\<ansible.plugins.callback.default.C…

---

## [using vsphere-guest on esxi 6.0 (free version)](https://forum.ansible.com/t/using-vsphere-guest-on-esxi-6-0-free-version/21357)

<div class="topic-metadata">

**Author:** [@Albert\_Uy](https://forum.ansible.com/u/Albert_Uy)\
**Replies:** 1\
**Last updated:** [May 6, 2016, 12:00am UTC](https://forum.ansible.com/t/using-vsphere-guest-on-esxi-6-0-free-version/21357 "2016-05-06T00:00:57Z")

</div>

Hi All, Any suggestions on what to set the datacenter: parameter to? i have an ESXi 6.0 whitebox at home, and am running Ansible 2.2.0 on an Ubuntu 16.04 vm. i’ve tried setting the datacenter: parameter to the hostname…

---

## [Correct way to get ansible and modules from github and how to keep it tracking devel?](https://forum.ansible.com/t/correct-way-to-get-ansible-and-modules-from-github-and-how-to-keep-it-tracking-devel/21365)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 3\
**Last updated:** [May 5, 2016, 8:29pm UTC](https://forum.ansible.com/t/correct-way-to-get-ansible-and-modules-from-github-and-how-to-keep-it-tracking-devel/21365 "2016-05-05T20:29:07Z")

</div>

Got a new Mac and decided to get ansible from github vs copying it from my old Mac. $ git --version git version 2.8.2 $ git clone https://github.com/ansible/ansible.git $ git submodule update --init --recursive $ …

---

## [Runs a local script on a remote node after transferring it](https://forum.ansible.com/t/runs-a-local-script-on-a-remote-node-after-transferring-it/21360)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 2\
**Last updated:** [May 5, 2016, 6:37pm UTC](https://forum.ansible.com/t/runs-a-local-script-on-a-remote-node-after-transferring-it/21360 "2016-05-05T18:37:04Z")

</div>

hello there , I want to execute a python script in the remote machine , haw to do that ? for the moment i execute the script which is located in the remote machine using this command : -shell: python script but i wan…

---

## [Restart network interfaces](https://forum.ansible.com/t/restart-network-interfaces/21363)

<div class="topic-metadata">

**Author:** [@Carl\_Wainwright](https://forum.ansible.com/u/Carl_Wainwright)\
**Replies:** 2\
**Last updated:** [May 5, 2016, 5:44pm UTC](https://forum.ansible.com/t/restart-network-interfaces/21363 "2016-05-05T17:44:47Z")

</div>

Hello, I am using Ansible to update templated VM machines with correct networking. My inventory contains the templated hosts \[nos5\] and the deployed host \[nos6\]. It should be noted that the interface I am changing is th…

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

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