# Latest

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

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

**Page:** 884

---

## [Pull galaxy requirements in tower](https://forum.ansible.com/t/pull-galaxy-requirements-in-tower/17846)

<div class="topic-metadata">

**Author:** [@Nils\_De\_Moor](https://forum.ansible.com/u/Nils_De_Moor)\
**Replies:** 1\
**Last updated:** [March 26, 2015, 1:14pm UTC](https://forum.ansible.com/t/pull-galaxy-requirements-in-tower/17846 "2015-03-26T13:14:28Z")

</div>

Hi, For quite a while we are happy users of Ansible Tower. Now, we are refactoring our playbooks and roles and want to make everything more modular, by leveraging galaxy and having separate repositories per role and a …

---

## [How to fix faulty SSL listeners so that ConfigureRemotingForAnsible.ps1 can execute](https://forum.ansible.com/t/how-to-fix-faulty-ssl-listeners-so-that-configureremotingforansible-ps1-can-execute/17712)

<div class="topic-metadata">

**Author:** [@David\_Goade](https://forum.ansible.com/u/David_Goade)\
**Replies:** 3\
**Last updated:** [March 26, 2015, 6:58am UTC](https://forum.ansible.com/t/how-to-fix-faulty-ssl-listeners-so-that-configureremotingforansible-ps1-can-execute/17712 "2015-03-26T06:58:08Z")

</div>

PSRemoting from the Ansible controller to a Windows host was working fine and then one day failed with: … WINRM CONNECTION ERROR: 500 WinRMTransport. \[Errno 104\] Connection reset by peer … After some investigation, I…

---

## [Can't access ec2\_XXX vars after add\_host](https://forum.ansible.com/t/cant-access-ec2-xxx-vars-after-add-host/17844)

<div class="topic-metadata">

**Author:** [@Matthias\_Blankenhaus](https://forum.ansible.com/u/Matthias_Blankenhaus)\
**Replies:** 0\
**Last updated:** [March 26, 2015, 2:28am UTC](https://forum.ansible.com/t/cant-access-ec2-xxx-vars-after-add-host/17844 "2015-03-26T02:28:50Z")

</div>

Hello ! I am using Ansible to add ec2 hosts to my infrastructure. I have noticed that after adding new ec2 instances to in-memory groups via the add\_host module I cannot access any of the host specific ec2\_XXX vars. Is…

---

## [EC2 script cache across inventories](https://forum.ansible.com/t/ec2-script-cache-across-inventories/17841)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 2\
**Last updated:** [March 26, 2015, 12:39am UTC](https://forum.ansible.com/t/ec2-script-cache-across-inventories/17841 "2015-03-26T00:39:56Z")

</div>

We split our ec2 environment into separate vpcs and until now, have been deploying to each via our own laptops. (Limited to credentials root users, 2) I ran into an issue today where I did the following: ansible-playbo…

---

## [Ansible 1.9.0 Released](https://forum.ansible.com/t/ansible-1-9-0-released/17843)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [March 26, 2015, 12:05am UTC](https://forum.ansible.com/t/ansible-1-9-0-released/17843 "2015-03-26T00:05:21Z")

</div>

Hi all, Ansible 1.9.0 final has been released and is now available. Ansible 1.9.0 introduces several new features, including support for PBRun authentication (in addition to sudo and su), improved tagging capabilities, …

---

## [The lack of precedence between groups is causing me to break DRY. Any suggestions on how to stay DRY?](https://forum.ansible.com/t/the-lack-of-precedence-between-groups-is-causing-me-to-break-dry-any-suggestions-on-how-to-stay-dry/17842)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 10:04pm UTC](https://forum.ansible.com/t/the-lack-of-precedence-between-groups-is-causing-me-to-break-dry-any-suggestions-on-how-to-stay-dry/17842 "2015-03-25T22:04:57Z")

</div>

So, I’m running into an issue with variable precedence. I’d appreciate any feedback. Apologies for how long this is, I’m trying to make sure everything is clear. First, I set hash\_behavior=merge in my ansible.cfg file. …

---

## [ansible failing on Amazon Linux 2015.03](https://forum.ansible.com/t/ansible-failing-on-amazon-linux-2015-03/17838)

<div class="topic-metadata">

**Author:** [@Eric\_Stewart](https://forum.ansible.com/u/Eric_Stewart)\
**Replies:** 3\
**Last updated:** [March 25, 2015, 6:11pm UTC](https://forum.ansible.com/t/ansible-failing-on-amazon-linux-2015-03/17838 "2015-03-25T18:11:26Z")

</div>

Amazon released Amazon Linux 2015.03 today and as result they moved the core version of Python from 2.6 to 2.7. I now get the following error when attempting to run unusable playbook on this new release. failed: \[xxx.xx…

---

## [with\_items introduces a '#' when using escaped braces](https://forum.ansible.com/t/with-items-introduces-a-when-using-escaped-braces/17840)

<div class="topic-metadata">

**Author:** [@Andrew\_Carter](https://forum.ansible.com/u/Andrew_Carter)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 5:19pm UTC](https://forum.ansible.com/t/with-items-introduces-a-when-using-escaped-braces/17840 "2015-03-25T17:19:43Z")

</div>

Using Ansible 1.7.2 on Centos 6.6 (installed from EPEL), I’m trying to execute a command which contains escaped brackets. I get different results when I move the command into an items list. Here it is boiled down to a tr…

---

## [with\_items introduces a '#' when using escaped braces](https://forum.ansible.com/t/with-items-introduces-a-when-using-escaped-braces/17839)

<div class="topic-metadata">

**Author:** [@Andrew\_Carter](https://forum.ansible.com/u/Andrew_Carter)\
**Replies:** 0\
**Last updated:** [March 25, 2015, 5:14pm UTC](https://forum.ansible.com/t/with-items-introduces-a-when-using-escaped-braces/17839 "2015-03-25T17:14:05Z")

</div>

Using Ansible 1.7.2 on Centos 6.6 (installed from EPEL), I’m trying to execute a command which contains escaped brackets. I get different results when I move the command into an items list. Here it is boiled down to a tr…

---

## [add 2 lines with lineinfile but only if not already there](https://forum.ansible.com/t/add-2-lines-with-lineinfile-but-only-if-not-already-there/17836)

<div class="topic-metadata">

**Author:** [@Cevyn\_E](https://forum.ansible.com/u/Cevyn_E)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 4:54pm UTC](https://forum.ansible.com/t/add-2-lines-with-lineinfile-but-only-if-not-already-there/17836 "2015-03-25T16:54:55Z")

</div>

I’m new to Ansible and learning a lot but I have a stupid question. I just can not quite see the answer. I have a file aaa bbb ccc I want to add ddd eee but only if it does not already exist. So I can rerun playb…

---

## [Inventory-specific group\_vars/all overrides](https://forum.ansible.com/t/inventory-specific-group-vars-all-overrides/17080)

<div class="topic-metadata">

**Author:** [@Trevor\_Hartman](https://forum.ansible.com/u/Trevor_Hartman)\
**Replies:** 13\
**Last updated:** [March 25, 2015, 4:45pm UTC](https://forum.ansible.com/t/inventory-specific-group-vars-all-overrides/17080 "2015-03-25T16:45:52Z")

</div>

Hi, I don’t see my issue addressed in the docs or existing issues. I’m trying to override site-wide group\_var/all config with an inventory-specific “all” but it looks like the site-wide vars get precedence, unexpectedly.…

---

## [Adding a line to a file that is identical to another line in the same file](https://forum.ansible.com/t/adding-a-line-to-a-file-that-is-identical-to-another-line-in-the-same-file/17837)

<div class="topic-metadata">

**Author:** [@J-P\_Methot](https://forum.ansible.com/u/J-P_Methot)\
**Replies:** 0\
**Last updated:** [March 25, 2015, 4:06pm UTC](https://forum.ansible.com/t/adding-a-line-to-a-file-that-is-identical-to-another-line-in-the-same-file/17837 "2015-03-25T16:06:31Z")

</div>

Hi, I’ve been writing a playbook for openstack for our very specific openstack architecture here and, as I am completely new to ansible, I have some issues with adding some configurations at the end of a file. My goal …

---

## [use current group in part of jinja of a template](https://forum.ansible.com/t/use-current-group-in-part-of-jinja-of-a-template/17835)

<div class="topic-metadata">

**Author:** [@Yariv\_Graf](https://forum.ansible.com/u/Yariv_Graf)\
**Replies:** 2\
**Last updated:** [March 25, 2015, 3:38pm UTC](https://forum.ansible.com/t/use-current-group-in-part-of-jinja-of-a-template/17835 "2015-03-25T15:38:44Z")

</div>

Hi, I have this code of template for zookeeper role: {% for host in groups\[‘all’\] %} server.{{ hostvars\[host\].zookeeper\_id }}={{ hostvars\[host\]\[‘ansible\_hostname’\] }}:2888:3888 {% endfor %} In this example it applie…

---

## [How access variable from one playbook in the other playbook?](https://forum.ansible.com/t/how-access-variable-from-one-playbook-in-the-other-playbook/17756)

<div class="topic-metadata">

**Author:** [@George\_Shuklin](https://forum.ansible.com/u/George_Shuklin)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 12:31pm UTC](https://forum.ansible.com/t/how-access-variable-from-one-playbook-in-the-other-playbook/17756 "2015-03-25T12:31:51Z")

</div>

Hello. I'm trying to set up application with database. My current (simplified) version looks like this: site.yml: - include db.yml - include app.yml db.yml - hosts: db - roles: foo.install\_db app.yml - hosts: a…

---

## [Ansible read after write file in playbooks](https://forum.ansible.com/t/ansible-read-after-write-file-in-playbooks/17754)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 12:02pm UTC](https://forum.ansible.com/t/ansible-read-after-write-file-in-playbooks/17754 "2015-03-25T12:02:07Z")

</div>

Hi Everyone, I am working on a project using Ansible which requires me to write some data to a file using one playbook and then read the data from the same file using another playbook. The playbook will be something li…

---

## [Manages apt-packages like apt-get --no-install-recommends](https://forum.ansible.com/t/manages-apt-packages-like-apt-get-no-install-recommends/17709)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 1\
**Last updated:** [March 25, 2015, 7:55am UTC](https://forum.ansible.com/t/manages-apt-packages-like-apt-get-no-install-recommends/17709 "2015-03-25T07:55:22Z")

</div>

Hello, I don’t understand how to set in Manages apt-packages dpkg\_options and get result like apt-get --no-install-recommends foo Regards.

---

## [Patching through playbook!!!](https://forum.ansible.com/t/patching-through-playbook/17832)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 2\
**Last updated:** [March 25, 2015, 6:55am UTC](https://forum.ansible.com/t/patching-through-playbook/17832 "2015-03-25T06:55:26Z")

</div>

​You are mixing up plays and tasks, the latter need to be a list indented beneath the tasks: keywoard, which itself is on the same level as hosts:​

---

## [win\_chocolatey not a legal parameter](https://forum.ansible.com/t/win-chocolatey-not-a-legal-parameter/16983)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 21\
**Last updated:** [March 25, 2015, 3:51am UTC](https://forum.ansible.com/t/win-chocolatey-not-a-legal-parameter/16983 "2015-03-25T03:51:08Z")

</div>

I’m having trouble with win\_chocolatey module in a playbook. I upgraded from 1.7 to 1.9 and then ran the following successfully: ansible windows -i inventories/windows -m win\_chocolatey -c winrm -u administrator -k -a…

---

## ["Enabled Metrics" in AWS ASG](https://forum.ansible.com/t/enabled-metrics-in-aws-asg/17831)

<div class="topic-metadata">

**Author:** [@Luis\_De\_Siqueira](https://forum.ansible.com/u/Luis_De_Siqueira)\
**Replies:** 0\
**Last updated:** [March 24, 2015, 11:25pm UTC](https://forum.ansible.com/t/enabled-metrics-in-aws-asg/17831 "2015-03-24T23:25:13Z")

</div>

Hello, In my AWS dashboard if I look inside an AutoScalingGroup I can see a list of “enabled metrics” for each group. How would I manipulate this in Ansible? I have not found a resource module to do so.

---

## [Passing variables from s3 buckets to reusable roles](https://forum.ansible.com/t/passing-variables-from-s3-buckets-to-reusable-roles/17830)

<div class="topic-metadata">

**Author:** [@Jaime\_Bermudez](https://forum.ansible.com/u/Jaime_Bermudez)\
**Replies:** 0\
**Last updated:** [March 24, 2015, 9:09pm UTC](https://forum.ansible.com/t/passing-variables-from-s3-buckets-to-reusable-roles/17830 "2015-03-24T21:09:10Z")

</div>

Doesn’t seem like this is currently possible with Ansible playbooks, but it would be great if there were an include directive that would pull variables from a YAML file in s3. We have some reusable roles that some of our…

---

## [Connection issues with openssh-6.7p1-11 in Fedora 22 Alpha](https://forum.ansible.com/t/connection-issues-with-openssh-6-7p1-11-in-fedora-22-alpha/17828)

<div class="topic-metadata">

**Author:** [@Matt\_Micene](https://forum.ansible.com/u/Matt_Micene)\
**Replies:** 1\
**Last updated:** [March 24, 2015, 6:16pm UTC](https://forum.ansible.com/t/connection-issues-with-openssh-6-7p1-11-in-fedora-22-alpha/17828 "2015-03-24T18:16:01Z")

</div>

The short version; I’m running tests against Fedora 22 Alpha Atomic host and Server, and am seeing various connection failures depending on ssh\_connection settings. They all look like something reported against openssh-…

---

## [ec2.py says I'm not being idempotent](https://forum.ansible.com/t/ec2-py-says-im-not-being-idempotent/15674)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 3\
**Last updated:** [March 24, 2015, 5:43pm UTC](https://forum.ansible.com/t/ec2-py-says-im-not-being-idempotent/15674 "2015-03-24T17:43:00Z")

</div>

This works on one computer just fine but even after a reinstall of ansible I’m still getting this error on my personal laptop. \` name: Launch instance local\_action: ec2 key\_name={{ key\_name }} group={{ security\_gro…

---

## [SSH uknown error issue](https://forum.ansible.com/t/ssh-uknown-error-issue/16703)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 4\
**Last updated:** [March 24, 2015, 4:46pm UTC](https://forum.ansible.com/t/ssh-uknown-error-issue/16703 "2015-03-24T16:46:12Z")

</div>

When I’m first setting up a vm, I need to set which user to use and the ssh and sudo passwords. So, my host file looks something like: \[apache\] 192.168.77.2 ansible\_ssh\_user=vagrant ansible\_ssh\_pass=vagrant ansible\_s…

---

## [Less batteries?](https://forum.ansible.com/t/less-batteries/17821)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 2\
**Last updated:** [March 24, 2015, 3:50pm UTC](https://forum.ansible.com/t/less-batteries/17821 "2015-03-24T15:50:01Z")

</div>

Apologies if this has come up before and/or beaten to death. I wonder if it makes sense to prune a lot of modules in core and extras; take them out of those repos and let them be their own projects – which get installed…

---

## [Issue adding role dependancies](https://forum.ansible.com/t/issue-adding-role-dependancies/17813)

<div class="topic-metadata">

**Author:** [@Geoff\_Webster](https://forum.ansible.com/u/Geoff_Webster)\
**Replies:** 3\
**Last updated:** [March 24, 2015, 2:28pm UTC](https://forum.ansible.com/t/issue-adding-role-dependancies/17813 "2015-03-24T14:28:16Z")

</div>

Hi, I am having issues including a role as a dependency and I am not sure if I am doing something wrong or if I hit a bug. I am trying to include a role in another role according to the ansible docs that say to make a r…

---

## [Is there a library/framework that enables me to do unit testing to Ansible playbooks?](https://forum.ansible.com/t/is-there-a-library-framework-that-enables-me-to-do-unit-testing-to-ansible-playbooks/17823)

<div class="topic-metadata">

**Author:** [@Sean](https://forum.ansible.com/u/Sean)\
**Replies:** 2\
**Last updated:** [March 24, 2015, 1:39pm UTC](https://forum.ansible.com/t/is-there-a-library-framework-that-enables-me-to-do-unit-testing-to-ansible-playbooks/17823 "2015-03-24T13:39:24Z")

</div>

In Chef’s world, there exists ChefSpec, which basically enables writing and running of ‘unit-tests’ against the Chef Cookbooks. Is there a counterpart in Ansible community? (If not, how hard to write one as an engineeri…

---

## [playbook pause and tag madness!](https://forum.ansible.com/t/playbook-pause-and-tag-madness/17824)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu](https://forum.ansible.com/u/Steve_Kieu)\
**Replies:** 6\
**Last updated:** [March 24, 2015, 10:29am UTC](https://forum.ansible.com/t/playbook-pause-and-tag-madness/17824 "2015-03-24T10:29:13Z")

</div>

Hi all, Sorry for the rant but I get through this and think that with that matter ansible is quirky. First roles with tags not work as expected (yes saw some post and people saying you need to agg at the command line …

---

## [ec2\_asg: Duplicate subnets specified error](https://forum.ansible.com/t/ec2-asg-duplicate-subnets-specified-error/17798)

<div class="topic-metadata">

**Author:** [@Arangel\_Angov](https://forum.ansible.com/u/Arangel_Angov)\
**Replies:** 3\
**Last updated:** [March 24, 2015, 2:26am UTC](https://forum.ansible.com/t/ec2-asg-duplicate-subnets-specified-error/17798 "2015-03-24T02:26:34Z")

</div>

Hello, I wasn’t able to find any reference to this so far so here it goes: I have a playbook that creates a new autoscaling group ec2\_asg: name: “{{ asg\_name }}” region: “us-east-1” availability\_zones: “us-east-1b,…

---

## [linode\_module not working](https://forum.ansible.com/t/linode-module-not-working/17776)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 4\
**Last updated:** [March 23, 2015, 8:57pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776 "2015-03-23T20:57:21Z")

</div>

I’m attempting to use the first example on page: http://docs.ansible.com/linode\_module.html ⇒ ansible-playbook --version ansible-playbook 1.7.2 ⇒ ansible-playbook -i …/hosts create\_web.yml ERROR: datacenter is not a …

---

## [include when foo\['bar'\] is defined](https://forum.ansible.com/t/include-when-foo-bar-is-defined/17817)

<div class="topic-metadata">

**Author:** [@Bret\_Martin](https://forum.ansible.com/u/Bret_Martin)\
**Replies:** 4\
**Last updated:** [March 23, 2015, 8:15pm UTC](https://forum.ansible.com/t/include-when-foo-bar-is-defined/17817 "2015-03-23T20:15:47Z")

</div>

I have a number of plays like include: data-importer.yml when: instances\[‘data-importer’\] is defined that no longer work after a recent Ansible upgrade. The include occurs even when instances\[‘data-importer’\] is not …

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

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