Fixed "no service named nginx" chkconfig error.

chkconfig was attempting to remove /etc/init.d/nginx when it did not exist.
This commit is contained in:
CorwinTanner 2014-11-21 17:10:01 -06:00
parent 59cdfb79c2
commit 51844f2820

View File

@ -45,7 +45,7 @@ nginx-old-init-disable:
- name: {{ nginx.old_init_disable }}
- require{{ _in }}:
- module: nginx-old-init
- unless: [ ! -f /etc/init.d/nginx ]
- onlyif: [ -f /etc/init.d/nginx ]
{% endif %}
{% if grains.get('os_family') == 'Debian' %}