# Latest

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

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

**Page:** 733

---

## [Ruby DSL Project Feedback](https://forum.ansible.com/t/ruby-dsl-project-feedback/22354)

<div class="topic-metadata">

**Author:** [@Brady\_Wied](https://forum.ansible.com/u/Brady_Wied)\
**Replies:** 0\
**Last updated:** [August 23, 2016, 6:50am UTC](https://forum.ansible.com/t/ruby-dsl-project-feedback/22354 "2016-08-23T06:50:58Z")

</div>

Hi all, I started this as an experiment but it might end up being useful. https://github.com/wied03/ansible-ruby The idea is (for those that like Ruby) to have a Ruby DSL that ultimately generates YML files for Ansibl…

---

## [How to make global variables for a short playbook?](https://forum.ansible.com/t/how-to-make-global-variables-for-a-short-playbook/22353)

<div class="topic-metadata">

**Author:** [@Mcnilla](https://forum.ansible.com/u/Mcnilla)\
**Replies:** 0\
**Last updated:** [August 23, 2016, 5:56am UTC](https://forum.ansible.com/t/how-to-make-global-variables-for-a-short-playbook/22353 "2016-08-23T05:56:40Z")

</div>

Hi, I want to share global variables for a short playbook. The problem is, I need to run some commands on all hosts, then some commands on one node, then some commands on all nodes again. I don’t want to repeat with\_vars…

---

## [template not looking in templates directory for included roles](https://forum.ansible.com/t/template-not-looking-in-templates-directory-for-included-roles/22336)

<div class="topic-metadata">

**Author:** [@Daniel\_Watrous](https://forum.ansible.com/u/Daniel_Watrous)\
**Replies:** 6\
**Last updated:** [August 23, 2016, 2:19am UTC](https://forum.ansible.com/t/template-not-looking-in-templates-directory-for-included-roles/22336 "2016-08-23T02:19:48Z")

</div>

I have a playbook with several roles. For example, I have an nginx role and a php role. Each has the typical directory structure. The nginx role has a template and a task for a virtualhost file that appears like this in …

---

## [Ansible 2.1.2 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-1-2-rc1-is-ready-for-testing/22351)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 10:00pm UTC](https://forum.ansible.com/t/ansible-2-1-2-rc1-is-ready-for-testing/22351 "2016-08-22T22:00:59Z")

</div>

Hi all, we’re happy to announce that RC1 for 2.1.2 is now available for testing. This release candidate fixes many bugs, including (but not limited to): Fixed a bug introduced by static includes in 2.1, which prevente…

---

## [How to change/redefine variables in nested dictionary?](https://forum.ansible.com/t/how-to-change-redefine-variables-in-nested-dictionary/22349)

<div class="topic-metadata">

**Author:** [@Dmitry\_Owl](https://forum.ansible.com/u/Dmitry_Owl)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 7:41pm UTC](https://forum.ansible.com/t/how-to-change-redefine-variables-in-nested-dictionary/22349 "2016-08-22T19:41:49Z")

</div>

I have dictionary: \` test: a: name: ‘somevalue’ other: ‘somevalue’ another: ‘somevalue’ b: name: ‘somevalue’ other: ‘somevalue’ another: ‘somevalue’ \` How can I change value of “name” in each dictionary durin…

---

## [SSH connection issue](https://forum.ansible.com/t/ssh-connection-issue/22331)

<div class="topic-metadata">

**Author:** [@Aaron\_Bernardino](https://forum.ansible.com/u/Aaron_Bernardino)\
**Replies:** 3\
**Last updated:** [August 22, 2016, 7:02pm UTC](https://forum.ansible.com/t/ssh-connection-issue/22331 "2016-08-22T19:02:40Z")

</div>

I’m running a playbook where tasks are failing with error message → “SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh”, “unreachable”: true The weird thing is that I have…

---

## [ec2.ini pattern\_exclude and instance\_filters](https://forum.ansible.com/t/ec2-ini-pattern-exclude-and-instance-filters/22348)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [August 22, 2016, 6:23pm UTC](https://forum.ansible.com/t/ec2-ini-pattern-exclude-and-instance-filters/22348 "2016-08-22T18:23:55Z")

</div>

I’m trying to remove certain ec2 hosts from having ansible run on them by using the instance\_filters and/or pattern\_exclude options in the ini file for ec2.py, but it doesn’t seem to be working. I tried using the followi…

---

## [How do you avoid running same roles multiple times when including playbooks?](https://forum.ansible.com/t/how-do-you-avoid-running-same-roles-multiple-times-when-including-playbooks/22330)

<div class="topic-metadata">

**Author:** [@jacek.sniecikowski](https://forum.ansible.com/u/jacek.sniecikowski)\
**Replies:** 2\
**Last updated:** [August 22, 2016, 5:03pm UTC](https://forum.ansible.com/t/how-do-you-avoid-running-same-roles-multiple-times-when-including-playbooks/22330 "2016-08-22T17:03:41Z")

</div>

Short version: Why does Ansible keep running ‘-include: mysql-cluster.yml’ whenever it encounters it? Can’t it recognize this was already executed once? Long version: I am trying to find a good way to organize Ansible…

---

## [localhost in multiple groups (e.g. all) as well as "ungrouped"](https://forum.ansible.com/t/localhost-in-multiple-groups-e-g-all-as-well-as-ungrouped/22346)

<div class="topic-metadata">

**Author:** [@David\_Resnick](https://forum.ansible.com/u/David_Resnick)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 3:38pm UTC](https://forum.ansible.com/t/localhost-in-multiple-groups-e-g-all-as-well-as-ungrouped/22346 "2016-08-22T15:38:24Z")

</div>

I’ve found a regression in Ansible 2.1.1.0 where group\_vars are not being applied correctly to a host that is shown as part of those groups. My playbook is for performing AWS operations. My inventory file looks somethi…

---

## [Feature add gtdLocation and failover on dnsmadeeasy module](https://forum.ansible.com/t/feature-add-gtdlocation-and-failover-on-dnsmadeeasy-module/22345)

<div class="topic-metadata">

**Author:** [@Mohamed\_Radwan](https://forum.ansible.com/u/Mohamed_Radwan)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 2:59pm UTC](https://forum.ansible.com/t/feature-add-gtdlocation-and-failover-on-dnsmadeeasy-module/22345 "2016-08-22T14:59:09Z")

</div>

Hello Is it possobile to add gtdLocation option inside dnsmadeeasy module ? I have different Geo location for the same dns record and I want to define gtdLocation ? also it will be great if you add failover option ? Ri…

---

## [Unexpected evaluation of condition in 'when' statement](https://forum.ansible.com/t/unexpected-evaluation-of-condition-in-when-statement/22343)

<div class="topic-metadata">

**Author:** [@Alfredo\_M](https://forum.ansible.com/u/Alfredo_M)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 2:09pm UTC](https://forum.ansible.com/t/unexpected-evaluation-of-condition-in-when-statement/22343 "2016-08-22T14:09:42Z")

</div>

Hi all, I’m trying to figure out why the expression “false and (var is undefined)”, when ‘var’ has the value of an undefined variable, returns true. Here it is an example: hosts: localhost vars: g: “{{ z }}” is\_fa…

---

## [Pre-requisite tasks](https://forum.ansible.com/t/pre-requisite-tasks/22341)

<div class="topic-metadata">

**Author:** [@Dan\_Nestor](https://forum.ansible.com/u/Dan_Nestor)\
**Replies:** 1\
**Last updated:** [August 22, 2016, 1:43pm UTC](https://forum.ansible.com/t/pre-requisite-tasks/22341 "2016-08-22T13:43:09Z")

</div>

Hello everybody, this is my first post here. I have a playbook that includes these tasks: \` name: Staging directory exists file: path: “{{ staging\_dir }}” recurse: yes state: directory name: “{{ java\_package …

---

## [win\_unzip hanging on overwrite](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300)

<div class="topic-metadata">

**Author:** [@Derek\_Viljoen](https://forum.ansible.com/u/Derek_Viljoen)\
**Replies:** 2\
**Last updated:** [August 22, 2016, 1:29pm UTC](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300 "2016-08-22T13:29:17Z")

</div>

I’m new to ansible. I’m debugging a called to win\_unzip that is hanging. I see other users having the same problem with no resolution. I’ve diagnosed it down to the generated powershell script calling Expand-Archive. If …

---

## [win\_unzip hanging](https://forum.ansible.com/t/win-unzip-hanging/18770)

<div class="topic-metadata">

**Author:** [@Guillaume\_Querso](https://forum.ansible.com/u/Guillaume_Querso)\
**Replies:** 4\
**Last updated:** [August 22, 2016, 1:26pm UTC](https://forum.ansible.com/t/win-unzip-hanging/18770 "2016-08-22T13:26:22Z")

</div>

hi all, I am using ansible to unzip files on a windows 2008 R2 server. My playbook was working fine but for an unknown reason, the win\_unzip module is now never ending. i am running ansible 1.9.2. Thank you for your he…

---

## [Ansible hostname alias not in setup](https://forum.ansible.com/t/ansible-hostname-alias-not-in-setup/15010)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 5\
**Last updated:** [August 22, 2016, 10:10am UTC](https://forum.ansible.com/t/ansible-hostname-alias-not-in-setup/15010 "2016-08-22T10:10:02Z")

</div>

Hi, having the following configuration \[my\_hosts\] my\_host ansible\_ssh\_host=123.123.123.123 my\_host2 ansible\_ssh\_host=234.234.234.234 I want to gather some debug information in my templates. How do I acces the alias …

---

## [Use of fetch -- can we preserve timestamps?](https://forum.ansible.com/t/use-of-fetch-can-we-preserve-timestamps/22319)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [August 22, 2016, 9:07am UTC](https://forum.ansible.com/t/use-of-fetch-can-we-preserve-timestamps/22319 "2016-08-22T09:07:37Z")

</div>

Hello, I am checking out the fetch module. We can grab files off of remote servers and it works great. Would it be possible to add an option to PRESERVE the file time stamps (mtime, ctime)? Thanks, John

---

## [Ansible 2.1.0 organizing host\_vars](https://forum.ansible.com/t/ansible-2-1-0-organizing-host-vars/22340)

<div class="topic-metadata">

**Author:** [@Marvyn\_Alcantara](https://forum.ansible.com/u/Marvyn_Alcantara)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 8:38am UTC](https://forum.ansible.com/t/ansible-2-1-0-organizing-host-vars/22340 "2016-08-22T08:38:55Z")

</div>

Hello we would like to ask if this is possible, Organizing host specific configurations for web servers via host\_vars directory. our goal is to consolidate all host specific machine configurations (ie, IP addresses1, IP…

---

## [Ansible Playbook Doesn't run on RHEL 4.x](https://forum.ansible.com/t/ansible-playbook-doesnt-run-on-rhel-4-x/22339)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 2\
**Last updated:** [August 22, 2016, 7:46am UTC](https://forum.ansible.com/t/ansible-playbook-doesnt-run-on-rhel-4-x/22339 "2016-08-22T07:46:43Z")

</div>

fatal: \[172.19.1.239\]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “Traceback (most recent call last):\\r\\n File "/root/.ansible/tmp/ansible-tmp-1471850606.58-237797342898160/setup"…

---

## [Error while installing ansible in OS X.](https://forum.ansible.com/t/error-while-installing-ansible-in-os-x/22333)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 2\
**Last updated:** [August 21, 2016, 8:07pm UTC](https://forum.ansible.com/t/error-while-installing-ansible-in-os-x/22333 "2016-08-21T20:07:19Z")

</div>

Hi, Im getting the below error while installing the —ansible in OS X. Help me on fixing this pls. Rameshs-MacBook-Pro:centos-6.7 Ramesh$ sudo easy\_install pip Password: Searching for pip Best match: pip 8.1.2 Processi…

---

## [Purge any iptables rules which are NOT in playbook](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335)

<div class="topic-metadata">

**Author:** [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Replies:** 0\
**Last updated:** [August 21, 2016, 2:17pm UTC](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335 "2016-08-21T14:17:47Z")

</div>

Hey, I want to make sure that any existing iptables rules will be gone after I run my play book, in puppet I just need to set purge to yes or something very similar, but I can’t find anything related in ansible/iptables…

---

## [New to Ansible](https://forum.ansible.com/t/new-to-ansible/22289)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 7\
**Last updated:** [August 20, 2016, 7:43am UTC](https://forum.ansible.com/t/new-to-ansible/22289 "2016-08-20T07:43:29Z")

</div>

Hi , I am new to this Ansible. I was gone through the first step, and got the below update. sudo easy\_install pip Searching for pip Best match: pip 8.1.2 Processing pip-8.1.2-py2.7.egg pip 8.1.2 is already the active …

---

## [Variable Return Variables.](https://forum.ansible.com/t/variable-return-variables/22332)

<div class="topic-metadata">

**Author:** [@David\_Blackburn](https://forum.ansible.com/u/David_Blackburn)\
**Replies:** 0\
**Last updated:** [August 20, 2016, 2:54am UTC](https://forum.ansible.com/t/variable-return-variables/22332 "2016-08-20T02:54:05Z")

</div>

Hi I am currently using the ec2\_customer\_gateway module, and the variable names it returns are inconsistent, if a gateway exists its plural if not then singular. The problem is I call out this variable later in my code. …

---

## [Ansible ec2 to assume or not.](https://forum.ansible.com/t/ansible-ec2-to-assume-or-not/22314)

<div class="topic-metadata">

**Author:** [@David\_Blackburn](https://forum.ansible.com/u/David_Blackburn)\
**Replies:** 4\
**Last updated:** [August 20, 2016, 2:42am UTC](https://forum.ansible.com/t/ansible-ec2-to-assume-or-not/22314 "2016-08-20T02:42:30Z")

</div>

I am writing play’s using the ec2 cloud modules and would like to have the option to run the play using an assumed role or just standard IAM keys. I can use logic to let the play know if I will use IAM or a assumed role …

---

## [ec2-asg Module - AWS Autoscaling groups going over the desired instance count and then scaling back](https://forum.ansible.com/t/ec2-asg-module-aws-autoscaling-groups-going-over-the-desired-instance-count-and-then-scaling-back/22320)

<div class="topic-metadata">

**Author:** [@ecoutin\_boingo](https://forum.ansible.com/u/ecoutin_boingo)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 6:44pm UTC](https://forum.ansible.com/t/ec2-asg-module-aws-autoscaling-groups-going-over-the-desired-instance-count-and-then-scaling-back/22320 "2016-08-19T18:44:51Z")

</div>

Hello, I’m wondering if anyone else has observed that when using this Ansible module the AWS API does the following: 1.-Sets the number of instances to be over the desired count, even the maximum if all values are 1. …

---

## [synchronize module and localhost](https://forum.ansible.com/t/synchronize-module-and-localhost/22285)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 4\
**Last updated:** [August 19, 2016, 3:58pm UTC](https://forum.ansible.com/t/synchronize-module-and-localhost/22285 "2016-08-19T15:58:17Z")

</div>

I want to use the synchronize module to rsync a directory from one place on the control host to another place on the control host. My playbook looks like this: - hosts: all become: True gather\_facts: False …

---

## ["the directory /usr/lib/ is not empty, refusing to convert it"](https://forum.ansible.com/t/the-directory-usr-lib-is-not-empty-refusing-to-convert-it/22325)

<div class="topic-metadata">

**Author:** [@Mihai\_Rusan](https://forum.ansible.com/u/Mihai_Rusan)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 3:50pm UTC](https://forum.ansible.com/t/the-directory-usr-lib-is-not-empty-refusing-to-convert-it/22325 "2016-08-19T15:50:55Z")

</div>

Hi, I’m trying to create a symlink: file: src=/usr/lib/x86\_64-linux-gnu/{{ item.src }} dest=/usr/lib/ state=link force=yes with\_items: { src: ‘libz.so’} { src: ‘libfreetype.so’} { src: ‘libjpeg.so’} and I get: “th…

---

## [Getting this error, please help.](https://forum.ansible.com/t/getting-this-error-please-help/22321)

<div class="topic-metadata">

**Author:** [@Sanjay\_Kumar](https://forum.ansible.com/u/Sanjay_Kumar)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 3:45pm UTC](https://forum.ansible.com/t/getting-this-error-please-help/22321 "2016-08-19T15:45:11Z")

</div>

Getting this error, please help. \[sysadm@centos7 ~\]$ ansible -m ping centos71 centos71 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh.”, “unreachable”: true }

---

## [docker\_container moduel fails to keep alive consul container](https://forum.ansible.com/t/docker-container-moduel-fails-to-keep-alive-consul-container/22317)

<div class="topic-metadata">

**Author:** [@Agusti\_Tomas](https://forum.ansible.com/u/Agusti_Tomas)\
**Replies:** 2\
**Last updated:** [August 19, 2016, 3:20pm UTC](https://forum.ansible.com/t/docker-container-moduel-fails-to-keep-alive-consul-container/22317 "2016-08-19T15:20:12Z")

</div>

Hello, I have a simple role called consul: name: Pull consul image docker\_image: name: consul tag: latest state: present name: Start consul container docker\_container: name: consul image: consul state: sta…

---

## [Append to array](https://forum.ansible.com/t/append-to-array/22328)

<div class="topic-metadata">

**Author:** [@elie\_merhej](https://forum.ansible.com/u/elie_merhej)\
**Replies:** 0\
**Last updated:** [August 19, 2016, 2:50pm UTC](https://forum.ansible.com/t/append-to-array/22328 "2016-08-19T14:50:26Z")

</div>

Hi guys, This might be a duplicate topic but I wasn’t able to find the answer to my question. if I define a variable array in a role like: postgresql\_pg\_hba\_default: { type: local, database: all, user: all, address…

---

## [\-m setup -a filter="ansible\_eth0.ipv4.address" returns no results](https://forum.ansible.com/t/m-setup-a-filter-ansible-eth0-ipv4-address-returns-no-results/18129)

<div class="topic-metadata">

**Author:** [@Barry\_Morrison](https://forum.ansible.com/u/Barry_Morrison)\
**Replies:** 21\
**Last updated:** [August 19, 2016, 2:15pm UTC](https://forum.ansible.com/t/m-setup-a-filter-ansible-eth0-ipv4-address-returns-no-results/18129 "2016-08-19T14:15:43Z")

</div>

So I’m trying to get the IP address of every server via ansible and expect to use something like ansible -i inventory host\_group -m setup -a filter=“ansible\_eth0.ipv4.address” returns no results. It returns something li…

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

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