# Latest

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

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

**Page:** 968

---

## [how to set defaults for ec2\_facts when not in AWS ???](https://forum.ansible.com/t/how-to-set-defaults-for-ec2-facts-when-not-in-aws/15280)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 10:00pm UTC](https://forum.ansible.com/t/how-to-set-defaults-for-ec2-facts-when-not-in-aws/15280 "2014-05-21T22:00:39Z")

</div>

Hi, We have our ansible playbooks working with no problem to deploy our servers in Amazon ec2. One of the ansible modules we use is the ec2\_facts in order to configure some files , as for example we use the {{ ansible\_e…

---

## [Node coordination for Consul](https://forum.ansible.com/t/node-coordination-for-consul/15273)

<div class="topic-metadata">

**Author:** [@Brian\_Hicks](https://forum.ansible.com/u/Brian_Hicks)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 9:57pm UTC](https://forum.ansible.com/t/node-coordination-for-consul/15273 "2014-05-21T21:57:31Z")

</div>

I’m new to Ansible, and trying to write a state to set up and bootstrap a Consul cluster. I seem to have the basics down (downloading packages, and all.) However, I’m stuck on the components of the bootstrap process (ht…

---

## [callbacks example, step by step](https://forum.ansible.com/t/callbacks-example-step-by-step/15272)

<div class="topic-metadata">

**Author:** [@JohnP](https://forum.ansible.com/u/JohnP)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 9:56pm UTC](https://forum.ansible.com/t/callbacks-example-step-by-step/15272 "2014-05-21T21:56:30Z")

</div>

Hi All, Can anyone explain “callbacks” mechanism? As I can see, there are a many callbacks files in ansible/plugins/callbacks/\*.py The format of them more or less “similar”. Only the differentiator is the filename. H…

---

## [imported module support code does not exist](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240)

<div class="topic-metadata">

**Author:** [@Cary\_Corse](https://forum.ansible.com/u/Cary_Corse)\
**Replies:** 3\
**Last updated:** [May 21, 2014, 9:53pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240 "2014-05-21T21:53:54Z")

</div>

When I run a playbook containing \` name: Configure instance hosts: elastic-search-test user: ubuntu sudo: yes gather\_facts: true tags: config configure \` I get this error message fatal: \[ec2-54-226-176-175.c…

---

## [Bail out of a play based on a condition](https://forum.ansible.com/t/bail-out-of-a-play-based-on-a-condition/15271)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 6\
**Last updated:** [May 21, 2014, 9:53pm UTC](https://forum.ansible.com/t/bail-out-of-a-play-based-on-a-condition/15271 "2014-05-21T21:53:30Z")

</div>

I was just wondering if there's a bail-out or break module/keyword that I can use to stop processing a play on that host after a certain condition is met. For instance, I'm doing some setup on some servers where some …

---

## [ansible-playbook --limit limitations?](https://forum.ansible.com/t/ansible-playbook-limit-limitations/15254)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 6\
**Last updated:** [May 21, 2014, 9:47pm UTC](https://forum.ansible.com/t/ansible-playbook-limit-limitations/15254 "2014-05-21T21:47:40Z")

</div>

Hi, I've got a fairly complex playbook which uses Ansibles orchestration features (i.e. "for n in groups\['some group'\] ....") and a big enough stack that I'd like to pass '--limit' to my plays as we build out configs…

---

## [Cannot change to '/root/..' with sudo\_user](https://forum.ansible.com/t/cannot-change-to-root-with-sudo-user/15299)

<div class="topic-metadata">

**Author:** [@Ryan\_Stewart](https://forum.ansible.com/u/Ryan_Stewart)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 9:47pm UTC](https://forum.ansible.com/t/cannot-change-to-root-with-sudo-user/15299 "2014-05-21T21:47:27Z")

</div>

I’m running a playbook where remote\_user is root, and on some tasks, I use “sudo: yes” with “sudo\_user: jenkins” to do some per-user setup. At the moment, I’m trying to clone a git repo. Whether I use the git module or t…

---

## [Transfering large files from one remote machine to another](https://forum.ansible.com/t/transfering-large-files-from-one-remote-machine-to-another/15298)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 9:46pm UTC](https://forum.ansible.com/t/transfering-large-files-from-one-remote-machine-to-another/15298 "2014-05-21T21:46:30Z")

</div>

I was trying to do this via ssh or scp but that's not working (see https://groups.google.com/forum/#!msg/ansible-project/WPVGypBbwlU/mYN5B4wp4ogJ). I need to transfer a file on one server (who's ip is determined via a …

---

## [Ansible Vault needs an .ansible.cfg entry](https://forum.ansible.com/t/ansible-vault-needs-an-ansible-cfg-entry/15282)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 5\
**Last updated:** [May 21, 2014, 9:38pm UTC](https://forum.ansible.com/t/ansible-vault-needs-an-ansible-cfg-entry/15282 "2014-05-21T21:38:46Z")

</div>

As was detailed in: https://github.com/ansible/ansible/issues/6980 and https://github.com/ansible/ansible/issues/7456 This really needs to go in the ansible config. Having to manually type/copy this on every run, par…

---

## [Ansible Lists and Sets problem working with Set types in Ansible](https://forum.ansible.com/t/ansible-lists-and-sets-problem-working-with-set-types-in-ansible/15295)

<div class="topic-metadata">

**Author:** [@Ryan\_Hobbs](https://forum.ansible.com/u/Ryan_Hobbs)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 8:50pm UTC](https://forum.ansible.com/t/ansible-lists-and-sets-problem-working-with-set-types-in-ansible/15295 "2014-05-21T20:50:22Z")

</div>

I am attempting to create a unique list of values between two lists and I am creating a set based on the documentation described here http://docs.ansible.com/playbooks\_variables.html#set-theory-filters According to the …

---

## [ControlMaster settings not taking affect](https://forum.ansible.com/t/controlmaster-settings-not-taking-affect/15285)

<div class="topic-metadata">

**Author:** [@Greg\_Hurrell](https://forum.ansible.com/u/Greg_Hurrell)\
**Replies:** 3\
**Last updated:** [May 21, 2014, 4:49pm UTC](https://forum.ansible.com/t/controlmaster-settings-not-taking-affect/15285 "2014-05-21T16:49:09Z")

</div>

Hi, I’ve noticed that Ansible isn’t using ControlMaster in my local setup, making it slower than it needs to be. This is Ansible 1.6.1, running on OS X 10.9.3 and connecting to remote hosts running CentOS 6. If I conn…

---

## [Template and Copy modules failing when using su](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 4:35pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290 "2014-05-21T16:35:06Z")

</div>

I thought this would be the case when su got introduced, I just forgot that atomic copy had the check. You are absolutely correct, the check should be for both sudo and su, it is probably needed in more spots than just a…

---

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

<div class="topic-metadata">

**Author:** [@Ian\_Kent](https://forum.ansible.com/u/Ian_Kent)\
**Replies:** 10\
**Last updated:** [May 21, 2014, 3:03pm UTC](https://forum.ansible.com/t/ssh-connection-problem/15244 "2014-05-21T15:03:29Z")

</div>

Hi I’m having some issues getting ansible to connect using SSH, but it only seems to affect one particular playbook. The odd thing is I can connect manually using ssh, but ansible fails with a timed out error. Other pla…

---

## [Flatten a dict-list in a template](https://forum.ansible.com/t/flatten-a-dict-list-in-a-template/15288)

<div class="topic-metadata">

**Author:** [@Joachim\_Friberg](https://forum.ansible.com/u/Joachim_Friberg)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 11:34am UTC](https://forum.ansible.com/t/flatten-a-dict-list-in-a-template/15288 "2014-05-21T11:34:19Z")

</div>

So I’m trying to setup a shinken-enviroment and it has a similar syntax to Nagios. In the contactgroups.cfg I need to put all my admins on one line. Is there anyway to take entries from a list of dicts and flatten them…

---

## [ansible now supports su as an alternative to sudo](https://forum.ansible.com/t/ansible-now-supports-su-as-an-alternative-to-sudo/14393)

<div class="topic-metadata">

**Author:** [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Replies:** 16\
**Last updated:** [May 21, 2014, 5:17am UTC](https://forum.ansible.com/t/ansible-now-supports-su-as-an-alternative-to-sudo/14393 "2014-05-21T05:17:38Z")

</div>

Thanks to Paul for this one! Basic usage is similar to sudo … hosts: el6.lab.net gather\_facts: False su: yes su\_user: root tasks: shell: whoami or pass as command line parameters … ansible-playbook --su --su-use…

---

## [Assigning one variable to another](https://forum.ansible.com/t/assigning-one-variable-to-another/15276)

<div class="topic-metadata">

**Author:** [@James\_Perrin](https://forum.ansible.com/u/James_Perrin)\
**Replies:** 3\
**Last updated:** [May 20, 2014, 7:10pm UTC](https://forum.ansible.com/t/assigning-one-variable-to-another/15276 "2014-05-20T19:10:44Z")

</div>

Hi, I want to ask what is the correct syntax for assigning one variable to another? I wish to do this in roles/for/vars/main.yml. It should be something like: ip\_address: {{ static\_ip\_address }} but I think I’ve read…

---

## [Production/Staging vs Development](https://forum.ansible.com/t/production-staging-vs-development/15281)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 4\
**Last updated:** [May 20, 2014, 5:49pm UTC](https://forum.ansible.com/t/production-staging-vs-development/15281 "2014-05-20T17:49:37Z")

</div>

Hi! Here I read about how to manage differences between staging and production servers. As I understand it boils down to defining different variables to different servers. But what is the good way to handle differences…

---

## [Choosing and adhoc host without inventory file](https://forum.ansible.com/t/choosing-and-adhoc-host-without-inventory-file/15274)

<div class="topic-metadata">

**Author:** [@Roger\_Qiu](https://forum.ansible.com/u/Roger_Qiu)\
**Replies:** 2\
**Last updated:** [May 20, 2014, 4:54pm UTC](https://forum.ansible.com/t/choosing-and-adhoc-host-without-inventory-file/15274 "2014-05-20T16:54:58Z")

</div>

Sometimes I just want to contact a random host (this host’s IP is ephemeral/discovered during the operation), and execute an adhoc module. Is there a way to do this? It seems Ansible always requires an inventory file, …

---

## [Multiple lines in subelements](https://forum.ansible.com/t/multiple-lines-in-subelements/15277)

<div class="topic-metadata">

**Author:** [@Joachim\_Friberg](https://forum.ansible.com/u/Joachim_Friberg)\
**Replies:** 6\
**Last updated:** [May 20, 2014, 2:48pm UTC](https://forum.ansible.com/t/multiple-lines-in-subelements/15277 "2014-05-20T14:48:50Z")

</div>

Hi, I’m trying to push the limits of “subelements” but I can’t figure out how… Part of my task/main.yml \` name: Prepare for Shinken|user user: name={{ item.0.name }} comment={{ item.0.comment }} group={{ item.0.g…

---

## [Initial provisioning/user setup via root remote\_user, continued CM via other remote\_user?](https://forum.ansible.com/t/initial-provisioning-user-setup-via-root-remote-user-continued-cm-via-other-remote-user/15279)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 0\
**Last updated:** [May 20, 2014, 12:52pm UTC](https://forum.ansible.com/t/initial-provisioning-user-setup-via-root-remote-user-continued-cm-via-other-remote-user/15279 "2014-05-20T12:52:52Z")

</div>

You can run a ping task with ignore errors and register result, then conditionally create the user with diff remote user based on that. Brian Coca

---

## [Rolling updates with pause](https://forum.ansible.com/t/rolling-updates-with-pause/15275)

<div class="topic-metadata">

**Author:** [@Moti\_Heller](https://forum.ansible.com/u/Moti_Heller)\
**Replies:** 2\
**Last updated:** [May 20, 2014, 12:45pm UTC](https://forum.ansible.com/t/rolling-updates-with-pause/15275 "2014-05-20T12:45:24Z")

</div>

Hi, I have the following requirement for deploying a java web application on multiple hosts: Copy the deployed artifact (war file) in parallel to the relevant hosts to a temp folder Deploy the app (stop tomcat, delete…

---

## [How to call the "correct" callback from several callback files?, a.k.a. clear and simple playbook example](https://forum.ansible.com/t/how-to-call-the-correct-callback-from-several-callback-files-a-k-a-clear-and-simple-playbook-example/15269)

<div class="topic-metadata">

**Author:** [@JohnP](https://forum.ansible.com/u/JohnP)\
**Replies:** 1\
**Last updated:** [May 20, 2014, 12:48am UTC](https://forum.ansible.com/t/how-to-call-the-correct-callback-from-several-callback-files-a-k-a-clear-and-simple-playbook-example/15269 "2014-05-20T00:48:25Z")

</div>

Hi All, I am trying to get my head around of calling the correct “callback” file or // and class from multiple callbacks in the plugins/callbacks files. More verbose explanation that if I write my own callback file (cl…

---

## [db host wildcard](https://forum.ansible.com/t/db-host-wildcard/15253)

<div class="topic-metadata">

**Author:** [@Wynne\_Pirini](https://forum.ansible.com/u/Wynne_Pirini)\
**Replies:** 11\
**Last updated:** [May 19, 2014, 8:14pm UTC](https://forum.ansible.com/t/db-host-wildcard/15253 "2014-05-19T20:14:58Z")

</div>

Hi there I’m trying to set up mysql so that I can access the database from a remote client. This is how I manually do that: GRANT ALL PRIVILEGES ON . TO ‘root’@‘%’ IDENTIFIED BY ‘some pass’ WITH GRANT OPTION; How do …

---

## [User Creation: Better way to do this?](https://forum.ansible.com/t/user-creation-better-way-to-do-this/15250)

<div class="topic-metadata">

**Author:** [@Raja\_Mukherjee](https://forum.ansible.com/u/Raja_Mukherjee)\
**Replies:** 10\
**Last updated:** [May 19, 2014, 2:03pm UTC](https://forum.ansible.com/t/user-creation-better-way-to-do-this/15250 "2014-05-19T14:03:28Z")

</div>

Newbie to ansible… Use case: at the create time users are assigned a default password and will be asked to change the password at the first login What I came up with (in a role)… name: Create User user: name=“{{ it…

---

## [authorized\_key: Not creating .ssh directory - while saying success](https://forum.ansible.com/t/authorized-key-not-creating-ssh-directory-while-saying-success/15260)

<div class="topic-metadata">

**Author:** [@Raja\_Mukherjee](https://forum.ansible.com/u/Raja_Mukherjee)\
**Replies:** 3\
**Last updated:** [May 19, 2014, 2:01pm UTC](https://forum.ansible.com/t/authorized-key-not-creating-ssh-directory-while-saying-success/15260 "2014-05-19T14:01:37Z")

</div>

Platform: raja@ansible-control:~/ansible$ cat /etc/lsb-release | grep -i desc | cut -d’=’ -f2 “Ubuntu 14.04 LTS” Ansible is installed through PPA raja@ansible-control:~/ansible$ ansible --version ansible 1.6 roles/…

---

## [Calling "sub" variable in task](https://forum.ansible.com/t/calling-sub-variable-in-task/15267)

<div class="topic-metadata">

**Author:** [@Martin\_Bozic](https://forum.ansible.com/u/Martin_Bozic)\
**Replies:** 1\
**Last updated:** [May 19, 2014, 11:45am UTC](https://forum.ansible.com/t/calling-sub-variable-in-task/15267 "2014-05-19T11:45:12Z")

</div>

Hi, I'm trying to deploy Apache with virtualhosts and their aliases and directories. In order to do so I've setup vars host\_vars, Apache vhost config template and task file. With this setup I can create complete confi…

---

## [Interfaces Between Roles](https://forum.ansible.com/t/interfaces-between-roles/15249)

<div class="topic-metadata">

**Author:** [@Andrew\_Fong](https://forum.ansible.com/u/Andrew_Fong)\
**Replies:** 4\
**Last updated:** [May 19, 2014, 8:15am UTC](https://forum.ansible.com/t/interfaces-between-roles/15249 "2014-05-19T08:15:18Z")

</div>

Hi, I’m in the process of breaking down my really long playbook into different roles and I’m wondering if there are any best practices for specifying how related roles should interact. For example, suppose I have a Dja…

---

## [suppressing autostart with debian packages](https://forum.ansible.com/t/suppressing-autostart-with-debian-packages/13293)

<div class="topic-metadata">

**Author:** [@Abhijit\_Menon-Sen2](https://forum.ansible.com/u/Abhijit_Menon-Sen2)\
**Replies:** 5\
**Last updated:** [May 19, 2014, 4:23am UTC](https://forum.ansible.com/t/suppressing-autostart-with-debian-packages/13293 "2014-05-19T04:23:28Z")

</div>

Hi. My playbook uses an apt: action to install a bunch of Debian packages. Some of these packages start the daemon automatically with the default configuration. For my purposes, I want to avoid this. One way to do th…

---

## [Ansible health check module for HTTP servers](https://forum.ansible.com/t/ansible-health-check-module-for-http-servers/15261)

<div class="topic-metadata">

**Author:** [@Nadav\_Sr\_Samet](https://forum.ansible.com/u/Nadav_Sr_Samet)\
**Replies:** 3\
**Last updated:** [May 19, 2014, 4:14am UTC](https://forum.ansible.com/t/ansible-health-check-module-for-http-servers/15261 "2014-05-19T04:14:48Z")

</div>

Hi, I’ve put together an Ansible module that performs health check on HTTP servers: https://github.com/trueaccord/ansible-health-check We use it in production as part of our continuous deployment process: each time we …

---

## [AWS tagging needed to work dynamically with Rackspace instances?](https://forum.ansible.com/t/aws-tagging-needed-to-work-dynamically-with-rackspace-instances/15258)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 3\
**Last updated:** [May 19, 2014, 3:15am UTC](https://forum.ansible.com/t/aws-tagging-needed-to-work-dynamically-with-rackspace-instances/15258 "2014-05-19T03:15:26Z")

</div>

Hi, Will Thames has written very helpfully (for me) on how to use Ansible to interact with newly provisioned EC2 servers dynamically. I’d like to dupe Will’s approach for some other cloud providers, or at least, Racksp…

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

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