Browse Source

group_vars files are sorted and then read

master
Nicolas Massé 7 years ago
parent
commit
5e607cb771
  1. 16
      group-vars-order/.vscode/settings.json
  2. 8
      group-vars-order/group-vars-order.yaml
  3. 1
      group-vars-order/group_vars/all/01.yaml
  4. 1
      group-vars-order/group_vars/all/02.yaml
  5. 1
      group-vars-order/group_vars/all/03.yaml

16
group-vars-order/.vscode/settings.json

@ -0,0 +1,16 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#008327",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#3900bf",
"activityBarBadge.foreground": "#e7e7e7",
"titleBar.activeBackground": "#005018",
"titleBar.inactiveBackground": "#00501899",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveForeground": "#e7e7e799",
"statusBar.background": "#005018",
"statusBarItem.hoverBackground": "#008327",
"statusBar.foreground": "#e7e7e7"
}
}

8
group-vars-order/group-vars-order.yaml

@ -0,0 +1,8 @@
- name: group_vars files are sorted and evaluated in order
hosts: localhost
gather_facts: no
tasks:
- assert:
that:
- test == 3

1
group-vars-order/group_vars/all/01.yaml

@ -0,0 +1 @@
test: 1

1
group-vars-order/group_vars/all/02.yaml

@ -0,0 +1 @@
test: 2

1
group-vars-order/group_vars/all/03.yaml

@ -0,0 +1 @@
test: 3
Loading…
Cancel
Save