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: |