Skip to content

Commit fd4860e

Browse files
asm0deyphp-coder
authored andcommitted
ci: Fixes E301 Commands should not change things if nothing needs doing
This fix is intended to allow playbook to manually start and stop mystamps service. Potentially this is not intended behaviour and should be migrated to systemd task and handler. But current behaviour is well-tested and as such should be presereved at least for now.
1 parent fe4ddc7 commit fd4860e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scripts/ci/ansible/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
when: uptimerobot is defined and uptimerobot.monitorid and uptimerobot.apikey
3535

3636
# we can't use service module here because our sudoers allows to execute only exact commands
37-
- name: Stopping service
37+
- name: Stopping service # noqa 301 ignoring this because we're always stopping service before deploy
3838
raw:
3939
sudo systemctl stop mystamps
4040

@@ -48,7 +48,7 @@
4848
backup: yes
4949

5050
# we can't use service module here because our sudoers allows to execute only exact commands
51-
- name: Starting service
51+
- name: Starting service # noqa 301 ignoring this because we're always starting service after deploy
5252
raw:
5353
sudo systemctl start mystamps
5454

0 commit comments

Comments
 (0)