# Latest

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

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

**Page:** 850

---

## [hide variable in loop execution](https://forum.ansible.com/t/hide-variable-in-loop-execution/18832)

<div class="topic-metadata">

**Author:** [@gabor.debreczeni](https://forum.ansible.com/u/gabor.debreczeni)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 2:10pm UTC](https://forum.ansible.com/t/hide-variable-in-loop-execution/18832 "2015-07-23T14:10:21Z")

</div>

Hi All, I’m running a loop for deploy multiple passwords into one config file: name: setup virtual router passwords replace: dest=/etc/keepalived/keepalived.conf regexp=‘{{ item.pattern }}’ replace=‘{{ item.passwor…

---

## [authorized\_keys not looking in role 'files' directory for files](https://forum.ansible.com/t/authorized-keys-not-looking-in-role-files-directory-for-files/18831)

<div class="topic-metadata">

**Author:** [@james.mcgivern](https://forum.ansible.com/u/james.mcgivern)\
**Replies:** 3\
**Last updated:** [July 23, 2015, 1:48pm UTC](https://forum.ansible.com/t/authorized-keys-not-looking-in-role-files-directory-for-files/18831 "2015-07-23T13:48:41Z")

</div>

Hi, I’m trying to add an ssh key to all my servers via the authorized\_keys command but it doesn’t seem to look in the usual places (i.e the role directory(s)). Here’s my code \` - name: Install SSH keys authorized\_ke…

---

## [Run Powershell script on remote](https://forum.ansible.com/t/run-powershell-script-on-remote/18823)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 1:16pm UTC](https://forum.ansible.com/t/run-powershell-script-on-remote/18823 "2015-07-23T13:16:28Z")

</div>

Apologies for what must be a very dumb question, but how do I run a Powershell script which is located on a remote Windows machine? And, can I run a script that’s located on the Ansible host? Many thanks!

---

## [Calling ec2 from ec2\_vpc](https://forum.ansible.com/t/calling-ec2-from-ec2-vpc/14453)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 10\
**Last updated:** [July 23, 2015, 12:27pm UTC](https://forum.ansible.com/t/calling-ec2-from-ec2-vpc/14453 "2015-07-23T12:27:49Z")

</div>

All, I’m starting a fairly heavy Ansible + AWS project and wanted to bounce some approaches around before embarking on a heavy feature implementation. So far I’ve written an ec2\_rds\_paramgroup module that allows mainte…

---

## [tags with roles](https://forum.ansible.com/t/tags-with-roles/18781)

<div class="topic-metadata">

**Author:** [@Vladimir\_Ondrus](https://forum.ansible.com/u/Vladimir_Ondrus)\
**Replies:** 5\
**Last updated:** [July 23, 2015, 12:16pm UTC](https://forum.ansible.com/t/tags-with-roles/18781 "2015-07-23T12:16:03Z")

</div>

Hi All, I want to use tags inside the roles, here is my usecase: I want to execute tasks marked with aaaa from testrole: \[root@wildfly ~/ansible\]$ cat test.yml

---

## [Windows module helpers functions](https://forum.ansible.com/t/windows-module-helpers-functions/18820)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 3\
**Last updated:** [July 23, 2015, 11:43am UTC](https://forum.ansible.com/t/windows-module-helpers-functions/18820 "2015-07-23T11:43:58Z")

</div>

Has anyone looked at extending https://github.com/ansible/ansible/blob/devel/lib/ansible/module\_utils/powershell.ps1 to provide helper functions to be able to limit a parameter to a set of choices, set parameter as requi…

---

## [setting vars: on a block:](https://forum.ansible.com/t/setting-vars-on-a-block/18830)

<div class="topic-metadata">

**Author:** [@Abhijit\_Menon-Sen1](https://forum.ansible.com/u/Abhijit_Menon-Sen1)\
**Replies:** 1\
**Last updated:** [July 23, 2015, 9:02am UTC](https://forum.ansible.com/t/setting-vars-on-a-block/18830 "2015-07-23T09:02:17Z")

</div>

Hi. I tried out blocks in devel today, and found a small oddity. - block: - debug: var=x - debug: var=y vars: x: 23 y: 42 The above works as expected, but: - block: …

---

## [Constructing a List.](https://forum.ansible.com/t/constructing-a-list/18819)

<div class="topic-metadata">

**Author:** [@runmyjobs](https://forum.ansible.com/u/runmyjobs)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 7:26am UTC](https://forum.ansible.com/t/constructing-a-list/18819 "2015-07-23T07:26:30Z")

</div>

Hi, Using a ‘shell’ task I’m obtaining a list of subnet id’s from Amazon, these subnet id’s I want to pass in to the ec2\_elb\_lb task. However this task accepts a list for Subnets only, so is there a way to dynamically …

---

## [set\_fact: module: how to use args for complex argumets?](https://forum.ansible.com/t/set-fact-module-how-to-use-args-for-complex-argumets/18827)

<div class="topic-metadata">

**Author:** [@Erik\_Steffl](https://forum.ansible.com/u/Erik_Steffl)\
**Replies:** 0\
**Last updated:** [July 23, 2015, 1:28am UTC](https://forum.ansible.com/t/set-fact-module-how-to-use-args-for-complex-argumets/18827 "2015-07-23T01:28:37Z")

</div>

Ansible set\_fact documentation http://docs.ansible.com/ansible/set\_fact\_module.html says “Or alternatively, accepts complex arguments using the args: statement”. How do I use “args”? So far I figured out that this works…

---

## [Variable Structure/Precedence](https://forum.ansible.com/t/variable-structure-precedence/17899)

<div class="topic-metadata">

**Author:** [@Johnathan\_Komara](https://forum.ansible.com/u/Johnathan_Komara)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 1:24am UTC](https://forum.ansible.com/t/variable-structure-precedence/17899 "2015-07-23T01:24:21Z")

</div>

I am having trouble wrapping my head around how i should setup my variable structure. I have two locations with multiple environments at each. I can have different variables depending on the location and production env. …

---

## [Ansible with registers using loop](https://forum.ansible.com/t/ansible-with-registers-using-loop/18811)

<div class="topic-metadata">

**Author:** [@pavan\_reddy](https://forum.ansible.com/u/pavan_reddy)\
**Replies:** 1\
**Last updated:** [July 22, 2015, 8:56pm UTC](https://forum.ansible.com/t/ansible-with-registers-using-loop/18811 "2015-07-22T20:56:16Z")

</div>

Hi, below is the playbook.i wanna multiple commands in a single task using loop (with\_items) and copy the stdout of each loop for every hosts in a file.

---

## [Not using simplejson](https://forum.ansible.com/t/not-using-simplejson/18825)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 4\
**Last updated:** [July 22, 2015, 8:09pm UTC](https://forum.ansible.com/t/not-using-simplejson/18825 "2015-07-22T20:09:41Z")

</div>

If I do not want to have simplejson in the client/node, how much of ansible's features do I lose? From what I found I can only run raw commands, but I hope I am wrong. Can someone shine some rays of hope my way?

---

## [ec2\_asg timeout issue](https://forum.ansible.com/t/ec2-asg-timeout-issue/18824)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [July 22, 2015, 6:37pm UTC](https://forum.ansible.com/t/ec2-asg-timeout-issue/18824 "2015-07-22T18:37:43Z")

</div>

Hi, I have the bellow config using the ec2\_asg module : “”" AutoScaling group ec2\_asg: name: “asg” state: present region: “{{ region }}” load\_balancers: “{{ elb\_name }}” availability\_zones: \[ ‘{{ az1 }}’, ‘{{ az…

---

## [Support for Proxying WinRm Calls](https://forum.ansible.com/t/support-for-proxying-winrm-calls/18806)

<div class="topic-metadata">

**Author:** [@Corwin\_Brown](https://forum.ansible.com/u/Corwin_Brown)\
**Replies:** 3\
**Last updated:** [July 22, 2015, 5:47pm UTC](https://forum.ansible.com/t/support-for-proxying-winrm-calls/18806 "2015-07-22T17:47:50Z")

</div>

Hiya everyone! I’ve got kind of a strange need and I’m pretty sure I can put together a PR to address it, but I wanted to pitch it here first. I have a whole bunch of hosts in various datacenters that can only be acces…

---

## [ansible-pull not working](https://forum.ansible.com/t/ansible-pull-not-working/18816)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [July 22, 2015, 5:06pm UTC](https://forum.ansible.com/t/ansible-pull-not-working/18816 "2015-07-22T17:06:20Z")

</div>

Hi, I’m trying to launch an ec2 instance and bootstrap it using ansible-pull through user-data but unfortunately I’m having some difficulties . The user-data (https://gist.github.com/nicolas-g/d648db66ee9db2a15af7) is …

---

## [ec2\_metric\_alarm does not create custom System/Linux alerts](https://forum.ansible.com/t/ec2-metric-alarm-does-not-create-custom-system-linux-alerts/18822)

<div class="topic-metadata">

**Author:** [@Matthieu\_Labour](https://forum.ansible.com/u/Matthieu_Labour)\
**Replies:** 0\
**Last updated:** [July 22, 2015, 4:14pm UTC](https://forum.ansible.com/t/ec2-metric-alarm-does-not-create-custom-system-linux-alerts/18822 "2015-07-22T16:14:41Z")

</div>

Hello I am using ec2\_metric\_alarm and it does not seem to create custom System/Linux alerts. Alarms for for the AWS/EC2 cloudWatch metrics provided by default by AWS get created properly. As an example the following wo…

---

## [pyrax is required for this module](https://forum.ansible.com/t/pyrax-is-required-for-this-module/18818)

<div class="topic-metadata">

**Author:** [@Mohamed\_Megdadi](https://forum.ansible.com/u/Mohamed_Megdadi)\
**Replies:** 0\
**Last updated:** [July 22, 2015, 6:01am UTC](https://forum.ansible.com/t/pyrax-is-required-for-this-module/18818 "2015-07-22T06:01:40Z")

</div>

Hello, We are new at ansible, we are trying to run a playbook to connect ansible with Rackspace cloud, each time we run it we have this error: “pyrax is required for this module” but when we try to import Pyrax via pyt…

---

## [connect ansible with Rackspace cloud](https://forum.ansible.com/t/connect-ansible-with-rackspace-cloud/18815)

<div class="topic-metadata">

**Author:** [@Mohamed\_Megdadi](https://forum.ansible.com/u/Mohamed_Megdadi)\
**Replies:** 2\
**Last updated:** [July 22, 2015, 5:59am UTC](https://forum.ansible.com/t/connect-ansible-with-rackspace-cloud/18815 "2015-07-22T05:59:14Z")

</div>

Hello, I am new at ansible, i am trying to run a playbook to connect ansible with Rackspace cloud, each time we run it we have this error: “pyrax is required for this module” but when we try to import Pyrax via python, …

---

## [the content option in module copy is dropped?](https://forum.ansible.com/t/the-content-option-in-module-copy-is-dropped/18810)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu1](https://forum.ansible.com/u/Steve_Kieu1)\
**Replies:** 2\
**Last updated:** [July 22, 2015, 12:25am UTC](https://forum.ansible.com/t/the-content-option-in-module-copy-is-dropped/18810 "2015-07-22T00:25:51Z")

</div>

Hi just quick question - I noticed the latest documentation the feature to use a string content for the file content in copy module is no longer listed. Is it dropped in latest ansible? I use it heavily for copying ssh …

---

## [Getting "Permission denied (publickey)." when trying to clone Private Github repository, Public repo works](https://forum.ansible.com/t/getting-permission-denied-publickey-when-trying-to-clone-private-github-repository-public-repo-works/17298)

<div class="topic-metadata">

**Author:** [@Paul\_Hardwick](https://forum.ansible.com/u/Paul_Hardwick)\
**Replies:** 4\
**Last updated:** [July 21, 2015, 8:35pm UTC](https://forum.ansible.com/t/getting-permission-denied-publickey-when-trying-to-clone-private-github-repository-public-repo-works/17298 "2015-07-21T20:35:00Z")

</div>

Hello Ansiblers, I am trying use ansible to bring in a Private GITHUB repository and am having issues and getting “Permission denied (publickey).” I’ve done some digging and checked the ideas I came across on the mailin…

---

## [How to deploy a particular git branch and commit id using ansible git module?](https://forum.ansible.com/t/how-to-deploy-a-particular-git-branch-and-commit-id-using-ansible-git-module/18805)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 1\
**Last updated:** [July 21, 2015, 6:56pm UTC](https://forum.ansible.com/t/how-to-deploy-a-particular-git-branch-and-commit-id-using-ansible-git-module/18805 "2015-07-21T18:56:23Z")

</div>

Hi, I would need some help in how to deploy a particular git branch and commit id using ansible git module, \` name: Deploy git: repo={{project\_repo}} dest={{project\_doc\_root}} accept\_hostkey=yes \` This is the comm…

---

## [Is there a way to get OS information from ec2.py dynamic inventory script?](https://forum.ansible.com/t/is-there-a-way-to-get-os-information-from-ec2-py-dynamic-inventory-script/18809)

<div class="topic-metadata">

**Author:** [@Adam\_R](https://forum.ansible.com/u/Adam_R)\
**Replies:** 2\
**Last updated:** [July 21, 2015, 4:16pm UTC](https://forum.ansible.com/t/is-there-a-way-to-get-os-information-from-ec2-py-dynamic-inventory-script/18809 "2015-07-21T16:16:02Z")

</div>

Hello, I would like to know if it is possible to get OS information from the AWS ec2 dynamic inventory script? Like OS distribution. Or how do you get OS information before sshing the host? Thank you. B.R.

---

## [Anyone else wishing they could control Vagrant boxes from a Windows Host?](https://forum.ansible.com/t/anyone-else-wishing-they-could-control-vagrant-boxes-from-a-windows-host/14107)

<div class="topic-metadata">

**Author:** [@Taylor\_Brown1](https://forum.ansible.com/u/Taylor_Brown1)\
**Replies:** 6\
**Last updated:** [July 21, 2015, 3:17pm UTC](https://forum.ansible.com/t/anyone-else-wishing-they-could-control-vagrant-boxes-from-a-windows-host/14107 "2015-07-21T15:17:36Z")

</div>

Using Vagrant to spin up dev environments promises to end many of our cross-platform server-side development issues once and for all. When deciding how to provision my vagrant boxes, I considered Chef, Puppet, and Ansibl…

---

## [Including var file in playbook and pass it to role](https://forum.ansible.com/t/including-var-file-in-playbook-and-pass-it-to-role/18813)

<div class="topic-metadata">

**Author:** [@Eugene\_Knoxville](https://forum.ansible.com/u/Eugene_Knoxville)\
**Replies:** 1\
**Last updated:** [July 21, 2015, 2:51pm UTC](https://forum.ansible.com/t/including-var-file-in-playbook-and-pass-it-to-role/18813 "2015-07-21T14:51:53Z")

</div>

Hello, Have some troubles with including var files. What I need? I keep authorized\_keys files for each user in a separate file. For exmpl, let’s say that hostname is f22. Playbook f22.yml:

---

## [Recovering from failure in handlers](https://forum.ansible.com/t/recovering-from-failure-in-handlers/18184)

<div class="topic-metadata">

**Author:** [@Shawn\_Ferry](https://forum.ansible.com/u/Shawn_Ferry)\
**Replies:** 1\
**Last updated:** [July 21, 2015, 1:18pm UTC](https://forum.ansible.com/t/recovering-from-failure-in-handlers/18184 "2015-07-21T13:18:27Z")

</div>

I’ve recently experienced the case where a handler has failed stopping the remaining handler execution in a playbook. Once the triggering change has completed subsequent playbook execution will not notify the handlers a…

---

## [Setting dynamic 'become' doesn't work #11381](https://forum.ansible.com/t/setting-dynamic-become-doesnt-work-11381/18812)

<div class="topic-metadata">

**Author:** [@Albert\_Mikaelyan](https://forum.ansible.com/u/Albert_Mikaelyan)\
**Replies:** 2\
**Last updated:** [July 21, 2015, 12:43pm UTC](https://forum.ansible.com/t/setting-dynamic-become-doesnt-work-11381/18812 "2015-07-21T12:43:58Z")

</div>

Closed issue 11381 still not fixed: https://github.com/ansible/ansible/issues/11381 The test done by jimi-c is not related (he was setting ‘become\_user’, not ‘become’). Here is my test, which shows the problem (using …

---

## [skipping: no hosts matched](https://forum.ansible.com/t/skipping-no-hosts-matched/18171)

<div class="topic-metadata">

**Author:** [@Philipp\_Krenn](https://forum.ansible.com/u/Philipp_Krenn)\
**Replies:** 1\
**Last updated:** [July 21, 2015, 12:23pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/18171 "2015-07-21T12:23:57Z")

</div>

ansible --version ansible 1.9.1 configured module search path = None I’ve started 2 EC2 instances with Ansible, which is working fine. I can also see their tag in the cache file: $ cat ~/.ansible/tmp/ansible-ec2.cach…

---

## [Error with playbook, which should create user accounts and set authorized public keys](https://forum.ansible.com/t/error-with-playbook-which-should-create-user-accounts-and-set-authorized-public-keys/18771)

<div class="topic-metadata">

**Author:** [@Dimitar\_Hristov](https://forum.ansible.com/u/Dimitar_Hristov)\
**Replies:** 8\
**Last updated:** [July 21, 2015, 7:00am UTC](https://forum.ansible.com/t/error-with-playbook-which-should-create-user-accounts-and-set-authorized-public-keys/18771 "2015-07-21T07:00:30Z")

</div>

Hi Guys, I get an error when I run a playbook, which aims to create new users and set authorized keys for them. The error: TASK: \[create new users\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[testvm…

---

## [How to propagate changes to previously-applied tasks (e.g removing files, changing crons, etc)](https://forum.ansible.com/t/how-to-propagate-changes-to-previously-applied-tasks-e-g-removing-files-changing-crons-etc/18775)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 2\
**Last updated:** [July 21, 2015, 3:51am UTC](https://forum.ansible.com/t/how-to-propagate-changes-to-previously-applied-tasks-e-g-removing-files-changing-crons-etc/18775 "2015-07-21T03:51:27Z")

</div>

Hello, I have really enjoyed using Ansible to be able to completely template new servers that I set up, but one thing I have not yet figured out how to do in my workflow is deal with changes that occur after a playbook …

---

## [How to choose remote\_user accoring to OS distribution?](https://forum.ansible.com/t/how-to-choose-remote-user-accoring-to-os-distribution/18729)

<div class="topic-metadata">

**Author:** [@Adam\_R](https://forum.ansible.com/u/Adam_R)\
**Replies:** 5\
**Last updated:** [July 20, 2015, 9:57pm UTC](https://forum.ansible.com/t/how-to-choose-remote-user-accoring-to-os-distribution/18729 "2015-07-20T21:57:36Z")

</div>

Hello, I am creating a role to upgrade my servers. Some are CentOS others are Fedora. CentOS servers use remote\_user: root and Fedora servers remote\_user: fedora How can i setup my playbook to use one remote\_user accor…

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

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