ansible-role-certbot/tasks/include-vars.yml
Norman Ziegner 49bf3fd9cf
Consistently access facts via the ansible_facts.* namespace
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de>
2025-08-25 10:48:05 +02:00

9 lines
324 B
YAML

---
- name: Load a variable file based on the OS type, or a default if not found.
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_version }}.yml"
- "{{ ansible_facts.distribution }}.yml"
- "{{ ansible_facts.os_family }}.yml"
- "default.yml"