File tree 1 file changed +6
-12
lines changed
src/main/scripts/ci/ansible
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 33
33
state : paused
34
34
when : uptimerobot is defined and uptimerobot.monitorid != '' and uptimerobot.apikey != ''
35
35
36
+ # we can't use service module here because our sudoers allows to execute only exact commands
36
37
- name : Stopping service
37
- service :
38
- name : mystamps
39
- state : stopped
40
- become : yes
41
- become_user : root
42
- become_method : sudo
38
+ raw :
39
+ sudo systemctl stop mystamps
43
40
44
41
- name : Copying WAR file
45
42
copy :
50
47
mode : ' 0755'
51
48
backup : yes
52
49
50
+ # we can't use service module here because our sudoers allows to execute only exact commands
53
51
- name : Starting service
54
- service :
55
- name : mystamps
56
- state : started
57
- become : yes
58
- become_user : root
59
- become_method : sudo
52
+ raw :
53
+ sudo systemctl start mystamps
60
54
61
55
- name : Starting monitoring
62
56
uptimerobot :
You can’t perform that action at this time.
0 commit comments