|
|
|
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
cmd.run: |
|
|
cmd.run: |
|
|
{% if pillar['apache']['register-site'][site]['state'] == 'enabled' %} |
|
|
{% if pillar['apache']['register-site'][site]['state'] == 'enabled' %} |
|
|
- unless: ls /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }} |
|
|
|
|
|
|
|
|
- unless: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }} |
|
|
{% else %} |
|
|
{% else %} |
|
|
- onlyif: ls /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }} |
|
|
|
|
|
|
|
|
- onlyif: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
- order: 230 |
|
|
- order: 230 |
|
|
- require: |
|
|
- require: |