From 9bb8e8e36d709115bc6a7b41d4ea4c848548fa61 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 8 May 2012 00:09:04 -0400 Subject: [PATCH] Don't use template syntax in non-templates, it's not the default anymore --- examples/playbooks/intermediate_example.yml | 2 +- examples/playbooks/selective_file_sources.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/playbooks/intermediate_example.yml b/examples/playbooks/intermediate_example.yml index 0eab7b185b0..4460603de9f 100644 --- a/examples/playbooks/intermediate_example.yml +++ b/examples/playbooks/intermediate_example.yml @@ -34,7 +34,7 @@ # we could also have done something like: # - include: wordpress.yml user=timmy - # and had access to the template variable {{ user }} in the + # and had access to the template variable $user in the # included file, if we wanted to. Variables from vars # and vars_files are also available inside include files diff --git a/examples/playbooks/selective_file_sources.yml b/examples/playbooks/selective_file_sources.yml index 0dd346985ee..931a366b0d1 100644 --- a/examples/playbooks/selective_file_sources.yml +++ b/examples/playbooks/selective_file_sources.yml @@ -13,13 +13,13 @@ first_available_file: # first see if we have a file for this specific host - - /srv/whatever/{{ ansible_hostname }}.conf + - /srv/whatever/${ansible_hostname}.conf # next try to load something like CentOS6.2.conf - - /srv/whatever/{{ ansible_distribution }}{{ ansible_distribution_version }}.conf + - /srv/whatever/${ansible_distribution}${ansible_distribution_version}.conf # next see if there's a CentOS.conf - - /srv/whatever/{{ ansible_distribution }}.conf + - /srv/whatever/${ansible_distribution}.conf # finally give up and just use something generic - /srv/whatever/default