Unregister services for both Upstart and Systemd.

This commit is contained in:
Buster Silver 2017-05-30 07:34:51 -05:00
parent daa7399fa0
commit 5c0d5b64ff
4 changed files with 4 additions and 5 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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