This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
/
main.yml
70 lines (60 loc) · 1.5 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
# tasks file for clickhouse
- name: 'Include OS Family Specific Variables'
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_os_family | lower }}.yml"
- 'empty.yml'
paths:
- 'vars'
tags: [always]
- include_tasks: precheck.yml
tags: [always]
- include_tasks: params.yml
tags: [always]
- include_tasks:
file: "{{ lookup('first_found', params) }}"
apply:
tags: [install]
vars:
params:
files:
- "install/{{ ansible_pkg_mgr }}.yml"
- 'empty.yml'
tags: [install]
when: not clickhouse_remove|bool
- include_tasks:
file: configure/sys.yml
apply:
tags: [config, config_sys]
tags: [config, config_sys]
when: not clickhouse_remove|bool
- name: "Notify Handlers Now"
meta: flush_handlers
- include_tasks: service.yml
tags: [always]
- name: "Wait for Clickhouse Server to Become Ready"
wait_for:
port: "{{ clickhouse_tcp_secure_port | default(clickhouse_tcp_port) }}"
delay: "{{ clickhouse_ready_delay }}"
when: not clickhouse_remove|bool
- include_tasks:
file: configure/db.yml
apply:
tags: [config, config_db]
tags: [config, config_db]
when: not clickhouse_remove|bool
- include_tasks:
file: configure/dict.yml
apply:
tags: [config, config_dict]
tags: [config, config_dict]
when: not clickhouse_remove|bool
- include_tasks:
file: remove.yml
apply:
tags: [remove]
tags: [remove]
when: clickhouse_remove|bool