File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 3
3
systemd :
4
4
name : " {{item.name}}.service"
5
5
state : started
6
- daemon_reload : yes
6
+ enabled : " {{item.enable|default(no)}} "
7
7
with_items : " {{celery_services}}"
8
8
9
9
- name : " restart celery services"
10
10
systemd :
11
11
name : " {{item.name}}.service"
12
12
state : restarted
13
- daemon_reload : yes
13
+ enabled : " {{item.enable|default(no)}} "
14
14
with_items : " {{celery_services}}"
15
15
16
16
- name : " stop celery services"
17
17
systemd :
18
18
name : " {{item.name}}.service"
19
19
state : stopped
20
- daemon_reload : yes
21
20
with_items : " {{celery_services}}"
Original file line number Diff line number Diff line change 47
47
systemd :
48
48
daemon_reload : yes
49
49
when : celery_services_state is changed
50
-
51
- - name : Enable Service
52
- systemd :
53
- name : " {{item.name}}.service"
54
- state : " {{item.state|default('stopped')}}"
55
- enabled : yes
56
- when : item.enabled|default(False)|bool
57
- with_items : " {{celery_services}}"
You can’t perform that action at this time.
0 commit comments