Don't execute a2ensite if the vhost is already enabled
This commit is contained in:
parent
b034debeca
commit
18d8c0c0fb
@ -24,6 +24,7 @@ include:
|
||||
a2ensite {{ id }}:
|
||||
cmd:
|
||||
- run
|
||||
- unless: ls /etc/apache2/sites-enabled/{{ id }}
|
||||
- require:
|
||||
- file: {{ id }}
|
||||
- watch_in:
|
||||
|
Loading…
Reference in New Issue
Block a user