mirror of
https://gitea.0xace.cc/ansible-galaxy/haproxy.git
synced 2024-11-25 00:16:39 +00:00
25 lines
920 B
YAML
25 lines
920 B
YAML
---
|
|
- 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
|
|
|
|
- name: Include pre-checks.yaml
|
|
include_tasks: pre-checks.yaml
|
|
|
|
- name: Include HAProxy install
|
|
include_tasks: "{{ ansible_facts['os_family'] }}.yaml"
|