# Latest

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

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

**Page:** 875

---

## [Yum - Async Fails to detect failures?](https://forum.ansible.com/t/yum-async-fails-to-detect-failures/18105)

<div class="topic-metadata">

**Author:** [@Mark5](https://forum.ansible.com/u/Mark5)\
**Replies:** 0\
**Last updated:** [April 28, 2015, 2:26pm UTC](https://forum.ansible.com/t/yum-async-fails-to-detect-failures/18105 "2015-04-28T14:26:42Z")

</div>

Ansible 1.9.0.1 - I’ve run into some odd behavior. Running these two tasks back to back, the first async did nothing, exited pretty quickly, while the second yum actually installed the RPMS. I’ve observed many times yum…

---

## [AWS Elastic Map Reduce](https://forum.ansible.com/t/aws-elastic-map-reduce/18102)

<div class="topic-metadata">

**Author:** [@Alexander\_Mitchell](https://forum.ansible.com/u/Alexander_Mitchell)\
**Replies:** 0\
**Last updated:** [April 28, 2015, 11:32am UTC](https://forum.ansible.com/t/aws-elastic-map-reduce/18102 "2015-04-28T11:32:59Z")

</div>

Is there an Ansible module that specifically covers AWS Elastic Map Reduce (EMR)? I need to spin up a cluster, run some AWS bootstrap actions (specifically install Spark and checkout some code), run some processing jobs…

---

## [Group hosts by value from list object of inventory var](https://forum.ansible.com/t/group-hosts-by-value-from-list-object-of-inventory-var/18093)

<div class="topic-metadata">

**Author:** [@Mook](https://forum.ansible.com/u/Mook)\
**Replies:** 2\
**Last updated:** [April 28, 2015, 9:14am UTC](https://forum.ansible.com/t/group-hosts-by-value-from-list-object-of-inventory-var/18093 "2015-04-28T09:14:33Z")

</div>

Hi. I have an inventory like this: \[test\_servers\] 192.168.0.101 app\_roles=‘\[“relay\_master”\]’ 192.168.0.102 app\_roles=‘\[“relay\_slave”,“cache”,“web\_master”\]’ 192.168.0.103 app\_roles=‘\[“relay\_slave”,“cache”,“web\_slave”…

---

## [Multiple simultaneous inventory sources](https://forum.ansible.com/t/multiple-simultaneous-inventory-sources/12442)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 11\
**Last updated:** [April 28, 2015, 7:44am UTC](https://forum.ansible.com/t/multiple-simultaneous-inventory-sources/12442 "2015-04-28T07:44:49Z")

</div>

I've just merged a very nice patch set from @dhozac that enables the inventory file to be a directory If it is a directory, it operates much like a traditional "conf.d" structure, except it allows both inventory files…

---

## [Spawning background processes that are not services](https://forum.ansible.com/t/spawning-background-processes-that-are-not-services/18086)

<div class="topic-metadata">

**Author:** [@Nicholas\_Irving](https://forum.ansible.com/u/Nicholas_Irving)\
**Replies:** 4\
**Last updated:** [April 28, 2015, 4:53am UTC](https://forum.ansible.com/t/spawning-background-processes-that-are-not-services/18086 "2015-04-28T04:53:52Z")

</div>

Evening, I am trying to keep a spawn process that normally attaches to process id 1 wheb running. However because ansible kills all entries in a process group i have been told to use async. However do i wait for the as…

---

## [Ansible when condition with ansible\_facts](https://forum.ansible.com/t/ansible-when-condition-with-ansible-facts/18100)

<div class="topic-metadata">

**Author:** [@Michael\_Liu](https://forum.ansible.com/u/Michael_Liu)\
**Replies:** 1\
**Last updated:** [April 28, 2015, 12:34am UTC](https://forum.ansible.com/t/ansible-when-condition-with-ansible-facts/18100 "2015-04-28T00:34:53Z")

</div>

Hey All, Trying to create a (when: ) condition, where a task runs only when a mount point does NOT exists. name: format disk with ext4 filesystem: fstype=ext4 dev={{ item }} with\_items: /dev/xvdc when: ansible\_moun…

---

## [Unable to copy keys from management server to remote server](https://forum.ansible.com/t/unable-to-copy-keys-from-management-server-to-remote-server/18097)

<div class="topic-metadata">

**Author:** [@Raj\_Desikavinayagomp](https://forum.ansible.com/u/Raj_Desikavinayagomp)\
**Replies:** 3\
**Last updated:** [April 28, 2015, 12:24am UTC](https://forum.ansible.com/t/unable-to-copy-keys-from-management-server-to-remote-server/18097 "2015-04-28T00:24:21Z")

</div>

Hello, Following was the error message. Playbook creates the user but does not copy the keys from management server to destination server. Am I missing something here? ansible-playbook -vvvvv /etc/ansible/site.yml ms…

---

## [Not understanding why getting a failure on a task with "remote\_user" set](https://forum.ansible.com/t/not-understanding-why-getting-a-failure-on-a-task-with-remote-user-set/18098)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 3\
**Last updated:** [April 28, 2015, 12:02am UTC](https://forum.ansible.com/t/not-understanding-why-getting-a-failure-on-a-task-with-remote-user-set/18098 "2015-04-28T00:02:39Z")

</div>

Hi all, The section of the playbook that I am experiencing a failure (authenication failure) on is as follows: \` name: Enable passwordless connection as hdfs user to namenode host authorized\_key: user=hdfs key=“{{ …

---

## [ERROR: parse error: playbooks must be formatted as a YAML list, got \<type 'dict'](https://forum.ansible.com/t/error-parse-error-playbooks-must-be-formatted-as-a-yaml-list-got-type-dict/18096)

<div class="topic-metadata">

**Author:** [@Raj\_Desikavinayagomp](https://forum.ansible.com/u/Raj_Desikavinayagomp)\
**Replies:** 2\
**Last updated:** [April 27, 2015, 7:34pm UTC](https://forum.ansible.com/t/error-parse-error-playbooks-must-be-formatted-as-a-yaml-list-got-type-dict/18096 "2015-04-27T19:34:03Z")

</div>

Hello, I am using ansible 1.9.0.1 I get the following error. Let me know if I am doing something incorrect. ansible-playbook site.yml --syntax-check Following error occurs ERROR: parse error: playbooks must be forma…

---

## [Declare local file argument for module](https://forum.ansible.com/t/declare-local-file-argument-for-module/18090)

<div class="topic-metadata">

**Author:** [@Michail\_Alexakis](https://forum.ansible.com/u/Michail_Alexakis)\
**Replies:** 4\
**Last updated:** [April 27, 2015, 5:21pm UTC](https://forum.ansible.com/t/declare-local-file-argument-for-module/18090 "2015-04-27T17:21:01Z")

</div>

Hello list, I was trying to make my first steps writing an Ansible module (in Python). The main documentation is pretty clear, so i moved very smoothly using the AnsibleModule helper class. So far, i have been using o…

---

## [Advice on Tower with GCE and machine credential authentication](https://forum.ansible.com/t/advice-on-tower-with-gce-and-machine-credential-authentication/18087)

<div class="topic-metadata">

**Author:** [@Adrian\_Black](https://forum.ansible.com/u/Adrian_Black)\
**Replies:** 1\
**Last updated:** [April 27, 2015, 4:13pm UTC](https://forum.ansible.com/t/advice-on-tower-with-gce-and-machine-credential-authentication/18087 "2015-04-27T16:13:52Z")

</div>

Hi I am evaluating tower on google compute engine. The dynamic inventory has been ok and that is working I managed to get it working with ansible-playbook but i cant figure out a good way to do the Machine Credentials …

---

## [How to best use Ansible in an autoscaling environment?](https://forum.ansible.com/t/how-to-best-use-ansible-in-an-autoscaling-environment/18059)

<div class="topic-metadata">

**Author:** [@greg](https://forum.ansible.com/u/greg)\
**Replies:** 2\
**Last updated:** [April 27, 2015, 3:46pm UTC](https://forum.ansible.com/t/how-to-best-use-ansible-in-an-autoscaling-environment/18059 "2015-04-27T15:46:18Z")

</div>

Hi all, So I’ve been thinking about how to best use Ansible in an autoscaling environment on AWS, and I was wondering if anyone else had dealt with this, and if they had any advice. My thought is to essentially do some…

---

## [Set fact for another group in playbook](https://forum.ansible.com/t/set-fact-for-another-group-in-playbook/18092)

<div class="topic-metadata">

**Author:** [@Jason\_DeTiberus](https://forum.ansible.com/u/Jason_DeTiberus)\
**Replies:** 0\
**Last updated:** [April 27, 2015, 1:50am UTC](https://forum.ansible.com/t/set-fact-for-another-group-in-playbook/18092 "2015-04-27T01:50:54Z")

</div>

hostvars.localhost.rds\_database When using register it creates the variable for the host(s) in the play. Also, you need to make sure both plays are occurring within the same playbook run.

---

## [lineinfile error "NameError: global name 'is\_quoted' is not defined"](https://forum.ansible.com/t/lineinfile-error-nameerror-global-name-is-quoted-is-not-defined/18083)

<div class="topic-metadata">

**Author:** [@sergey](https://forum.ansible.com/u/sergey)\
**Replies:** 1\
**Last updated:** [April 27, 2015, 1:36am UTC](https://forum.ansible.com/t/lineinfile-error-nameerror-global-name-is-quoted-is-not-defined/18083 "2015-04-27T01:36:21Z")

</div>

When using lineinfile, I get this kind of an error: TASK: \[Enable/Disable watchdog\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[dni-7448-35\] =\> {“failed”: true, “parsed”: false} invalid output was: Traceb…

---

## [setuptools automatic script creation](https://forum.ansible.com/t/setuptools-automatic-script-creation/18091)

<div class="topic-metadata">

**Author:** [@Jason\_DeTiberus](https://forum.ansible.com/u/Jason_DeTiberus)\
**Replies:** 0\
**Last updated:** [April 27, 2015, 1:35am UTC](https://forum.ansible.com/t/setuptools-automatic-script-creation/18091 "2015-04-27T01:35:18Z")

</div>

As someone who is currently building an installer based on ansible, this would definitely make things cleaner for the wrapper interface.

---

## [trying win\_msi](https://forum.ansible.com/t/trying-win-msi/16737)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 2\
**Last updated:** [April 26, 2015, 1:48am UTC](https://forum.ansible.com/t/trying-win-msi/16737 "2015-04-26T01:48:54Z")

</div>

Ansible 1.8 CentOs 7 Powershell 3 When I run this playbook

---

## [Display variable value from command line?](https://forum.ansible.com/t/display-variable-value-from-command-line/17953)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 3\
**Last updated:** [April 26, 2015, 1:47am UTC](https://forum.ansible.com/t/display-variable-value-from-command-line/17953 "2015-04-26T01:47:44Z")

</div>

I’m suspicious that the variables in my windows.yml file are not being loaded properly. Is there an easy way to display the values of current variables from the command line or do I need to write up a playbook to do this…

---

## [Connection reset by peer](https://forum.ansible.com/t/connection-reset-by-peer/16508)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 2\
**Last updated:** [April 26, 2015, 1:45am UTC](https://forum.ansible.com/t/connection-reset-by-peer/16508 "2015-04-26T01:45:26Z")

</div>

I’ve been trying to get win\_ping to work for weeks now so I’d be so grateful if someone could help identify my problem. System details Fedora 20 Ansible ver 1.8 Here are my setup commands (from a clean Fedora install…

---

## [ansible\_ssh\_user and ansible\_ssh\_pass in windows.yml](https://forum.ansible.com/t/ansible-ssh-user-and-ansible-ssh-pass-in-windows-yml/16642)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 5\
**Last updated:** [April 26, 2015, 1:43am UTC](https://forum.ansible.com/t/ansible-ssh-user-and-ansible-ssh-pass-in-windows-yml/16642 "2015-04-26T01:43:49Z")

</div>

Details: Ansible 1.8 CentOs 7 Windows 7 (not a server os) Documentation specifies that for remote nodes running windows we add these definitions to /etc/ansible/group\_vars/windows.yml ansible\_ssh\_user: Administrator…

---

## [Problems setting up WinRM](https://forum.ansible.com/t/problems-setting-up-winrm/15571)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 23\
**Last updated:** [April 26, 2015, 1:29am UTC](https://forum.ansible.com/t/problems-setting-up-winrm/15571 "2015-04-26T01:29:12Z")

</div>

I’m having trouble setting Ansible with WinRM. Here’s my environment: 10.10.50.4 - Win1 - the windows computer im trying to connect to from Ansible (i’ve added this to the hosts file on my ansible host) 10.10.50.6 - Wi…

---

## [Connection refused](https://forum.ansible.com/t/connection-refused/17892)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 7\
**Last updated:** [April 26, 2015, 1:28am UTC](https://forum.ansible.com/t/connection-refused/17892 "2015-04-26T01:28:22Z")

</div>

I’m having trouble getting win\_ping to work with or without SSL. Here are my details… CentOS Linux release 7.1.1503 (Core) ansible 1.8 (devel 57d2622c8c) last updated 2014/10/17 18:19:13 (GMT -500) using pywinrm-0.0.3…

---

## [CMD module complains about exec format error](https://forum.ansible.com/t/cmd-module-complains-about-exec-format-error/18028)

<div class="topic-metadata">

**Author:** [@Loc\_Nguyen](https://forum.ansible.com/u/Loc_Nguyen)\
**Replies:** 1\
**Last updated:** [April 25, 2015, 9:26pm UTC](https://forum.ansible.com/t/cmd-module-complains-about-exec-format-error/18028 "2015-04-25T21:26:49Z")

</div>

Hi, I have a task that copies a folder onto a virtual box machine and then uses the command module to execute a shell script in that remote folder. Ansible always complains with, msg: \[Errno 8\] Exec format error I can…

---

## [what does this mean?  \['tag\_Environment\_%s' % args.environment\]](https://forum.ansible.com/t/what-does-this-mean-tag-environment-s-args-environment/18085)

<div class="topic-metadata">

**Author:** [@Paul\_Stivers](https://forum.ansible.com/u/Paul_Stivers)\
**Replies:** 3\
**Last updated:** [April 25, 2015, 5:23pm UTC](https://forum.ansible.com/t/what-does-this-mean-tag-environment-s-args-environment/18085 "2015-04-25T17:23:18Z")

</div>

This may be as much a Python question as an Ansible question. This is a function in a deploy script. I'm trying to understand what "\['tag\_Environment\_%s' % args.environment\]" means. Problem is I don't know enough about…

---

## [can't isolate stdout using register, with\_items](https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 1\
**Last updated:** [April 25, 2015, 11:25am UTC](https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069 "2015-04-25T11:25:53Z")

</div>

I am attempting to display the debug output of multiple items from a previous resource(including as complete an example as possible; not using roles for this): \`

---

## [Ansible task seems to start weblogic but doesn't](https://forum.ansible.com/t/ansible-task-seems-to-start-weblogic-but-doesnt/17218)

<div class="topic-metadata">

**Author:** [@Florian\_Gysin](https://forum.ansible.com/u/Florian_Gysin)\
**Replies:** 5\
**Last updated:** [April 25, 2015, 11:00am UTC](https://forum.ansible.com/t/ansible-task-seems-to-start-weblogic-but-doesnt/17218 "2015-04-25T11:00:57Z")

</div>

Hi all So far we have been using simple bash scripts to facilitate starting our Weblogic servers which run on Solaris zones. I am now in the process of trying to setup proper Ansible playbooks for the entire server setu…

---

## [How to build docker image?](https://forum.ansible.com/t/how-to-build-docker-image/17033)

<div class="topic-metadata">

**Author:** [@Shunsuke\_Mie](https://forum.ansible.com/u/Shunsuke_Mie)\
**Replies:** 2\
**Last updated:** [April 25, 2015, 1:43am UTC](https://forum.ansible.com/t/how-to-build-docker-image/17033 "2015-04-25T01:43:00Z")

</div>

I want to build docker image by ansible, but docker\_image is deprecated module. Can I be build in any way? I couldn’t write english well, so this sentence is incorrect.

---

## [\--tags doesn't work with meta: flush\_handlers](https://forum.ansible.com/t/tags-doesnt-work-with-meta-flush-handlers/18084)

<div class="topic-metadata">

**Author:** [@Mark5](https://forum.ansible.com/u/Mark5)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 11:20pm UTC](https://forum.ansible.com/t/tags-doesnt-work-with-meta-flush-handlers/18084 "2015-04-24T23:20:53Z")

</div>

Setup: — myrole/main.yml — include: somefile.yml tags: configure ----somefile.yml— some command notify: handlerx meta: flush\_handlers — myrole/handlers/main.yml ---- handlerx: tags: configure Result: …

---

## [Rendering a List in a Template](https://forum.ansible.com/t/rendering-a-list-in-a-template/18037)

<div class="topic-metadata">

**Author:** [@Nathan\_Lannine](https://forum.ansible.com/u/Nathan_Lannine)\
**Replies:** 5\
**Last updated:** [April 24, 2015, 7:41pm UTC](https://forum.ansible.com/t/rendering-a-list-in-a-template/18037 "2015-04-24T19:41:14Z")

</div>

I am attempting to pass a list of lists via a registered variable to a template in which I then attempt to loop over the outer list. However, the template is looping over the entire list as a string, and each iteration o…

---

## [environment variables](https://forum.ansible.com/t/environment-variables/18081)

<div class="topic-metadata">

**Author:** [@John\_Test](https://forum.ansible.com/u/John_Test)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 6:41pm UTC](https://forum.ansible.com/t/environment-variables/18081 "2015-04-24T18:41:23Z")

</div>

Hello I am trying to use environment variables in my playbook instead of static entries. For example username, password etc. for Openstack. I have seen this page http://docs.ansible.com/playbooks\_environment.html Bu…

---

## [Name directive in Role](https://forum.ansible.com/t/name-directive-in-role/18080)

<div class="topic-metadata">

**Author:** [@Kevin\_White1](https://forum.ansible.com/u/Kevin_White1)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 6:09pm UTC](https://forum.ansible.com/t/name-directive-in-role/18080 "2015-04-24T18:09:11Z")

</div>

Hello, I’ve googled high and low for an answer but keep going down rabbit holes with no obvious solution. This seems like the right place to ask. I’m guessing this behavior is a “feature” of ansible and there’s not a wo…

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

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