-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathmain.yml
31 lines (27 loc) · 1.11 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- name: Include OS specific vars
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_os_family }}-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}-{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- default.yml
paths:
- "{{ role_path }}/vars"
- set_fact:
icingadb_redis_config: "{{ icingadb_redis_config | combine(icingadb_redis_defaults, recursive=True) }}"
- name: Check supported operatingsystems
block:
- name: Include OS specific installation
ansible.builtin.include_tasks: "install_on_{{ ansible_os_family | lower }}.yml"
rescue:
- name: "OS family not supported!"
ansible.builtin.fail:
msg: "The OS {{ ansible_os_family }} is not supported!"
- name: Manage IcingaDB Redis configuration
ansible.builtin.include_tasks: "manage_config.yml"
- name: Manage IcingaDB Redis service
ansible.builtin.include_tasks: "manage_service.yml"