use default style for cmd.run: instead of cmd: - run
This commit is contained in:
parent
df5edcd8a2
commit
01c9ca4a56
@ -6,8 +6,7 @@ include:
|
|||||||
- apache
|
- apache
|
||||||
|
|
||||||
a2dissite 000-default.conf:
|
a2dissite 000-default.conf:
|
||||||
cmd:
|
cmd.run:
|
||||||
- run
|
|
||||||
- unless: test ! -f /etc/apache2/sites-enabled/000-default.conf
|
- unless: test ! -f /etc/apache2/sites-enabled/000-default.conf
|
||||||
- require:
|
- require:
|
||||||
- pkg: apache
|
- pkg: apache
|
||||||
|
@ -34,8 +34,7 @@ include:
|
|||||||
{% if grains.os_family == 'Debian' %}
|
{% if grains.os_family == 'Debian' %}
|
||||||
{% if site.get('enabled', True) %}
|
{% if site.get('enabled', True) %}
|
||||||
a2ensite {{ id }}{{ apache.confext }}:
|
a2ensite {{ id }}{{ apache.confext }}:
|
||||||
cmd:
|
cmd.run:
|
||||||
- run
|
|
||||||
- unless: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
|
- unless: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
|
||||||
- require:
|
- require:
|
||||||
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
|
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
|
||||||
@ -43,8 +42,7 @@ a2ensite {{ id }}{{ apache.confext }}:
|
|||||||
- module: apache-reload
|
- module: apache-reload
|
||||||
{% else %}
|
{% else %}
|
||||||
a2dissite {{ id }}{{ apache.confext }}:
|
a2dissite {{ id }}{{ apache.confext }}:
|
||||||
cmd:
|
cmd.run:
|
||||||
- run
|
|
||||||
- onlyif: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
|
- onlyif: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
|
||||||
- require:
|
- require:
|
||||||
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
|
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
|
||||||
|
Loading…
Reference in New Issue
Block a user