diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index f89b8f2..8448503 100644 --- a/tasks/vhosts.yml +++ b/tasks/vhosts.yml @@ -31,3 +31,9 @@ when: item.state|default('present') == 'absent' with_items: "{{ nginx_vhosts }}" notify: reload nginx + +- name: Remove legacy vhosts.conf file. + file: + path: "{{ nginx_vhost_path }}/vhosts.conf" + state: absent + notify: reload nginx