-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME.txt
43 lines (33 loc) · 1 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
RoleA is designed to have at least one of everything.
roleA/defaults/main.yml
Sets defA.
roleA/vars/main.yml
Sets varAmain.
roleA/vars/maininc.yml
Sets varAmaininc.
roleA/vars/extra.yml
Sets varAextra.
roleA/tasks/main
Includes vars from maininc.yml
Includes taskB, setting meow=AAA.
Sets + uses factAmain.
Uses defA, varAmain, varAmaininc, varAundef (UNDEFINED).
roleA/tasks/taskA
Includes vars from extra.yml
Sets factAunused (UNUSED).
Uses defA, varAmain, varAextra, factB.
roleA/tasks/taskB
Sets factB.
Playbook A just uses stuff from role A.
Uses roleA.
Uses taskA.
Role1 is a copy of roleA, but also:
Includes roleA via meta/main.yml.
Everything with an A or B in it has a 1 or 2 instead.
All tasks use both versions of the vars/facts the roleA versions do.
Task1 does NOT directly include taskB, only task2.
Playbook 1:
Uses roleA and role1.
Uses taskA and task1.
TODO:
Test variable precedence, IE vars that override each other.