-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.yml
50 lines (43 loc) · 1.08 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
---
# Handlers for omero-common
# The conditional means you can safely notify this on non-systemd servers
- name: reload systemd
become: true
command: systemctl daemon-reload
when: ansible_service_mgr == 'systemd'
tags:
# [ANSIBLE0006] systemctl used in place of systemd module
- skip_ansible_lint
- name: restart omero-server
become: true
service:
name: omero-server
state: restarted
- name: restart omero-web
become: true
service:
name: omero-web
state: restarted
- name: restart nginx
become: true
service:
name: nginx
state: restarted
- name: restart omero-server if installed
become: true
service:
name: omero-server
state: restarted
when: _omero_common_services_installed.results.0.stat.exists
- name: restart omero-web if installed
become: true
service:
name: omero-web
state: restarted
when: _omero_common_services_installed.results.1.stat.exists
- name: restart nginx if installed
become: true
service:
name: nginx
state: restarted
when: _omero_common_services_installed.results.2.stat.exists