Browse Source

Remove legacy vhosts.conf file

Oskar Schöldström 8 năm trước cách đây
mục cha
commit
0d931c53c3
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      tasks/vhosts.yml

+ 6 - 0
tasks/vhosts.yml

@@ -31,3 +31,9 @@
   when: item.state|default('present') == 'absent'
   when: item.state|default('present') == 'absent'
   with_items: "{{ nginx_vhosts }}"
   with_items: "{{ nginx_vhosts }}"
   notify: reload nginx
   notify: reload nginx
+
+- name: Remove legacy vhosts.conf file.
+  file:
+    path: "{{ nginx_vhost_path }}/vhosts.conf"
+    state: absent
+  notify: reload nginx