-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmastodon.yaml
76 lines (60 loc) · 2.06 KB
/
mastodon.yaml
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
71
72
73
74
75
76
---
- hosts: all
become: true
strategy: free
tasks:
- ansible.builtin.include_role:
name: common
- ansible.builtin.include_role:
name: firewall
- ansible.builtin.include_role:
name: base
- ansible.builtin.include_role:
name: wireguard
- ansible.builtin.include_role:
name: mail
when: "'mail' in group_names"
- ansible.builtin.include_role:
name: mastodon_nginx
when: "'mastodon_nginx' in group_names"
- ansible.builtin.include_role:
name: postgresql
when: "'postgresql' in group_names"
- ansible.builtin.include_role:
name: redis
when: "'redis' in group_names"
- ansible.builtin.include_role:
name: mastodon_app
tasks_from: initialize_pre.yml
when: "'mastodon_cron' in group_names"
- ansible.builtin.include_role:
name: mastodon_web
when: "'mastodon_web' in group_names"
- ansible.builtin.include_role:
name: mastodon_streaming
when: "'mastodon_streaming' in group_names"
- ansible.builtin.include_role:
name: mastodon_sidekiq_combined
when: "'mastodon_sidekiq_auto' in group_names and ansible_processor_nproc < 4"
- ansible.builtin.include_role:
name: "{{ item }}"
loop:
- mastodon_sidekiq_default
- mastodon_sidekiq_ingress
- mastodon_sidekiq_push
- mastodon_sidekiq_pull
- mastodon_sidekiq_mailers
when: item in group_names or ('mastodon_sidekiq_auto' in group_names and ansible_processor_nproc >= 4)
- ansible.builtin.include_role:
name: mastodon_sidekiq_scheduler
when: "'mastodon_sidekiq_scheduler' in group_names"
- ansible.builtin.include_role:
name: mastodon_cron
when: "'mastodon_cron' in group_names"
- ansible.builtin.include_role:
name: mastodon_app
tasks_from: initialize_post.yml
when: "'mastodon_cron' in group_names"
- ansible.builtin.include_role:
name: monitoring_server
when: "'monitoring_server' in group_names"