From b13cb7d4ba0e5d9c2bd9e8517f8039055414c260 Mon Sep 17 00:00:00 2001 From: Guillaume Dedrie Date: Tue, 4 Nov 2014 18:02:42 +0100 Subject: [PATCH] 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. --- tasks/configure-Debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure-Debian.yml b/tasks/configure-Debian.yml index 34d0531..1e67072 100644 --- a/tasks/configure-Debian.yml +++ b/tasks/configure-Debian.yml @@ -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