use test -f instead of ls

This commit is contained in:
Vincent Fretin 2014-08-01 15:32:40 +02:00
parent 18d8c0c0fb
commit 0aec048eaf

View File

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