From 3aefdb0e871f1f582cc7c9cd0e9e74d573479766 Mon Sep 17 00:00:00 2001 From: Derek Carter Date: Thu, 21 Jun 2012 16:50:57 -0400 Subject: [PATCH] added global vars to best practice --- rst/bestpractices.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rst/bestpractices.rst b/rst/bestpractices.rst index 9a7f3f6c0f..3d1bdf5568 100644 --- a/rst/bestpractices.rst +++ b/rst/bestpractices.rst @@ -19,6 +19,7 @@ Playbooks should be organized like this:: (root of source control repository) + global_vars.yml # variables for all playbooks acme/ # each playbook has a directory setup.yml # playbook to manage the service @@ -32,7 +33,7 @@ Playbooks should be organized like this:: etc_other_conf_other.conf vars/ - main.yml + main.yml # variables specific to this playbook handlers/ main.yml @@ -52,6 +53,7 @@ The acme/setup.yml playbook would be as simple as:: user: root vars_files + - ../global_vars.yml - vars/main.yml tasks: - include: tasks/setup.yml