Skip to content

Commit

Permalink
Places test variables inside vars/test.yml
Browse files Browse the repository at this point in the history
All variables inside the playbook's `vars:` where
being overwritten by those on `defaults/main.yml`
  • Loading branch information
leonelgalan committed Jan 29, 2015
1 parent c9dd71a commit 7db5a39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
- hosts: all
vars_files:
- 'defaults/main.yml'
vars:
postgresql_databases:
- name: foobar
postgresql_users:
- name: baz
pass: pass
postgresql_user_privileges:
- name: baz
db: foobar
- defaults/main.yml
- vars/test.yml
tasks:
- include: 'tasks/main.yml'
- include: tasks/main.yml
handlers:
- include: 'handlers/main.yml'
- include: handlers/main.yml
10 changes: 10 additions & 0 deletions vars/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
blah: one
postgresql_databases:
- name: foobar
postgresql_users:
- name: baz
pass: pass
postgresql_user_privileges:
- name: baz
db: foobar

0 comments on commit 7db5a39

Please sign in to comment.