xoxys.postfix_relay/tasks/main.yml
Robert Kaussow e4220633e3
Some checks failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci: migrate to woodpecker
2024-02-18 12:42:08 +01:00

24 lines
781 B
YAML

---
- ansible.builtin.include_vars: "{{ var_files }}"
vars:
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
params:
files:
- "{{ ansible_lsb.id | default('') | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family | lower }}.yml"
paths:
- "vars"
when: var_files
- ansible.builtin.include_tasks: install.yml
- ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "config_{{ ansible_lsb.id | default('') | lower }}.yml"
- "config_{{ ansible_os_family | lower }}.yml"
- "config_default.yml"
paths:
- "tasks"
- ansible.builtin.include_tasks: post_tasks.yml