From bdefe4f80d448028b0e970c305098b3f0d1eb913 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Thu, 2 Jan 2025 16:24:09 -0500 Subject: [PATCH] Support include-vars.yml --- tasks/include-vars.yml | 8 ++++++++ vars/default.yml | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 tasks/include-vars.yml create mode 100644 vars/default.yml diff --git a/tasks/include-vars.yml b/tasks/include-vars.yml new file mode 100644 index 0000000..0a70e50 --- /dev/null +++ b/tasks/include-vars.yml @@ -0,0 +1,8 @@ +--- +- name: Load a variable file based on the OS type, or a default if not found. + include_vars: "{{ item }}" + with_first_found: + - "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml" + - "{{ ansible_distribution }}.yml" + - "{{ ansible_os_family }}.yml" + - "default.yml" diff --git a/vars/default.yml b/vars/default.yml new file mode 100644 index 0000000..278c2fe --- /dev/null +++ b/vars/default.yml @@ -0,0 +1,2 @@ +--- +certbot_auto_renew_user: "root"