Merge pull request #14 from galet/master
States for apache-reload and apache-restart using module.wait not working
This commit is contained in:
commit
b118690c53
@ -17,7 +17,7 @@ a2dissite 000-default:
|
|||||||
- order: 225
|
- order: 225
|
||||||
- onlyif: ls /etc/apache2/sites-enabled/000-default
|
- onlyif: ls /etc/apache2/sites-enabled/000-default
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- cmd: apache-reload
|
- module: apache-reload
|
||||||
- require:
|
- require:
|
||||||
- pkg: apache
|
- pkg: apache
|
||||||
|
|
||||||
|
@ -11,9 +11,10 @@ apache:
|
|||||||
|
|
||||||
apache-reload:
|
apache-reload:
|
||||||
module.wait:
|
module.wait:
|
||||||
- name: service.reload {{ apache.service }}
|
- name: service.reload
|
||||||
|
- m_name: {{ apache.service }}
|
||||||
|
|
||||||
apache-restart:
|
apache-restart:
|
||||||
module.wait:
|
module.wait:
|
||||||
- name: service.restart {{ apache.service }}
|
- name: service.restart
|
||||||
|
- m_name: {{ apache.service }}
|
@ -39,7 +39,7 @@ a2dissite {{ pillar['apache']['register-site'][site]['name'] }}:
|
|||||||
- mode: 775
|
- mode: 775
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- cmd: a2ensite {{ pillar['apache']['register-site'][site]['name'] }}
|
- cmd: a2ensite {{ pillar['apache']['register-site'][site]['name'] }}
|
||||||
- cmd: apache-reload
|
- module: apache-reload
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
##########################################
|
##########################################
|
||||||
|
@ -18,7 +18,7 @@ include:
|
|||||||
- require:
|
- require:
|
||||||
- pkg: apache
|
- pkg: apache
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- cmd: apache-reload
|
- module: apache-reload
|
||||||
|
|
||||||
{% if grains.os_family == 'Debian' %}
|
{% if grains.os_family == 'Debian' %}
|
||||||
a2ensite {{ id }}:
|
a2ensite {{ id }}:
|
||||||
|
Loading…
Reference in New Issue
Block a user