# Latest

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

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

**Page:** 960

---

## [URI modul / json body / variable with "-" returned](https://forum.ansible.com/t/uri-modul-json-body-variable-with-returned/15524)

<div class="topic-metadata">

**Author:** [@sascha.lucas](https://forum.ansible.com/u/sascha.lucas)\
**Replies:** 2\
**Last updated:** [June 23, 2014, 1:55pm UTC](https://forum.ansible.com/t/uri-modul-json-body-variable-with-returned/15524 "2014-06-23T13:55:10Z")

</div>

Hi, I’m using the URI module with a REST/json API. First I’m logging on, to get a token, wich I want to use in further requests. Its seems that the returnded token contains a “-” (minus sign) in its key name. I know tha…

---

## [Get stdout using loop](https://forum.ansible.com/t/get-stdout-using-loop/15518)

<div class="topic-metadata">

**Author:** [@user18](https://forum.ansible.com/u/user18)\
**Replies:** 5\
**Last updated:** [June 23, 2014, 1:25pm UTC](https://forum.ansible.com/t/get-stdout-using-loop/15518 "2014-06-23T13:25:28Z")

</div>

Hi! How i can get stdout using loop (f.e. for with\_sequence statement)? An example of how I want to use it: Введите код... hosts: 127.0.0.1 connection: local gather\_facts: no tasks: name: “TEST” command: curl…

---

## [Allow using OrderedDict when parsing the yaml files.](https://forum.ansible.com/t/allow-using-ordereddict-when-parsing-the-yaml-files/15492)

<div class="topic-metadata">

**Author:** [@Smoothify](https://forum.ansible.com/u/Smoothify)\
**Replies:** 11\
**Last updated:** [June 23, 2014, 12:12pm UTC](https://forum.ansible.com/t/allow-using-ordereddict-when-parsing-the-yaml-files/15492 "2014-06-23T12:12:49Z")

</div>

I am would like the ability to set OrderedDicts as the default dictionary class when parsing yaml files, primarily for the purposes of allowing dictionaries in vars to be automatically ordered. Using Ansible as an API, …

---

## [module ec2\_lc: EC2 Launch Configurations can't add ephemeral volumes?](https://forum.ansible.com/t/module-ec2-lc-ec2-launch-configurations-cant-add-ephemeral-volumes/15521)

<div class="topic-metadata">

**Author:** [@Loren\_Norman](https://forum.ansible.com/u/Loren_Norman)\
**Replies:** 1\
**Last updated:** [June 23, 2014, 12:08pm UTC](https://forum.ansible.com/t/module-ec2-lc-ec2-launch-configurations-cant-add-ephemeral-volumes/15521 "2014-06-23T12:08:52Z")

</div>

Hello all! I’m new to Ansible, but I’ve already gotten so much done with it! I ran into a problem that I can’t seem to fix, so I’m posting here to see if this is a bug. Given the simple play: \` hosts: localhost con…

---

## [pass variable from ec2\_eip to route53](https://forum.ansible.com/t/pass-variable-from-ec2-eip-to-route53/15505)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 2\
**Last updated:** [June 23, 2014, 8:45am UTC](https://forum.ansible.com/t/pass-variable-from-ec2-eip-to-route53/15505 "2014-06-23T08:45:23Z")

</div>

Hello everyone! Since the ‘include’ doesn’t work anymore with ‘with\_items’, I am trying to do the following: \` … name: add EIP to the instance local\_action: ec2\_eip in\_vpc=yes instance\_id={{ item.id }} region={{ r…

---

## [Double quotes in a host variable](https://forum.ansible.com/t/double-quotes-in-a-host-variable/15520)

<div class="topic-metadata">

**Author:** [@Harsh\_Jha](https://forum.ansible.com/u/Harsh_Jha)\
**Replies:** 1\
**Last updated:** [June 22, 2014, 4:06pm UTC](https://forum.ansible.com/t/double-quotes-in-a-host-variable/15520 "2014-06-22T16:06:40Z")

</div>

My host inventory has a host specific variable and it looks as follows - \[local\] localhost \[server\_nodes\] abcd.compute-1.amazonaws.com \[client\_nodes\] xyz.compute-1.amazonaws.com subs=“\["elasticsearch\_nodes"\]” ghi.…

---

## [fetch with\_fileglob won't get files](https://forum.ansible.com/t/fetch-with-fileglob-wont-get-files/15499)

<div class="topic-metadata">

**Author:** [@Makimoto\_Marakatti](https://forum.ansible.com/u/Makimoto_Marakatti)\
**Replies:** 6\
**Last updated:** [June 20, 2014, 10:44pm UTC](https://forum.ansible.com/t/fetch-with-fileglob-wont-get-files/15499 "2014-06-20T22:44:59Z")

</div>

Hi all I have a play like this: \`

---

## [Accessing ec2.py dynamic inventory variables in templates](https://forum.ansible.com/t/accessing-ec2-py-dynamic-inventory-variables-in-templates/15504)

<div class="topic-metadata">

**Author:** [@Roger\_Hunwicks](https://forum.ansible.com/u/Roger_Hunwicks)\
**Replies:** 8\
**Last updated:** [June 20, 2014, 9:03pm UTC](https://forum.ansible.com/t/accessing-ec2-py-dynamic-inventory-variables-in-templates/15504 "2014-06-20T21:03:44Z")

</div>

I’d like to access a variable set by the ec2.py dynamic inventory script in a Jinja2 template, but I can’t work out how to do it. ec2.py returns a variable called ec2\_tag\_elasticbeanstalk\_environment-name for EC2 instan…

---

## [Accessing the host names in the ansible\_hosts file in a loop in Ansbile ?](https://forum.ansible.com/t/accessing-the-host-names-in-the-ansible-hosts-file-in-a-loop-in-ansbile/15475)

<div class="topic-metadata">

**Author:** [@Soumya\_Simanta](https://forum.ansible.com/u/Soumya_Simanta)\
**Replies:** 15\
**Last updated:** [June 20, 2014, 8:56pm UTC](https://forum.ansible.com/t/accessing-the-host-names-in-the-ansible-hosts-file-in-a-loop-in-ansbile/15475 "2014-06-20T20:56:21Z")

</div>

I’m trying to automate zookeeper install using Ansible. I want to add a bunch of lines to my cfg file. Following is an example where there are 5 nodes. zoo1, zoo2, zoo3 etc the hosts that I’ve in my ansible\_hosts file. I…

---

## [conditional options for the command module beyond creates, and removes](https://forum.ansible.com/t/conditional-options-for-the-command-module-beyond-creates-and-removes/15512)

<div class="topic-metadata">

**Author:** [@Michael\_Dur](https://forum.ansible.com/u/Michael_Dur)\
**Replies:** 1\
**Last updated:** [June 20, 2014, 8:54pm UTC](https://forum.ansible.com/t/conditional-options-for-the-command-module-beyond-creates-and-removes/15512 "2014-06-20T20:54:44Z")

</div>

I see a need for running a command remotely to determine whether a command play should be executed. There is a lot that ‘creates’, and ‘removes’ doesn’t cover. I’d like to support file test operators and more. I realize …

---

## [New Windows support for Ansible](https://forum.ansible.com/t/new-windows-support-for-ansible/15516)

<div class="topic-metadata">

**Author:** [@Ben\_Hoyt](https://forum.ansible.com/u/Ben_Hoyt)\
**Replies:** 2\
**Last updated:** [June 20, 2014, 8:51pm UTC](https://forum.ansible.com/t/new-windows-support-for-ansible/15516 "2014-06-20T20:51:13Z")

</div>

Hi Ansiblites, Great to see you’ve added Windows support: http://www.ansible.com/blog/windows-is-coming And I really like the approach you’ve taken to keep Windows like Windows. Using a lowest cross-platform denominato…

---

## [Ansible v1.6.3 - EC2 module fails when launching](https://forum.ansible.com/t/ansible-v1-6-3-ec2-module-fails-when-launching/15511)

<div class="topic-metadata">

**Author:** [@Dayne\_Lucas](https://forum.ansible.com/u/Dayne_Lucas)\
**Replies:** 1\
**Last updated:** [June 20, 2014, 7:28pm UTC](https://forum.ansible.com/t/ansible-v1-6-3-ec2-module-fails-when-launching/15511 "2014-06-20T19:28:06Z")

</div>

Hi, I am trying to use the ansible package from PPA on Ubuntu (v1.6.3), however whenever I try and use the ec2 module to startup an ec2 instance into a VPC I get the following error: failed: \[localhost\] =\> {"failed": t…

---

## [How to loop over ansible\_mounts\[elements\].mount](https://forum.ansible.com/t/how-to-loop-over-ansible-mounts-elements-mount/15515)

<div class="topic-metadata">

**Author:** [@Servermanaged](https://forum.ansible.com/u/Servermanaged)\
**Replies:** 3\
**Last updated:** [June 20, 2014, 2:38pm UTC](https://forum.ansible.com/t/how-to-loop-over-ansible-mounts-elements-mount/15515 "2014-06-20T14:38:31Z")

</div>

Dear friends I need to generate a line in a configuration file based on ansible\_mounts but only when /home mount is present. I know for instance that I can access ansible\_mounts\[1\].mount or ansible\_mounts\[2\].mount but …

---

## [assemble module with templates?](https://forum.ansible.com/t/assemble-module-with-templates/15509)

<div class="topic-metadata">

**Author:** [@Ken\_Wong](https://forum.ansible.com/u/Ken_Wong)\
**Replies:** 2\
**Last updated:** [June 20, 2014, 11:45am UTC](https://forum.ansible.com/t/assemble-module-with-templates/15509 "2014-06-20T11:45:40Z")

</div>

Hi, I’m converting a bunch of my Puppet modules to Ansible and was wondering if, when using the “assemble” module, is there any way to also have template evaluation done at runtime? Or do I have to do this in 2 steps: a…

---

## [Linux Updates](https://forum.ansible.com/t/linux-updates/15465)

<div class="topic-metadata">

**Author:** [@ammullan](https://forum.ansible.com/u/ammullan)\
**Replies:** 5\
**Last updated:** [June 20, 2014, 9:49am UTC](https://forum.ansible.com/t/linux-updates/15465 "2014-06-20T09:49:11Z")

</div>

Hey all, I’m just looking at putting in Ansible and wanting to get some use cases in. The one thing I really want to do is get Linux updates via Ansible going. We have a few servers that need to have things killed/run b…

---

## [set a variable depending on the output of a task](https://forum.ansible.com/t/set-a-variable-depending-on-the-output-of-a-task/15507)

<div class="topic-metadata">

**Author:** [@Vasco\_Figueira](https://forum.ansible.com/u/Vasco_Figueira)\
**Replies:** 2\
**Last updated:** [June 20, 2014, 9:09am UTC](https://forum.ansible.com/t/set-a-variable-depending-on-the-output-of-a-task/15507 "2014-06-20T09:09:13Z")

</div>

Hi all, I don’t seem to find a way to do the following, which probably means I’m trying to do it in some weird way.

---

## [{"changed": false} on apt install, but install works fine when SSH'd in manually.](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502)

<div class="topic-metadata">

**Author:** [@Patrick\_S](https://forum.ansible.com/u/Patrick_S)\
**Replies:** 3\
**Last updated:** [June 20, 2014, 8:58am UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502 "2014-06-20T08:58:26Z")

</div>

Hi, I’m trying to install openjdk-7-jdk on Ubuntu 14.04, however I’m running into a problem: When I run my playbook: \` name: Install Java 6 sudo: yes apt: name=openjdk-6-jdk state=latest install\_recommends=no \` I…

---

## [su works on Debian Lenny but not on Debian Wheezy](https://forum.ansible.com/t/su-works-on-debian-lenny-but-not-on-debian-wheezy/15500)

<div class="topic-metadata">

**Author:** [@Holger\_Seidenberg](https://forum.ansible.com/u/Holger_Seidenberg)\
**Replies:** 4\
**Last updated:** [June 20, 2014, 5:53am UTC](https://forum.ansible.com/t/su-works-on-debian-lenny-but-not-on-debian-wheezy/15500 "2014-06-20T05:53:58Z")

</div>

I have a strange problem with new wheezy machines on lenny ist works ansible backuppc -a ’ whoami’ -u seidenberg --su -k --ask-su-pass -vvvv SSH password: su password: ESTABLISH CONNECTION FOR USER: seidenberg RE…

---

## [Something that seems simply yet can't get it to work](https://forum.ansible.com/t/something-that-seems-simply-yet-cant-get-it-to-work/15508)

<div class="topic-metadata">

**Author:** [@tb582](https://forum.ansible.com/u/tb582)\
**Replies:** 1\
**Last updated:** [June 20, 2014, 3:46am UTC](https://forum.ansible.com/t/something-that-seems-simply-yet-cant-get-it-to-work/15508 "2014-06-20T03:46:20Z")

</div>

Hello, I’m new to Ansible: Here’s what I’m looking to do for my first playbook/automation with it. I have a list of users, like below. Oh and by the way I’m running this on OSX. First of all where do I save this file? a…

---

## [Support for managing Windows guests is now available on the 1.7 development branch](https://forum.ansible.com/t/support-for-managing-windows-guests-is-now-available-on-the-1-7-development-branch/15510)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [June 20, 2014, 3:33am UTC](https://forum.ansible.com/t/support-for-managing-windows-guests-is-now-available-on-the-1-7-development-branch/15510 "2014-06-20T03:33:49Z")

</div>

Hi everyone, We’ve just pushed some code that you might like. Ansible support for managing Windows machines! Read all about it here: http://www.ansible.com/blog/windows-is-coming http://docs.ansible.com/intro\_windows…

---

## [has the active path of the pipe lookup\_plugin changed](https://forum.ansible.com/t/has-the-active-path-of-the-pipe-lookup-plugin-changed/15496)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 9:47pm UTC](https://forum.ansible.com/t/has-the-active-path-of-the-pipe-lookup-plugin-changed/15496 "2014-06-19T21:47:00Z")

</div>

Hey all, I might have missed a changelog but I can’t seem to find this change documented: When setting a variable to the value “{{ lookup(‘pipe’, ‘pwd’) }}” in the root of a playbook, and then using that variable insid…

---

## [playbooks include statement](https://forum.ansible.com/t/playbooks-include-statement/15377)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 9:35pm UTC](https://forum.ansible.com/t/playbooks-include-statement/15377 "2014-06-19T21:35:05Z")

</div>

Is there any reason why I can’t apply a tag to a playbook include? I have the following: { include: dhcpservers.yml tags=dhcp, when: ansible\_system == ‘Linux’ } but the dhcp tag seems to be ignored. Am I missing somet…

---

## [Making S3 get overwrite behavior match get\_url](https://forum.ansible.com/t/making-s3-get-overwrite-behavior-match-get-url/15434)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 9\
**Last updated:** [June 19, 2014, 9:31pm UTC](https://forum.ansible.com/t/making-s3-get-overwrite-behavior-match-get-url/15434 "2014-06-19T21:31:13Z")

</div>

Hi, I am using S3 to store my build artifacts and I would like to copy them to hosts using the s3 module using something like the following task: s3: mode=get s3 bucket=myartifacts object=/website.zip dest=/srv/www/we…

---

## [Variable precedence and making roles work across distributions](https://forum.ansible.com/t/variable-precedence-and-making-roles-work-across-distributions/15501)

<div class="topic-metadata">

**Author:** [@Jeff\_Geerling](https://forum.ansible.com/u/Jeff_Geerling)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 9:28pm UTC](https://forum.ansible.com/t/variable-precedence-and-making-roles-work-across-distributions/15501 "2014-06-19T21:28:51Z")

</div>

The technique I usually use for making a role work cross-distro is to do two things: For variables: Include a variables file named {{ ansible\_os\_family }}.yml (then stick ‘Debian.yml’ and ‘RedHat.yml’, etc. into the rol…

---

## [ping inside playbook](https://forum.ansible.com/t/ping-inside-playbook/15506)

<div class="topic-metadata">

**Author:** [@Laurent\_PETIT](https://forum.ansible.com/u/Laurent_PETIT)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 9:27pm UTC](https://forum.ansible.com/t/ping-inside-playbook/15506 "2014-06-19T21:27:04Z")

</div>

Hello, I bootstrap server security from a bootstrap.yml playbook. Before restarting the ssh service, I’d like to test that it is possible to ssh into the host via the key mechanism (I have used the authorized\_keys modu…

---

## [Template value pairs vs. in-playbook value pairs difference](https://forum.ansible.com/t/template-value-pairs-vs-in-playbook-value-pairs-difference/15503)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [June 19, 2014, 9:25pm UTC](https://forum.ansible.com/t/template-value-pairs-vs-in-playbook-value-pairs-difference/15503 "2014-06-19T21:25:51Z")

</div>

I have this inconsistency when I declare variable pairs used in a template vs. variable pairs used directly in a playbook e.g: Works in a template:group\_vars/all fusemq\_users: { ‘username’: ‘admin’, ‘password’: ‘admi…

---

## [Using variables from a notifying task in a handler](https://forum.ansible.com/t/using-variables-from-a-notifying-task-in-a-handler/15493)

<div class="topic-metadata">

**Author:** [@Peter\_Murray](https://forum.ansible.com/u/Peter_Murray)\
**Replies:** 1\
**Last updated:** [June 19, 2014, 9:23pm UTC](https://forum.ansible.com/t/using-variables-from-a-notifying-task-in-a-handler/15493 "2014-06-19T21:23:09Z")

</div>

I have a task that iterates over a dictionary of directory names to remove a file: name: Remove conflicting XACML policy file: path=/opt/fedora/{{ item.key }}/data/blah.xml state=absent with\_dict: installs notify:…

---

## [Trouble with using variables for ec2 tags](https://forum.ansible.com/t/trouble-with-using-variables-for-ec2-tags/15494)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 9:22pm UTC](https://forum.ansible.com/t/trouble-with-using-variables-for-ec2-tags/15494 "2014-06-19T21:22:10Z")

</div>

I'm trying to create a VPC with certain tags which are derived from variables. I feel like I can't find the right YAML/Jinja/whatever syntax to make it work though. At first I tried setting them in the resource\_tags d…

---

## [basename of a list of files returned from 'with\_fileglobs'](https://forum.ansible.com/t/basename-of-a-list-of-files-returned-from-with-fileglobs/15498)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 9:19pm UTC](https://forum.ansible.com/t/basename-of-a-list-of-files-returned-from-with-fileglobs/15498 "2014-06-19T21:19:23Z")

</div>

I need to get the base names of a list of files returned from a call to ‘with\_fileglob’. I have written a lookup plugin that calls Python’s os.path.basename function and named it simply ‘basename’. Then in a playbook, I …

---

## [Playbook hanging on kernel update](https://forum.ansible.com/t/playbook-hanging-on-kernel-update/15473)

<div class="topic-metadata">

**Author:** [@ammullan](https://forum.ansible.com/u/ammullan)\
**Replies:** 10\
**Last updated:** [June 19, 2014, 9:18pm UTC](https://forum.ansible.com/t/playbook-hanging-on-kernel-update/15473 "2014-06-19T21:18:05Z")

</div>

I’ve written the following playbook that seems to work perfectly, except when I comment out the kernel update task. Hopefully nothing that I’ve just missed from the docs. \`

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

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