From 239c86876764aef767c4213d88216899f7da778f Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 10 Feb 2023 17:44:03 +0300 Subject: [PATCH] fix vars --- tasks/main.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index e6869bf..5f10595 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -12,6 +12,24 @@ - "vars" tags: always, patroni_vars +- name: Load host variables to override role vars + include_vars: + dir: "{{ inventory_dir }}/host_vars" + ignore_unknown_extensions: True + extensions: + - '' + - "yaml" + - "yml" + tags: patroni_override_role_vars + +- name: Load group variables to override role vars + include_vars: + dir: "{{ inventory_dir }}/group_vars" + extensions: + - "yaml" + - "yml" + tags: patroni_override_role_vars + - name: Task name stat: path: /etc/patroni/patroni.yaml