Skip to content

Commit 7db5a39

Browse files
committed
Places test variables inside vars/test.yml
All variables inside the playbook's `vars:` where being overwritten by those on `defaults/main.yml`
1 parent c9dd71a commit 7db5a39

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

test.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
- hosts: all
22
vars_files:
3-
- 'defaults/main.yml'
4-
vars:
5-
postgresql_databases:
6-
- name: foobar
7-
postgresql_users:
8-
- name: baz
9-
pass: pass
10-
postgresql_user_privileges:
11-
- name: baz
12-
db: foobar
3+
- defaults/main.yml
4+
- vars/test.yml
135
tasks:
14-
- include: 'tasks/main.yml'
6+
- include: tasks/main.yml
157
handlers:
16-
- include: 'handlers/main.yml'
8+
- include: handlers/main.yml

vars/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
blah: one
3+
postgresql_databases:
4+
- name: foobar
5+
postgresql_users:
6+
- name: baz
7+
pass: pass
8+
postgresql_user_privileges:
9+
- name: baz
10+
db: foobar

0 commit comments

Comments
 (0)