# Latest

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

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

**Page:** 987

---

## [Complicate site with many different configs](https://forum.ansible.com/t/complicate-site-with-many-different-configs/14702)

<div class="topic-metadata">

**Author:** [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Replies:** 0\
**Last updated:** [March 5, 2014, 12:20am UTC](https://forum.ansible.com/t/complicate-site-with-many-different-configs/14702 "2014-03-05T00:20:06Z")

</div>

Hey All, The project I’m working on has staging servers and productions servers. The staging servers need nginx/php/mysql, but no varnish. The production servers need nginx/php/varnish. I’ve written some generic playboo…

---

## [ansible.cfg ignored in Mac OS X 10.9](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361)

<div class="topic-metadata">

**Author:** [@Marco\_Garces](https://forum.ansible.com/u/Marco_Garces)\
**Replies:** 9\
**Last updated:** [March 4, 2014, 11:38pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361 "2014-03-04T23:38:57Z")

</div>

Hi there, I am using ansible from github checkout (ansible 1.5 (devel 87e7b9e5cc) last updated 2014/01/16 15:40:55 (GMT +200)), and doing the normal “source $ANSIBLE\_HOME/hacking/env-setup” to get things working. My OS…

---

## [when: filesize(/var/log/apache2/access.log) \> 5Mb](https://forum.ansible.com/t/when-filesize-var-log-apache2-access-log-5mb/14693)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 5\
**Last updated:** [March 4, 2014, 10:33pm UTC](https://forum.ansible.com/t/when-filesize-var-log-apache2-access-log-5mb/14693 "2014-03-04T22:33:11Z")

</div>

What is the way to conditionally run task based on filesystem check on remote system? I want something like this, but of course it doesn’t work: \` tasks: name: cleaning up the logs that exceed 5Mb command: cat /dev…

---

## [building up dynamic structure](https://forum.ansible.com/t/building-up-dynamic-structure/14701)

<div class="topic-metadata">

**Author:** [@David\_Birdsong](https://forum.ansible.com/u/David_Birdsong)\
**Replies:** 0\
**Last updated:** [March 4, 2014, 9:13pm UTC](https://forum.ansible.com/t/building-up-dynamic-structure/14701 "2014-03-04T21:13:58Z")

</div>

I’m trying to figure out how to emit a configuration file for jmxtrans. The config is json, the values I need to fill in are known by ansible, but I’m having a hell of a time building up the dict structure and dumping to…

---

## [Firewall Module?](https://forum.ansible.com/t/firewall-module/14697)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 8\
**Last updated:** [March 4, 2014, 5:51pm UTC](https://forum.ansible.com/t/firewall-module/14697 "2014-03-04T17:51:38Z")

</div>

Do the Ansible developers have plans to build a firewall module? I think one is strongly needed. Right now we have to use a variety of kludges to get it this to work. Firewall management is an essential sys admin task an…

---

## [Get file](https://forum.ansible.com/t/get-file/14694)

<div class="topic-metadata">

**Author:** [@user82](https://forum.ansible.com/u/user82)\
**Replies:** 1\
**Last updated:** [March 4, 2014, 5:45pm UTC](https://forum.ansible.com/t/get-file/14694 "2014-03-04T17:45:01Z")

</div>

Good day everyone. I do not understand why can not execute playbook and ask for your help. Playbook: --- - hosts: web sudo: true tasks: - name: "Download UI" command: wget --auth-no-challenge …

---

## [Using inventory shortcut -i "host," on ansible 1.5](https://forum.ansible.com/t/using-inventory-shortcut-i-host-on-ansible-1-5/14698)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 1\
**Last updated:** [March 4, 2014, 3:33pm UTC](https://forum.ansible.com/t/using-inventory-shortcut-i-host-on-ansible-1-5/14698 "2014-03-04T15:33:12Z")

</div>

Hi, I guess it has something to do with new localhost feature of ansible 1.5 In playbook with hosts: localhost:host if i specify -i “host,” the play will be done for both localhost and host GATHERING FACTS \*\*\*\*\*\*\*\*\*…

---

## [Get files error](https://forum.ansible.com/t/get-files-error/14695)

<div class="topic-metadata">

**Author:** [@user82](https://forum.ansible.com/u/user82)\
**Replies:** 0\
**Last updated:** [March 4, 2014, 12:11pm UTC](https://forum.ansible.com/t/get-files-error/14695 "2014-03-04T12:11:48Z")

</div>

Good day everyone. I do not understand why can not execute playbook and ask for your help. Playbook: --- - hosts: web sudo: true tasks: - name: "Download UI" command: wget --auth-no-challenge …

---

## [ansible ec2 module: using a variable inside an instance\_ids dictionary](https://forum.ansible.com/t/ansible-ec2-module-using-a-variable-inside-an-instance-ids-dictionary/14689)

<div class="topic-metadata">

**Author:** [@i\_iordanov](https://forum.ansible.com/u/i_iordanov)\
**Replies:** 1\
**Last updated:** [March 4, 2014, 1:24am UTC](https://forum.ansible.com/t/ansible-ec2-module-using-a-variable-inside-an-instance-ids-dictionary/14689 "2014-03-04T01:24:05Z")

</div>

Hey, I would like to tag aws machines, but use a variable for the value of the tag. Is that possible? I.e. instead of: instance\_ids={“key1”:“value1”, “key2”:“value2”} I’d like to see something like: instance\_ids={“k…

---

## [Specify host for a playbook task](https://forum.ansible.com/t/specify-host-for-a-playbook-task/14688)

<div class="topic-metadata">

**Author:** [@Michael\_Mahemoff](https://forum.ansible.com/u/Michael_Mahemoff)\
**Replies:** 2\
**Last updated:** [March 3, 2014, 9:38pm UTC](https://forum.ansible.com/t/specify-host-for-a-playbook-task/14688 "2014-03-03T21:38:36Z")

</div>

Is there any way to override the current host for a given task? I want to set up a recurring database copy, so I need to run some commands within a playbook (all of which apply only if a variable is turned on at the com…

---

## [no change notify](https://forum.ansible.com/t/no-change-notify/14687)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 4\
**Last updated:** [March 3, 2014, 7:26pm UTC](https://forum.ansible.com/t/no-change-notify/14687 "2014-03-03T19:26:07Z")

</div>

Is it possible to notify handler if task didn’t change anything? I’m creating a backup prior to executing a task, and want to remove it if nothing changed. Currently I do it like so: \` command: cp {{backsrc}} {{bac…

---

## [Getting default library path (or how to override a module)](https://forum.ansible.com/t/getting-default-library-path-or-how-to-override-a-module/14686)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 0\
**Last updated:** [March 3, 2014, 6:10pm UTC](https://forum.ansible.com/t/getting-default-library-path-or-how-to-override-a-module/14686 "2014-03-03T18:10:21Z")

</div>

Ran into an error in the docker\_image module. I'm working on a PR, but I'd like to test my changes first. So I did this in my Ansible config: \[defaults\] library = library My goal is to check the revised docker\_image m…

---

## [frustrated](https://forum.ansible.com/t/frustrated/14678)

<div class="topic-metadata">

**Author:** [@David\_Marti](https://forum.ansible.com/u/David_Marti)\
**Replies:** 2\
**Last updated:** [March 3, 2014, 2:11pm UTC](https://forum.ansible.com/t/frustrated/14678 "2014-03-03T14:11:57Z")

</div>

Can anybody explain what this error means and why i can’t run anything in ansible: mb-dmarti:tasks dmarti$ ansible -i sudo\_hosts sudo\_site.yml --list-hosts Traceback (most recent call last): File “/opt/ansible/ansible…

---

## [Variable precedence: inventory versus host\_vars](https://forum.ansible.com/t/variable-precedence-inventory-versus-host-vars/13718)

<div class="topic-metadata">

**Author:** [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Replies:** 6\
**Last updated:** [March 3, 2014, 2:08pm UTC](https://forum.ansible.com/t/variable-precedence-inventory-versus-host-vars/13718 "2014-03-03T14:08:08Z")

</div>

Something which is very unclear at either http://www.ansibleworks.com/docs/playbooks\_variables.html#variable-precedence-where-should-i-put-a-variable or http://www.ansibleworks.com/docs/intro\_inventory.html#splitting-…

---

## [New Amazon RDS modules:](https://forum.ansible.com/t/new-amazon-rds-modules/14682)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 0\
**Last updated:** [March 3, 2014, 1:20am UTC](https://forum.ansible.com/t/new-amazon-rds-modules/14682 "2014-03-03T01:20:50Z")

</div>

I’ve authored two new modules to enable Ansible management of RDS parameter and subnet groups. For the interested, here’s the pull request: https://github.com/ansible/ansible/pull/6242 Regards, -scott

---

## [accessing a variable declared for host with {{ }} does not work](https://forum.ansible.com/t/accessing-a-variable-declared-for-host-with-does-not-work/14681)

<div class="topic-metadata">

**Author:** [@i\_iordanov](https://forum.ansible.com/u/i_iordanov)\
**Replies:** 7\
**Last updated:** [March 2, 2014, 10:19pm UTC](https://forum.ansible.com/t/accessing-a-variable-declared-for-host-with-does-not-work/14681 "2014-03-02T22:19:41Z")

</div>

Hey guys, If I have the following in an inventory file: \[somehostgroup\] somehost somevariable=1234 I can access the variable with: ${somevariable} But I cannot access the variable with: {{ somevariable }} as I wo…

---

## [Serving files from a central asset server](https://forum.ansible.com/t/serving-files-from-a-central-asset-server/14672)

<div class="topic-metadata">

**Author:** [@Jason\_Sheedy](https://forum.ansible.com/u/Jason_Sheedy)\
**Replies:** 8\
**Last updated:** [March 2, 2014, 7:41pm UTC](https://forum.ansible.com/t/serving-files-from-a-central-asset-server/14672 "2014-03-02T19:41:57Z")

</div>

Hi guys, I’m quite new to Ansible and would like to perform the following in an idempotent fashion. I would basically like to minimise the number of downloads I need to perform from the web for certain file assets, so m…

---

## [Request for feedback: support for realtime output pull request](https://forum.ansible.com/t/request-for-feedback-support-for-realtime-output-pull-request/14597)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein](https://forum.ansible.com/u/Lorin_Hochstein)\
**Replies:** 7\
**Last updated:** [March 2, 2014, 7:27pm UTC](https://forum.ansible.com/t/request-for-feedback-support-for-realtime-output-pull-request/14597 "2014-03-02T19:27:08Z")

</div>

Hi all: I submitted a pull request to implement realtime output: https://github.com/ansible/ansible/pull/6035/ It implements this feature request: https://github.com/ansible/ansible/issues/3887 Since the proposed patc…

---

## [(library/ec2) VPC Enhanced Support](https://forum.ansible.com/t/library-ec2-vpc-enhanced-support/12479)

<div class="topic-metadata">

**Author:** [@Samuel\_Sampaio](https://forum.ansible.com/u/Samuel_Sampaio)\
**Replies:** 4\
**Last updated:** [March 1, 2014, 6:08pm UTC](https://forum.ansible.com/t/library-ec2-vpc-enhanced-support/12479 "2014-03-01T18:08:50Z")

</div>

Hi EveryOne! I’m Samuel, AWS DevOps, new in this community. Firstly i’d like to thank the helping of IRC. I have some clients with AWS/EC2 infrastructure, generally with VPC Private Cloud, ip addresses manageable and…

---

## [lineinfile help (file doesn't exist)](https://forum.ansible.com/t/lineinfile-help-file-doesnt-exist/14668)

<div class="topic-metadata">

**Author:** [@Matthew\_R](https://forum.ansible.com/u/Matthew_R)\
**Replies:** 4\
**Last updated:** [March 1, 2014, 3:33pm UTC](https://forum.ansible.com/t/lineinfile-help-file-doesnt-exist/14668 "2014-03-01T15:33:29Z")

</div>

Hi everyone, I’m still a bit new to Ansible. I really like it, but it can be a little flummoxing at times for a beginner ;). For example, I am probably going about this the wrong way, but consider these lines from a pl…

---

## [Can ansible retry to skip all previous successful roles?](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673)

<div class="topic-metadata">

**Author:** [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Replies:** 2\
**Last updated:** [March 1, 2014, 1:49am UTC](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673 "2014-03-01T01:49:41Z")

</div>

Hi, Here I try to use ansible to deploy some apps, it has multi steps, for examples roles: common nginxny … … app … if deploy failed at app steps, retry will go through all steps from beginning. Any idea to retry st…

---

## [Legacy template support removed on 1.6 (devel)](https://forum.ansible.com/t/legacy-template-support-removed-on-1-6-devel/14680)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [February 28, 2014, 11:52pm UTC](https://forum.ansible.com/t/legacy-template-support-removed-on-1-6-devel/14680 "2014-02-28T23:52:42Z")

</div>

Hi all, Here’s a quick update for anyone consuming the development branch now that 1.6 has just started with the release of 1.5. Legacy perl style variables has been deprecated for a couple of releases, issuing warning…

---

## [When to use role dependencies?](https://forum.ansible.com/t/when-to-use-role-dependencies/14649)

<div class="topic-metadata">

**Author:** [@chris\_snyder](https://forum.ansible.com/u/chris_snyder)\
**Replies:** 2\
**Last updated:** [February 28, 2014, 10:32pm UTC](https://forum.ansible.com/t/when-to-use-role-dependencies/14649 "2014-02-28T22:32:37Z")

</div>

I’m trying to figure out when and how best to use role dependencies. Currently I have a single role for handling my Postfix configuration on ALL my hosts; some are classified as ‘mail-servers’ and the rest as ‘mail-clie…

---

## [Ansible XenServer VM Playbook & Guide Posted](https://forum.ansible.com/t/ansible-xenserver-vm-playbook-guide-posted/14218)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 2\
**Last updated:** [February 28, 2014, 10:04pm UTC](https://forum.ansible.com/t/ansible-xenserver-vm-playbook-guide-posted/14218 "2014-02-28T22:04:50Z")

</div>

Hello, I just posted an in-depth guide to automating Xen VM creation and provisioning using Ansible at http://www.sharknet.us/blog/2013/12/13/how-to-create-xen-vms-using-ansible/ . My guide shows how to create a VM from…

---

## [Error in playbook causes handlers not to run](https://forum.ansible.com/t/error-in-playbook-causes-handlers-not-to-run/14032)

<div class="topic-metadata">

**Author:** [@nafg](https://forum.ansible.com/u/nafg)\
**Replies:** 8\
**Last updated:** [February 28, 2014, 8:32pm UTC](https://forum.ansible.com/t/error-in-playbook-causes-handlers-not-to-run/14032 "2014-02-28T20:32:40Z")

</div>

Hi. I have a playbook which had a task (template) with a handler (restart a service), and another task (copy), which had a typo. When I ran ansible-playbook, it reported the error and did not trigger the handler. However…

---

## [Permission denied using ansible-vault edit](https://forum.ansible.com/t/permission-denied-using-ansible-vault-edit/14667)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 3\
**Last updated:** [February 28, 2014, 6:52pm UTC](https://forum.ansible.com/t/permission-denied-using-ansible-vault-edit/14667 "2014-02-28T18:52:59Z")

</div>

I can encrypt and decrypt but i haven’t been able to get edit to work. I’m running on a mac. In my bash\_profile i have aliases to sublime ---------- .bash\_profile -------------- alias edit=‘/Applications/Sublime\\ Text…

---

## [Role templates to reduce boilerplate](https://forum.ansible.com/t/role-templates-to-reduce-boilerplate/14675)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 1\
**Last updated:** [February 28, 2014, 5:13pm UTC](https://forum.ansible.com/t/role-templates-to-reduce-boilerplate/14675 "2014-02-28T17:13:54Z")

</div>

Hi, TL;DR: I'd like to factor out the commonalities of my role definitions into re-useable templates and I was wondering what the best way to do this is. My current setup follows the canonical role setup with a commo…

---

## [Merge pull request "allow per-host sudo operation"](https://forum.ansible.com/t/merge-pull-request-allow-per-host-sudo-operation/14676)

<div class="topic-metadata">

**Author:** [@muffi\_muff](https://forum.ansible.com/u/muffi_muff)\
**Replies:** 0\
**Last updated:** [February 28, 2014, 5:12pm UTC](https://forum.ansible.com/t/merge-pull-request-allow-per-host-sudo-operation/14676 "2014-02-28T17:12:43Z")

</div>

Hello, I would like to do some vote-catching for the pull request “allow per-host sudo operation”. Milan committed a nice change that enables the user to configure ansible\_sudo and ansible\_sudo\_user on a per host basis…

---

## [Module update\_alternatives for Debian/Ubuntu](https://forum.ansible.com/t/module-update-alternatives-for-debian-ubuntu/12056)

<div class="topic-metadata">

**Author:** [@Philipp\_Grau](https://forum.ansible.com/u/Philipp_Grau)\
**Replies:** 9\
**Last updated:** [February 28, 2014, 2:05pm UTC](https://forum.ansible.com/t/module-update-alternatives-for-debian-ubuntu/12056 "2014-02-28T14:05:12Z")

</div>

Hello, to get my feet wet with ansible I wrote a small module that handles the update-alternative command (http://www.debian-administration.org/articles/91) on Debian/Ubuntu systems. It is about setting the default a…

---

## [SyntaxError with local\_action](https://forum.ansible.com/t/syntaxerror-with-local-action/14674)

<div class="topic-metadata">

**Author:** [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Replies:** 1\
**Last updated:** [February 28, 2014, 2:02pm UTC](https://forum.ansible.com/t/syntaxerror-with-local-action/14674 "2014-02-28T14:02:26Z")

</div>

I was following rsync example from https://github.com/ansible/ansible/pull/2508 to recursively transfer files. I added following lines to my tasks name: copy generic config files for freeswitch sudo: no local\_a…

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

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