2023-02-07 22:36:25 +00:00
|
|
|
---
|
2023-04-16 00:27:24 +00:00
|
|
|
- name: Make sure handlers are flushed immediately
|
|
|
|
meta: flush_handlers
|
|
|
|
|
|
|
|
- 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: haproxy_vars
|
|
|
|
|
2024-09-29 18:34:44 +00:00
|
|
|
- name: Include pre-checks.yaml
|
|
|
|
include_tasks: pre-checks.yaml
|
|
|
|
|
2023-04-16 00:27:24 +00:00
|
|
|
- name: Include HAProxy install
|
|
|
|
include_tasks: "{{ ansible_facts['os_family'] }}.yaml"
|