mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-17 23:10:19 +01:00
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:
parent
d687bb21c5
commit
b13cb7d4ba
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue