Prevent task symlink vhost for Debian to failed.

When vhost has not been created (using apache_create_vhosts: no), the
tasks should not be executed, otherwise it'll failed as the vhosts.conf
file has not been created and cannot been linked.
This commit is contained in:
Guillaume Dedrie 2014-11-04 18:02:42 +01:00
parent d687bb21c5
commit b13cb7d4ba

View file

@ -31,3 +31,4 @@
src: "{{ apache_conf_path }}/sites-available/vhosts.conf"
dest: "{{ apache_conf_path }}/sites-enabled/vhosts.conf"
state: link
when: apache_create_vhosts