From 7e2d6c00509af2d3fe3365ca1127b57887d9b632 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 20 Oct 2012 11:16:05 -0400 Subject: [PATCH] Clarify first_available_file is only for copy/template --- docsite/rst/playbooks2.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docsite/rst/playbooks2.rst b/docsite/rst/playbooks2.rst index f3b8f04ede3..20db976b80c 100644 --- a/docsite/rst/playbooks2.rst +++ b/docsite/rst/playbooks2.rst @@ -406,11 +406,9 @@ Selecting Files And Templates Based On Variables ```````````````````````````````````````````````` Sometimes a configuration file you want to copy, or a template you will use may depend on a variable. -The following construct selects the first available file appropriate for the variables of a given host, -which is often much cleaner than putting a lot of if conditionals in a template. +The following construct selects the first available file appropriate for the variables of a given host, which is often much cleaner than putting a lot of if conditionals in a template. -The following example shows how to template out a configuration file that was very different between, say, -CentOS and Debian:: +The following example shows how to template out a configuration file that was very different between, say, CentOS and Debian:: - name: template a file action: template src=$item dest=/etc/myapp/foo.conf @@ -418,6 +416,7 @@ CentOS and Debian:: - /srv/templates/myapp/${ansible_distribution}.conf - /srv/templates/myapp/default.conf +first_available_file is only available to the copy and template modules. Asynchronous Actions and Polling ````````````````````````````````