use test -f instead of ls
This commit is contained in:
parent
18d8c0c0fb
commit
0aec048eaf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user