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:
parent
59cdfb79c2
commit
51844f2820
@ -45,7 +45,7 @@ nginx-old-init-disable:
|
|||||||
- name: {{ nginx.old_init_disable }}
|
- name: {{ nginx.old_init_disable }}
|
||||||
- require{{ _in }}:
|
- require{{ _in }}:
|
||||||
- module: nginx-old-init
|
- module: nginx-old-init
|
||||||
- unless: [ ! -f /etc/init.d/nginx ]
|
- onlyif: [ -f /etc/init.d/nginx ]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if grains.get('os_family') == 'Debian' %}
|
{% if grains.get('os_family') == 'Debian' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user