Don't execute a2ensite if the vhost is already enabled

This commit is contained in:
vincentfretin 2014-08-01 10:43:04 +02:00
parent b034debeca
commit 18d8c0c0fb

View File

@ -24,6 +24,7 @@ include:
a2ensite {{ id }}:
cmd:
- run
- unless: ls /etc/apache2/sites-enabled/{{ id }}
- require:
- file: {{ id }}
- watch_in: