Skip to content

Commit

Permalink
added global vars to best practice
Browse files Browse the repository at this point in the history
  • Loading branch information
goozbach committed Jun 21, 2012
1 parent 21381fc commit 3aefdb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rst/bestpractices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3aefdb0

Please sign in to comment.