Unregister services for both Upstart and Systemd.
This commit is contained in:
parent
daa7399fa0
commit
5c0d5b64ff
|
@ -25,7 +25,7 @@
|
|||
- name: Disable service initialization for influxdb
|
||||
become: true
|
||||
service: name=influxdb enabled=no state=stopped
|
||||
when: systemd.stat.exists
|
||||
ignore_errors: true
|
||||
|
||||
- name: restart influxdb
|
||||
supervisorctl:
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
- name: Disable service initialization for mariadb
|
||||
become: true
|
||||
service: name=mysql enabled=no state=stopped
|
||||
when: systemd.stat.exists
|
||||
ignore_errors: true
|
||||
|
||||
- name: Restart MySQL
|
||||
supervisorctl:
|
||||
|
|
|
@ -43,5 +43,5 @@
|
|||
- name: Disable service initialization for nginx
|
||||
become: true
|
||||
service: name=nginx enabled=no state=stopped
|
||||
when: systemd.stat.exists
|
||||
ignore_errors: true
|
||||
notify: restart nginx
|
|
@ -92,5 +92,4 @@
|
|||
- name: Disable service initialization for php-fpm
|
||||
become: true
|
||||
service: name=php7.1-fpm enabled=no state=stopped
|
||||
when: systemd.stat.exists
|
||||
notify: restart php-fpm
|
||||
ignore_errors: true
|
Loading…
Reference in New Issue