# Latest

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

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

**Page:** 880

---

## [Refresh EC2 instance information after creation.](https://forum.ansible.com/t/refresh-ec2-instance-information-after-creation/17957)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 0\
**Last updated:** [April 11, 2015, 9:05am UTC](https://forum.ansible.com/t/refresh-ec2-instance-information-after-creation/17957 "2015-04-11T09:05:03Z")

</div>

Hi, I’m creating an EC2 instance, then assigning an eIP to it, after I want to create a route53 entry using the eIP’s CNAME (eip task only returns ip\_address not the dns name sadly). My current approach is to attempt t…

---

## [Executing AWS infrastructure creation using Ansible parallel](https://forum.ansible.com/t/executing-aws-infrastructure-creation-using-ansible-parallel/17955)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 0\
**Last updated:** [April 10, 2015, 6:34pm UTC](https://forum.ansible.com/t/executing-aws-infrastructure-creation-using-ansible-parallel/17955 "2015-04-10T18:34:55Z")

</div>

Hi, So I am currently working on coding my AWS infrastructure using Ansible, I have created roles and playbooks for creating VPC, security groups, EC2 instances, creating RDS , Elasticache, ELB , ASG etc. I have a cent…

---

## [ansible 1.8 (devel 4c86bd3ca6) not reading group\_vars?](https://forum.ansible.com/t/ansible-1-8-devel-4c86bd3ca6-not-reading-group-vars/16573)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 10\
**Last updated:** [April 10, 2015, 1:40pm UTC](https://forum.ansible.com/t/ansible-1-8-devel-4c86bd3ca6-not-reading-group-vars/16573 "2015-04-10T13:40:09Z")

</div>

Following the documentation at http://docs.ansible.com/intro\_windows.html. I setup an inventory file and group windows. I setup a group\_vars for for windows. $ cat customer/windows-testing \[windows\] appserv.int.doma…

---

## [Building lists?](https://forum.ansible.com/t/building-lists/17952)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 0\
**Last updated:** [April 10, 2015, 11:00am UTC](https://forum.ansible.com/t/building-lists/17952 "2015-04-10T11:00:09Z")

</div>

Hi, In my specific scenario I’m creating a bunch of ec2 security groups using with\_items, I’m using the register task to pick up the result. The resulting variable, as expected contains the information for each securit…

---

## [How to detect why Ansible playbook hangs during execution](https://forum.ansible.com/t/how-to-detect-why-ansible-playbook-hangs-during-execution/14227)

<div class="topic-metadata">

**Author:** [@9devmail](https://forum.ansible.com/u/9devmail)\
**Replies:** 15\
**Last updated:** [April 10, 2015, 9:41am UTC](https://forum.ansible.com/t/how-to-detect-why-ansible-playbook-hangs-during-execution/14227 "2015-04-10T09:41:00Z")

</div>

Some of tasks I wrote start and never end. Ansible does not provide any errors or logs that would explain this, even with -vvvv option. Playbook just hangs and passing hours doesn’t change anything. When I try to run my…

---

## [orchestra android terminals and router using ansible](https://forum.ansible.com/t/orchestra-android-terminals-and-router-using-ansible/17951)

<div class="topic-metadata">

**Author:** [@est](https://forum.ansible.com/u/est)\
**Replies:** 0\
**Last updated:** [April 10, 2015, 9:28am UTC](https://forum.ansible.com/t/orchestra-android-terminals-and-router-using-ansible/17951 "2015-04-10T09:28:21Z")

</div>

Hi guys, So I have thousands of Android terminals (not phones, but terminals running Android) accessible via SSH, which is good since I can use Ansible. Android linux is not so standard and lacking some linux parts sig…

---

## [Register variable in a loop can't access through with\_items](https://forum.ansible.com/t/register-variable-in-a-loop-cant-access-through-with-items/17942)

<div class="topic-metadata">

**Author:** [@Michael\_Mallett](https://forum.ansible.com/u/Michael_Mallett)\
**Replies:** 2\
**Last updated:** [April 10, 2015, 9:19am UTC](https://forum.ansible.com/t/register-variable-in-a-loop-cant-access-through-with-items/17942 "2015-04-10T09:19:30Z")

</div>

Hi, I’m an ansible noob, and I’m following this tutorial to use the rax module to spin up and configure rackspace servers http://nicholaskuechler.com/2015/01/09/build-rackspace-cloud-servers-ansible-virtualenv/#comment-…

---

## [Error with win\_service.ps1](https://forum.ansible.com/t/error-with-win-service-ps1/17948)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 1\
**Last updated:** [April 10, 2015, 8:47am UTC](https://forum.ansible.com/t/error-with-win-service-ps1/17948 "2015-04-10T08:47:39Z")

</div>

Ansible 1.7.2 First time using any Windows module. I’m using the win\_service module as a test, to restart IIS on a development host. And it fails ‘file does not have a ‘.ps1’ extension.’ windows.hosts \[web\] obfuscate…

---

## [Very simple copy file command for Windows](https://forum.ansible.com/t/very-simple-copy-file-command-for-windows/17936)

<div class="topic-metadata">

**Author:** [@Eric\_Brandes](https://forum.ansible.com/u/Eric_Brandes)\
**Replies:** 1\
**Last updated:** [April 10, 2015, 8:39am UTC](https://forum.ansible.com/t/very-simple-copy-file-command-for-windows/17936 "2015-04-10T08:39:50Z")

</div>

There’s a gist floating around of a simple copy module for windows + ansible, but I can’t get it to work. I can use New-Item to create a file on the remote host using this same pattern, but Copy-Item is failing silently.…

---

## [Error with win\_service.ps1](https://forum.ansible.com/t/error-with-win-service-ps1/17949)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 0\
**Last updated:** [April 10, 2015, 12:55am UTC](https://forum.ansible.com/t/error-with-win-service-ps1/17949 "2015-04-10T00:55:55Z")

</div>

Ansible 1.7.2 First time using any Windows module. I’m using the win\_service module as a test, to restart IIS on a development host. And it fails ‘file does not have a ‘.ps1’ extension.’ windows.hosts \[web\] obfuscate…

---

## [Sudo to different user with nopasswd Fails and works only with root access](https://forum.ansible.com/t/sudo-to-different-user-with-nopasswd-fails-and-works-only-with-root-access/17946)

<div class="topic-metadata">

**Author:** [@Rajasekhar\_Morla](https://forum.ansible.com/u/Rajasekhar_Morla)\
**Replies:** 11\
**Last updated:** [April 10, 2015, 12:34am UTC](https://forum.ansible.com/t/sudo-to-different-user-with-nopasswd-fails-and-works-only-with-root-access/17946 "2015-04-10T00:34:48Z")

</div>

Hello All, I have been working to implement anisble solution to manage Apache and WCS. Through my playbook, I am logging into remote server with myuser and switching to ihsadm(which is apache admin) using sudo option a…

---

## [Ansible hangs when using the apt module](https://forum.ansible.com/t/ansible-hangs-when-using-the-apt-module/17947)

<div class="topic-metadata">

**Author:** [@Marcelo\_de\_Moraes\_Se](https://forum.ansible.com/u/Marcelo_de_Moraes_Se)\
**Replies:** 1\
**Last updated:** [April 9, 2015, 10:55pm UTC](https://forum.ansible.com/t/ansible-hangs-when-using-the-apt-module/17947 "2015-04-09T22:55:51Z")

</div>

Hi list, I’m trying to install a couple of apt packages on Ubuntu 14.04, but Ansible just seems to hang indefinitely when it gets to this task: name: Install needed packages for building BTRFS driver apt: name={{ ite…

---

## [trouble with ansible and sudo remote command](https://forum.ansible.com/t/trouble-with-ansible-and-sudo-remote-command/17945)

<div class="topic-metadata">

**Author:** [@Kathy\_Allen](https://forum.ansible.com/u/Kathy_Allen)\
**Replies:** 2\
**Last updated:** [April 9, 2015, 10:20pm UTC](https://forum.ansible.com/t/trouble-with-ansible-and-sudo-remote-command/17945 "2015-04-09T22:20:20Z")

</div>

Hi. I hope someone can help me out here. In one of my plays, I need to have a user be able to run an ansible task which runs a command on a remote host with sudo. On the remote host, the user is allowed to run this comma…

---

## [register variable](https://forum.ansible.com/t/register-variable/17938)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 2\
**Last updated:** [April 9, 2015, 8:07pm UTC](https://forum.ansible.com/t/register-variable/17938 "2015-04-09T20:07:25Z")

</div>

Hi, I’m trying to register the output of a command which returns json. When I do this as a standalone task (not role) it works fine, for example: name: x hosts: localhost tasks: shell: aws iam list-server-certifica…

---

## [Failing to connect to Windows clients with 1.9.0 -- No credentials cache file found](https://forum.ansible.com/t/failing-to-connect-to-windows-clients-with-1-9-0-no-credentials-cache-file-found/17861)

<div class="topic-metadata">

**Author:** [@Peter\_Loron](https://forum.ansible.com/u/Peter_Loron)\
**Replies:** 5\
**Last updated:** [April 9, 2015, 7:58pm UTC](https://forum.ansible.com/t/failing-to-connect-to-windows-clients-with-1-9-0-no-credentials-cache-file-found/17861 "2015-04-09T19:58:49Z")

</div>

Hello. I’m trying to get going with managing some Windows servers using Ansible. I’ve got Ansible 1.9.0.1 installed on a OS X 10.10 machine. On my Windows client (2012R2), I have run the suggested “ConfigureRemotingForAn…

---

## [AnsibleUndefinedVariable](https://forum.ansible.com/t/ansibleundefinedvariable/17941)

<div class="topic-metadata">

**Author:** [@Mike\_Michel](https://forum.ansible.com/u/Mike_Michel)\
**Replies:** 3\
**Last updated:** [April 9, 2015, 7:42pm UTC](https://forum.ansible.com/t/ansibleundefinedvariable/17941 "2015-04-09T19:42:54Z")

</div>

hi, im running a master/slave cluster where i want to add another slave via ansible so i am limiting the play to the new slave ansible-playbook -vvv -l mesos\_slaves\[3\] -i hosts-prod.yml playbook.yml -u xxx -k -K Add a…

---

## [Windows scripts executed without "-ExecutionPolicy Unrestricted" in Ansible 1.9](https://forum.ansible.com/t/windows-scripts-executed-without-executionpolicy-unrestricted-in-ansible-1-9/17940)

<div class="topic-metadata">

**Author:** [@Ivaylo\_Bratoev](https://forum.ansible.com/u/Ivaylo_Bratoev)\
**Replies:** 1\
**Last updated:** [April 9, 2015, 7:39pm UTC](https://forum.ansible.com/t/windows-scripts-executed-without-executionpolicy-unrestricted-in-ansible-1-9/17940 "2015-04-09T19:39:34Z")

</div>

Since 1.9 I noticed that Ansible runs the Windows modules/scripts without specifying Unrestricted execution policy. The change was made in a this commit: https://github.com/ansible/ansible/commit/07dfbaedc30944857afc32cf…

---

## [Using submodules for Plugins](https://forum.ansible.com/t/using-submodules-for-plugins/17944)

<div class="topic-metadata">

**Author:** [@Xavier\_Krantz](https://forum.ansible.com/u/Xavier_Krantz)\
**Replies:** 1\
**Last updated:** [April 9, 2015, 6:07pm UTC](https://forum.ansible.com/t/using-submodules-for-plugins/17944 "2015-04-09T18:07:09Z")

</div>

Hello every body ! I have opened an issue / featrure request on Ansible Github about the “plugins” usage and distribution : https://github.com/ansible/ansible/issues/10657 It may be interesting to have a discussion her…

---

## [Command asking for password](https://forum.ansible.com/t/command-asking-for-password/17943)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 4:16pm UTC](https://forum.ansible.com/t/command-asking-for-password/17943 "2015-04-09T16:16:03Z")

</div>

ansible is a batch system, it avoids dealing with prompts. Normally a module will supply any information needed to avoid prompts.

---

## [why isn't stdout returned on this most basic of commands?](https://forum.ansible.com/t/why-isnt-stdout-returned-on-this-most-basic-of-commands/15138)

<div class="topic-metadata">

**Author:** [@Andy\_Ingham](https://forum.ansible.com/u/Andy_Ingham)\
**Replies:** 10\
**Last updated:** [April 9, 2015, 1:26pm UTC](https://forum.ansible.com/t/why-isnt-stdout-returned-on-this-most-basic-of-commands/15138 "2015-04-09T13:26:23Z")

</div>

This one baffles me. I issue this command: ansible HOSTABC -a ‘cat /etc/motd’ -K --sudo -v sudo password: and I see the success message PLUS the stdout of that file HOSTABC | success | rc=0 \>\>

---

## [Using ansible\_ssh\_pass variable set by ask\_pass in a playbook?](https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931)

<div class="topic-metadata">

**Author:** [@Sandor\_Zeestraten](https://forum.ansible.com/u/Sandor_Zeestraten)\
**Replies:** 1\
**Last updated:** [April 9, 2015, 12:53pm UTC](https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931 "2015-04-09T12:53:49Z")

</div>

Hi, is there a way to reuse the ansible\_ssh\_pass variable in playbook when set by ask\_pass in the configuration file or via CLI? As I’m already using ask\_pass and ask\_sudo\_pass in the config for the SSH connection, I’d …

---

## [Ansible 1.9.1 rc1 is now available for testing](https://forum.ansible.com/t/ansible-1-9-1-rc1-is-now-available-for-testing/17915)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 5\
**Last updated:** [April 9, 2015, 12:36pm UTC](https://forum.ansible.com/t/ansible-1-9-1-rc1-is-now-available-for-testing/17915 "2015-04-09T12:36:58Z")

</div>

Hi all, we’ve just tagged the rc1 release for 1.9.1 To test from source, simply clone the git repository (if you haven’t already) and do the following: $ git checkout v1.9.1-0.1.rc1 $ git submodule update $ . hacking…

---

## [ssh connection\_plugin deadlock](https://forum.ansible.com/t/ssh-connection-plugin-deadlock/17939)

<div class="topic-metadata">

**Author:** [@Shaps](https://forum.ansible.com/u/Shaps)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 9:35am UTC](https://forum.ansible.com/t/ssh-connection-plugin-deadlock/17939 "2015-04-09T09:35:53Z")

</div>

Hi, I’ve been trying to figure out why that happens for almost 1 day now, but still cannot get to any solution. I’m using the Runner to run the setup module against a set of servers, and it is defined this way: runner…

---

## [Include + Vars = Unexpected Behaviour?](https://forum.ansible.com/t/include-vars-unexpected-behaviour/17937)

<div class="topic-metadata">

**Author:** [@Christian\_Auth](https://forum.ansible.com/u/Christian_Auth)\
**Replies:** 0\
**Last updated:** [April 9, 2015, 8:40am UTC](https://forum.ansible.com/t/include-vars-unexpected-behaviour/17937 "2015-04-09T08:40:49Z")

</div>

Hey, i am working on a infrastructure that is completely managed by ansible (great tool btw). we are currently in the process of adding different environments (production, prelive …) and we hit a problem that i need hel…

---

## [compound conditional at when clause using stat module not working.](https://forum.ansible.com/t/compound-conditional-at-when-clause-using-stat-module-not-working/17904)

<div class="topic-metadata">

**Author:** [@Adam\_R](https://forum.ansible.com/u/Adam_R)\
**Replies:** 4\
**Last updated:** [April 9, 2015, 2:50am UTC](https://forum.ansible.com/t/compound-conditional-at-when-clause-using-stat-module-not-working/17904 "2015-04-09T02:50:08Z")

</div>

Hello, I am using the stat module to check if a file exist, if not, copy from src to destination. I also want to setup a flag in order to overwrite destination, to achieve this, i am using a conditional like the one on …

---

## [Access to extra modules?](https://forum.ansible.com/t/access-to-extra-modules/17933)

<div class="topic-metadata">

**Author:** [@Erik\_Olson](https://forum.ansible.com/u/Erik_Olson)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 4:41pm UTC](https://forum.ansible.com/t/access-to-extra-modules/17933 "2015-04-08T16:41:36Z")

</div>

I just installed version 1.8.4 from epel on centos. I am unable to call extra modules from playbooks, I get this: ERROR: known\_hosts is not a legal parameter in an Ansible task or handler I can see the that the extra m…

---

## [How to share template between two roles?](https://forum.ansible.com/t/how-to-share-template-between-two-roles/17932)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 8, 2015, 3:51pm UTC](https://forum.ansible.com/t/how-to-share-template-between-two-roles/17932 "2015-04-08T15:51:16Z")

</div>

Roles are intended to be independent things, so sharing files between them doesn’t make a lot of sense. One thing you could do, if these two roles are that similar, is to combine them into a single role and add a variabl…

---

## [Help me understand what's going on here with ELB register/deregister](https://forum.ansible.com/t/help-me-understand-whats-going-on-here-with-elb-register-deregister/17923)

<div class="topic-metadata">

**Author:** [@atedja\_nm](https://forum.ansible.com/u/atedja_nm)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 3:48pm UTC](https://forum.ansible.com/t/help-me-understand-whats-going-on-here-with-elb-register-deregister/17923 "2015-04-08T15:48:02Z")

</div>

I am trying to understand the sample code here about ELB register/deregister instances: http://docs.ansible.com/ec2\_elb\_module.html - name: Instance De-register local\_action: module: ec2\_elb instance\_…

---

## [Json and local facts.](https://forum.ansible.com/t/json-and-local-facts/14918)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 3\
**Last updated:** [April 8, 2015, 2:57pm UTC](https://forum.ansible.com/t/json-and-local-facts/14918 "2015-04-08T14:57:02Z")

</div>

Hi, I am working on some tasks related with local facts and not sure whether followig issue is a bug or is designed. Following ansible documentation localfacts can be in JSON or INI format. I’ve choosen JSON format - i…

---

## [variable self reference](https://forum.ansible.com/t/variable-self-reference/17922)

<div class="topic-metadata">

**Author:** [@Tom\_Connors](https://forum.ansible.com/u/Tom_Connors)\
**Replies:** 1\
**Last updated:** [April 8, 2015, 12:52pm UTC](https://forum.ansible.com/t/variable-self-reference/17922 "2015-04-08T12:52:04Z")

</div>

Please forgive a question from a newbie going about things in what is almost surely the wrong way. I’ve got two groups, “webservers” and “dbservers”, which are the same machine in dev and different machines in productio…

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

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