2022-01-26 13:58:51 +00:00
|
|
|
---
|
2024-05-11 00:10:14 +00:00
|
|
|
- name: Load a variable file based on the OS type
|
|
|
|
include_vars: "{{ lookup('first_found', params) }}"
|
|
|
|
vars:
|
|
|
|
params:
|
|
|
|
files:
|
|
|
|
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
|
|
|
|
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
|
|
|
|
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
|
|
|
|
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
|
|
|
|
- "{{ ansible_facts['distribution'] }}.yaml"
|
|
|
|
- "{{ ansible_facts['os_family'] }}.yaml"
|
|
|
|
paths:
|
|
|
|
- "vars"
|
|
|
|
tags: bird_vars
|
|
|
|
|
|
|
|
- name: Include bird installation tasks
|
|
|
|
include_tasks: "{{ ansible_facts['os_family'] }}/main.yaml"
|