# Latest

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

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

**Page:** 904

---

## [Prevent variable overwrite in skipped tasks](https://forum.ansible.com/t/prevent-variable-overwrite-in-skipped-tasks/17242)

<div class="topic-metadata">

**Author:** [@Bill\_Rosenburg](https://forum.ansible.com/u/Bill_Rosenburg)\
**Replies:** 1\
**Last updated:** [January 13, 2015, 1:59pm UTC](https://forum.ansible.com/t/prevent-variable-overwrite-in-skipped-tasks/17242 "2015-01-13T13:59:41Z")

</div>

This is the first time I hit wall with ansible after thousands lines of yaml so maybe I’m missing something. I have a main playbook a.yml: include b.yml include c.yml when: 0 == 1 debug: var=x where both b.…

---

## [Hosts with multiple roles](https://forum.ansible.com/t/hosts-with-multiple-roles/17241)

<div class="topic-metadata">

**Author:** [@Dirk\_Olmes](https://forum.ansible.com/u/Dirk_Olmes)\
**Replies:** 1\
**Last updated:** [January 13, 2015, 1:57pm UTC](https://forum.ansible.com/t/hosts-with-multiple-roles/17241 "2015-01-13T13:57:53Z")

</div>

Hi, I’m having problems with the ansible inventory, filters and hosts in multiple roles. Let’s assume I have two customers, each with a machine that can be a http server and/or a samba server.This is my inventory: \[cus…

---

## [Ansible multiple SSH logins](https://forum.ansible.com/t/ansible-multiple-ssh-logins/17017)

<div class="topic-metadata">

**Author:** [@mriedel](https://forum.ansible.com/u/mriedel)\
**Replies:** 2\
**Last updated:** [January 13, 2015, 12:42pm UTC](https://forum.ansible.com/t/ansible-multiple-ssh-logins/17017 "2015-01-13T12:42:27Z")

</div>

Hi, I think I have a configuration problem, but I’m not sure what to search on to find an answer. I’ve tried ‘wtmp’ or ‘last’ or ‘lots of ssh logins’, but I don’t find quite what I’m looking for. So I think a question a…

---

## [IoC in ansible roles (avoiding boilerplate) - how?](https://forum.ansible.com/t/ioc-in-ansible-roles-avoiding-boilerplate-how/17247)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 0\
**Last updated:** [January 13, 2015, 10:47am UTC](https://forum.ansible.com/t/ioc-in-ansible-roles-avoiding-boilerplate-how/17247 "2015-01-13T10:47:34Z")

</div>

So, a follow-on question. I've a number of roles (again, role playbooks are potentially developed by independent teams). Typically, the tasks any particular role will execute look like this: - common preamble - role-…

---

## [Problem with ansible 1.8.2 copy:](https://forum.ansible.com/t/problem-with-ansible-1-8-2-copy/17230)

<div class="topic-metadata">

**Author:** [@Tore\_Lindberg\_Abodsv](https://forum.ansible.com/u/Tore_Lindberg_Abodsv)\
**Replies:** 2\
**Last updated:** [January 13, 2015, 9:22am UTC](https://forum.ansible.com/t/problem-with-ansible-1-8-2-copy/17230 "2015-01-13T09:22:09Z")

</div>

Ansible V. 1.8.2 fails with copy: Following book

---

## [Force ansible to use IPv4 / IPv6?](https://forum.ansible.com/t/force-ansible-to-use-ipv4-ipv6/17244)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [January 13, 2015, 7:48am UTC](https://forum.ansible.com/t/force-ansible-to-use-ipv4-ipv6/17244 "2015-01-13T07:48:54Z")

</div>

I’ve run into a minor problem where one of my hosts has an AAAA record for an address assigned via DHCP6, but it isn’t acquiring that address. I can connect via the IPv4 address just fine. I’m looking for a switch to tel…

---

## [Creating multiple ec2 instances in different AZ's](https://forum.ansible.com/t/creating-multiple-ec2-instances-in-different-azs/17159)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [January 13, 2015, 6:21am UTC](https://forum.ansible.com/t/creating-multiple-ec2-instances-in-different-azs/17159 "2015-01-13T06:21:54Z")

</div>

Hi List, I’m trying to create 1 (or more) instances inside different subnet’s where each subnet is a different AZ in Amazon. That way of using AZ’s makes for some better fail-safes. So: --- - hosts: localhost connec…

---

## [Problems running mysql\_user](https://forum.ansible.com/t/problems-running-mysql-user/17237)

<div class="topic-metadata">

**Author:** [@Dirk\_Roder](https://forum.ansible.com/u/Dirk_Roder)\
**Replies:** 2\
**Last updated:** [January 12, 2015, 6:57pm UTC](https://forum.ansible.com/t/problems-running-mysql-user/17237 "2015-01-12T18:57:13Z")

</div>

Hello together, I do have a problem with the mysql\_user module. It does create my user with the provided password, but it does not create the permissions I do pass. Here is my call: \` name: Create User with single …

---

## [action for getting Digital Ocean keys](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184)

<div class="topic-metadata">

**Author:** [@Paul\_Mackay](https://forum.ansible.com/u/Paul_Mackay)\
**Replies:** 3\
**Last updated:** [January 12, 2015, 5:07pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184 "2015-01-12T17:07:33Z")

</div>

Is there any way to get a list of keys with IDs from a Digital Ocean account? If not, might that be a useful task? I have a scenario where I have keys in my account and would like to add them to a droplet I’m creating us…

---

## [local\_action using remote file content](https://forum.ansible.com/t/local-action-using-remote-file-content/14243)

<div class="topic-metadata">

**Author:** [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Replies:** 3\
**Last updated:** [January 12, 2015, 4:48pm UTC](https://forum.ansible.com/t/local-action-using-remote-file-content/14243 "2015-01-12T16:48:47Z")

</div>

Hi there, It’s my intention to write a bitbucket module for Ansible. The use case is : Create a local VM using vagrant, provisioned by Ansible. Using Ansible: 1 Generate a SSH key-pair on that machine. 2 Take the f…

---

## [include: "{{ ansible\_os\_family }}.yml" not working](https://forum.ansible.com/t/include-ansible-os-family-yml-not-working/17178)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 9\
**Last updated:** [January 12, 2015, 2:18pm UTC](https://forum.ansible.com/t/include-ansible-os-family-yml-not-working/17178 "2015-01-12T14:18:22Z")

</div>

Was going over different posts on how to handle different OS within a role. In this thread: https://groups.google.com/forum/#!searchin/ansible-project/group\_by$20role|sort:relevance|spell:false/ansible-project/OPCESPvMp…

---

## [Ansible's autoscaling group for EC2](https://forum.ansible.com/t/ansibles-autoscaling-group-for-ec2/17240)

<div class="topic-metadata">

**Author:** [@biswajit.banerjee](https://forum.ansible.com/u/biswajit.banerjee)\
**Replies:** 0\
**Last updated:** [January 12, 2015, 1:27pm UTC](https://forum.ansible.com/t/ansibles-autoscaling-group-for-ec2/17240 "2015-01-12T13:27:25Z")

</div>

Hi All, I am getting below error while running my playbook for autoscaling group. the snippet for autoscaling group is…

---

## [collecting "items" across roles and then iterating over them in a handler](https://forum.ansible.com/t/collecting-items-across-roles-and-then-iterating-over-them-in-a-handler/17195)

<div class="topic-metadata">

**Author:** [@Matthew\_Macdonald-Wa](https://forum.ansible.com/u/Matthew_Macdonald-Wa)\
**Replies:** 5\
**Last updated:** [January 12, 2015, 12:11pm UTC](https://forum.ansible.com/t/collecting-items-across-roles-and-then-iterating-over-them-in-a-handler/17195 "2015-01-12T12:11:41Z")

</div>

Hi all, We have a number of clients for whom we manage systems using Ansible. I’m fairly new to Ansible however my background is heavy use of Chef and Puppet so I understand most of the concepts. In order to make our l…

---

## [Exception: host not found issue with v1.8.2](https://forum.ansible.com/t/exception-host-not-found-issue-with-v1-8-2/17196)

<div class="topic-metadata">

**Author:** [@James\_Morgan1](https://forum.ansible.com/u/James_Morgan1)\
**Replies:** 15\
**Last updated:** [January 12, 2015, 10:33am UTC](https://forum.ansible.com/t/exception-host-not-found-issue-with-v1-8-2/17196 "2015-01-12T10:33:02Z")

</div>

Hi, Having problems with 1.8.2 I believe the problem is similar to https://github.com/ansible/ansible/issues/9828 http://serverfault.com/questions/652746/ansible-exception-host-not-found-item name: Create ansible e…

---

## [With ssh tunnel, can not -m ping remote host successful](https://forum.ansible.com/t/with-ssh-tunnel-can-not-m-ping-remote-host-successful/17239)

<div class="topic-metadata">

**Author:** [@jlu.xzp](https://forum.ansible.com/u/jlu.xzp)\
**Replies:** 0\
**Last updated:** [January 12, 2015, 9:48am UTC](https://forum.ansible.com/t/with-ssh-tunnel-can-not-m-ping-remote-host-successful/17239 "2015-01-12T09:48:42Z")

</div>

I have to use ssh tunnel to manage my hosts. create ssh tunnel “ssh -L 8082:: root@” edit host cfg \[servers\] server ansible\_ssh\_port=8082 ansible\_ssh\_host=127.0.0.1 ansible\_ssh\_user=root ansible\_ssh\_pass=xxxx then u…

---

## [ansible-playbook: How to gather facts from machine Y although you run with --limit="X"](https://forum.ansible.com/t/ansible-playbook-how-to-gather-facts-from-machine-y-although-you-run-with-limit-x/17233)

<div class="topic-metadata">

**Author:** [@Eric\_Feliksik1](https://forum.ansible.com/u/Eric_Feliksik1)\
**Replies:** 2\
**Last updated:** [January 12, 2015, 5:24am UTC](https://forum.ansible.com/t/ansible-playbook-how-to-gather-facts-from-machine-y-although-you-run-with-limit-x/17233 "2015-01-12T05:24:08Z")

</div>

I have an ansible role for machine X that uses use {{ hostvars\[‘Y’\]\[‘network\_address’\] }} in a task. If I run ‘ansible-playbook -i inventories/dev site.yml --limit=“X”’ (Vagrant also runs it with --limit) this variable …

---

## [Ensure command-line tools (or xcode) are installed on OS X?](https://forum.ansible.com/t/ensure-command-line-tools-or-xcode-are-installed-on-os-x/17227)

<div class="topic-metadata">

**Author:** [@Bret\_Comnes](https://forum.ansible.com/u/Bret_Comnes)\
**Replies:** 1\
**Last updated:** [January 12, 2015, 12:10am UTC](https://forum.ansible.com/t/ensure-command-line-tools-or-xcode-are-installed-on-os-x/17227 "2015-01-12T00:10:10Z")

</div>

I was wondering what the best way to ensure that the apple command-line tools (or xcode) are installed on a OS X host. Does anyone know of a good way or of a pattern to ensure that this is the case with ansible?

---

## [Ansible and strict SSH key checking](https://forum.ansible.com/t/ansible-and-strict-ssh-key-checking/13062)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [January 11, 2015, 8:32pm UTC](https://forum.ansible.com/t/ansible-and-strict-ssh-key-checking/13062 "2015-01-11T20:32:52Z")

</div>

Various folks did not like the fact that we disabled strict SSH host key checking to more easily enable reprovisioning related use cases. Their concerns are valid, and we should have a way to control this behavior. In t…

---

## [Creating and Naming a Cluster of EC2 Servers Using Ansible](https://forum.ansible.com/t/creating-and-naming-a-cluster-of-ec2-servers-using-ansible/17154)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 5\
**Last updated:** [January 11, 2015, 4:14am UTC](https://forum.ansible.com/t/creating-and-naming-a-cluster-of-ec2-servers-using-ansible/17154 "2015-01-11T04:14:11Z")

</div>

Hi I’m trying to automate creating and destroying our staging environment. So far, I have a playbook to create the cluster: \`

---

## [Conditionals in sudo](https://forum.ansible.com/t/conditionals-in-sudo/17235)

<div class="topic-metadata">

**Author:** [@Raja1](https://forum.ansible.com/u/Raja1)\
**Replies:** 2\
**Last updated:** [January 11, 2015, 3:25am UTC](https://forum.ansible.com/t/conditionals-in-sudo/17235 "2015-01-11T03:25:21Z")

</div>

Hi, Im a newbie trying to automate a few commands across boxes using Ansible. I would like the sudo command on certain tasks to be conditional, so depending on the node, I’d like to turn on sudo or not. For e.g. I have…

---

## [Can I loop over multipe actions?](https://forum.ansible.com/t/can-i-loop-over-multipe-actions/17228)

<div class="topic-metadata">

**Author:** [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Replies:** 8\
**Last updated:** [January 10, 2015, 8:17pm UTC](https://forum.ansible.com/t/can-i-loop-over-multipe-actions/17228 "2015-01-10T20:17:19Z")

</div>

Hello, So include and with\_items is depricated and I am wondering how to implement the following: I have to create a couple of similar services: (I know this is not working) \` name: loopy shell: download something …

---

## [Ansible resolve dictionary key or parameter variable](https://forum.ansible.com/t/ansible-resolve-dictionary-key-or-parameter-variable/17194)

<div class="topic-metadata">

**Author:** [@Eli\_Finkelshteyn](https://forum.ansible.com/u/Eli_Finkelshteyn)\
**Replies:** 2\
**Last updated:** [January 10, 2015, 7:09pm UTC](https://forum.ansible.com/t/ansible-resolve-dictionary-key-or-parameter-variable/17194 "2015-01-10T19:09:18Z")

</div>

In Ansible, if I try to use a variable as a parameter name, or a key name, it is never resolved. For example, if I have {{ some\_var }}: true, or: template: “{{ resolve\_me\_to\_src }}”: “some\_src” the variables will just …

---

## [Provisioning a NAT via ec2\_vpc](https://forum.ansible.com/t/provisioning-a-nat-via-ec2-vpc/17190)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 1\
**Last updated:** [January 10, 2015, 7:01pm UTC](https://forum.ansible.com/t/provisioning-a-nat-via-ec2-vpc/17190 "2015-01-10T19:01:28Z")

</div>

Is setting up a NAT supported (but undocumented) or do we need to manually launch instances(s) via the normal ec2 module to act as a NAT for private sub-domains?

---

## [Ad-Hoc Works; Playbook Works. Wait... No it doesn't.](https://forum.ansible.com/t/ad-hoc-works-playbook-works-wait-no-it-doesnt/17174)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 3\
**Last updated:** [January 10, 2015, 6:35pm UTC](https://forum.ansible.com/t/ad-hoc-works-playbook-works-wait-no-it-doesnt/17174 "2015-01-10T18:35:35Z")

</div>

This ad-hoc command works for me: ansible -s -m copy -a “src=roles/pi\_ddclient/files/etc/ddclient.conf dest=/etc/ddclient.conf owner=root group=root mode=0600 backup=yes” daffy However when I run the playbook containin…

---

## [Naming item variable in item lookups](https://forum.ansible.com/t/naming-item-variable-in-item-lookups/17234)

<div class="topic-metadata">

**Author:** [@Shawn\_Siefkas](https://forum.ansible.com/u/Shawn_Siefkas)\
**Replies:** 0\
**Last updated:** [January 10, 2015, 5:43pm UTC](https://forum.ansible.com/t/naming-item-variable-in-item-lookups/17234 "2015-01-10T17:43:21Z")

</div>

Hey everybody! I’ve posted my first Ansible PR for a feature request at https://github.com/ansible/ansible/pull/9974. Please let me know if I’ve missed a preexisting way to achieve this behavior.

---

## [Ignore error if --extra-vars is not given](https://forum.ansible.com/t/ignore-error-if-extra-vars-is-not-given/17152)

<div class="topic-metadata">

**Author:** [@Fazal-e-Rehman\_Khan](https://forum.ansible.com/u/Fazal-e-Rehman_Khan)\
**Replies:** 1\
**Last updated:** [January 10, 2015, 1:21pm UTC](https://forum.ansible.com/t/ignore-error-if-extra-vars-is-not-given/17152 "2015-01-10T13:21:48Z")

</div>

Dear All, Is there a way to ignore errors if extra-vars are not given at the command line. In my case, I don’t need to pass extra-vars every time I run the playbook. Regards, Fazal

---

## [Module Suffix's and custom windows modules](https://forum.ansible.com/t/module-suffixs-and-custom-windows-modules/17225)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 3\
**Last updated:** [January 10, 2015, 1:14am UTC](https://forum.ansible.com/t/module-suffixs-and-custom-windows-modules/17225 "2015-01-10T01:14:24Z")

</div>

I have a custom windows module that I have been using in my playbooks and I just went to update to the version 1.8.2 ( installed with pip ). I went to run a playbook that I run all the time and got this error: \` /usr/l…

---

## [How do u set Copr in 2 VPS?](https://forum.ansible.com/t/how-do-u-set-copr-in-2-vps/17229)

<div class="topic-metadata">

**Author:** [@Ray\_Dobie](https://forum.ansible.com/u/Ray_Dobie)\
**Replies:** 1\
**Last updated:** [January 9, 2015, 10:46pm UTC](https://forum.ansible.com/t/how-do-u-set-copr-in-2-vps/17229 "2015-01-09T22:46:34Z")

</div>

Hi guys, I need to set a Copr for community use, and I got vgologuz’s email said there r new playbooks for Copr: http://infrastructure.fedoraproject.org/infra/ansible/playbooks/groups/copr-backend.yml http://infrastru…

---

## [Run task only if server belong to some group.](https://forum.ansible.com/t/run-task-only-if-server-belong-to-some-group/13561)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 7\
**Last updated:** [January 9, 2015, 10:31pm UTC](https://forum.ansible.com/t/run-task-only-if-server-belong-to-some-group/13561 "2015-01-09T22:31:36Z")

</div>

Hi, I have question whether is possible to run task only if server belong to specific group? — Quick scenario — Lets say that on Inventory I have: \[targets\] srv01 srv02 \[webservers\] srv01 Now I would like to pla…

---

## [Configuring IAM permissions/roles via module](https://forum.ansible.com/t/configuring-iam-permissions-roles-via-module/17232)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 1\
**Last updated:** [January 9, 2015, 8:45pm UTC](https://forum.ansible.com/t/configuring-iam-permissions-roles-via-module/17232 "2015-01-09T20:45:07Z")

</div>

Are there any roles/module for configuring IAM users, roles, permissions, etc?

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

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