xoxys.postfix_relay/tasks/main.yml

24 lines
781 B
YAML
Raw Normal View History

2017-05-18 21:24:15 +00:00
---
2024-02-18 11:42:08 +00:00
- ansible.builtin.include_vars: "{{ var_files }}"
2019-08-24 13:01:30 +00:00
vars:
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
2019-08-24 13:01:30 +00:00
params:
files:
2019-08-24 13:15:58 +00:00
- "{{ ansible_lsb.id | default('') | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
2019-08-24 13:01:30 +00:00
- "{{ ansible_os_family | lower }}.yml"
paths:
- "vars"
when: var_files
2024-02-18 11:42:08 +00:00
- ansible.builtin.include_tasks: install.yml
- ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
2019-08-24 13:01:30 +00:00
vars:
params:
files:
2019-08-24 13:15:58 +00:00
- "config_{{ ansible_lsb.id | default('') | lower }}.yml"
2019-08-24 13:01:30 +00:00
- "config_{{ ansible_os_family | lower }}.yml"
- "config_default.yml"
paths:
- "tasks"
2024-02-18 11:42:08 +00:00
- ansible.builtin.include_tasks: post_tasks.yml