use test -f instead of ls
This commit is contained in:
parent
18d8c0c0fb
commit
0aec048eaf
@ -24,7 +24,7 @@ include:
|
|||||||
a2ensite {{ id }}:
|
a2ensite {{ id }}:
|
||||||
cmd:
|
cmd:
|
||||||
- run
|
- run
|
||||||
- unless: ls /etc/apache2/sites-enabled/{{ id }}
|
- unless: test -f /etc/apache2/sites-enabled/{{ id }}
|
||||||
- require:
|
- require:
|
||||||
- file: {{ id }}
|
- file: {{ id }}
|
||||||
- watch_in:
|
- watch_in:
|
||||||
|
Loading…
Reference in New Issue
Block a user