From 5e607cb771867c7555e17e8f7360111504d5c3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 4 Jun 2019 15:47:38 +0200 Subject: [PATCH] group_vars files are sorted and then read --- group-vars-order/.vscode/settings.json | 16 ++++++++++++++++ group-vars-order/group-vars-order.yaml | 8 ++++++++ group-vars-order/group_vars/all/01.yaml | 1 + group-vars-order/group_vars/all/02.yaml | 1 + group-vars-order/group_vars/all/03.yaml | 1 + 5 files changed, 27 insertions(+) create mode 100644 group-vars-order/.vscode/settings.json create mode 100644 group-vars-order/group-vars-order.yaml create mode 100644 group-vars-order/group_vars/all/01.yaml create mode 100644 group-vars-order/group_vars/all/02.yaml create mode 100644 group-vars-order/group_vars/all/03.yaml diff --git a/group-vars-order/.vscode/settings.json b/group-vars-order/.vscode/settings.json new file mode 100644 index 0000000..d96c38d --- /dev/null +++ b/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" + } +} \ No newline at end of file diff --git a/group-vars-order/group-vars-order.yaml b/group-vars-order/group-vars-order.yaml new file mode 100644 index 0000000..b3fe258 --- /dev/null +++ b/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 + \ No newline at end of file diff --git a/group-vars-order/group_vars/all/01.yaml b/group-vars-order/group_vars/all/01.yaml new file mode 100644 index 0000000..4857bf6 --- /dev/null +++ b/group-vars-order/group_vars/all/01.yaml @@ -0,0 +1 @@ +test: 1 diff --git a/group-vars-order/group_vars/all/02.yaml b/group-vars-order/group_vars/all/02.yaml new file mode 100644 index 0000000..1bc9281 --- /dev/null +++ b/group-vars-order/group_vars/all/02.yaml @@ -0,0 +1 @@ +test: 2 diff --git a/group-vars-order/group_vars/all/03.yaml b/group-vars-order/group_vars/all/03.yaml new file mode 100644 index 0000000..4991f4f --- /dev/null +++ b/group-vars-order/group_vars/all/03.yaml @@ -0,0 +1 @@ +test: 3