use default style for cmd.run: instead of cmd: - run

This commit is contained in:
Philipp Marmet 2016-05-18 17:04:41 +02:00
parent df5edcd8a2
commit 01c9ca4a56
2 changed files with 3 additions and 6 deletions

View File

@ -6,8 +6,7 @@ include:
- apache
a2dissite 000-default.conf:
cmd:
- run
cmd.run:
- unless: test ! -f /etc/apache2/sites-enabled/000-default.conf
- require:
- pkg: apache

View File

@ -34,8 +34,7 @@ include:
{% if grains.os_family == 'Debian' %}
{% if site.get('enabled', True) %}
a2ensite {{ id }}{{ apache.confext }}:
cmd:
- run
cmd.run:
- unless: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
- require:
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
@ -43,8 +42,7 @@ a2ensite {{ id }}{{ apache.confext }}:
- module: apache-reload
{% else %}
a2dissite {{ id }}{{ apache.confext }}:
cmd:
- run
cmd.run:
- onlyif: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
- require:
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}