浏览代码

Remove useless step in apache related tasks that forced apache restart.

Thomas Buck 5 年前
父节点
当前提交
caf49050d2
共有 4 个文件被更改,包括 0 次插入16 次删除
  1. 0
    4
      roles/blog/tasks/blog.yml
  2. 0
    4
      roles/blog/tasks/fathom.yml
  3. 0
    4
      roles/news/tasks/selfoss.yml
  4. 0
    4
      roles/nextcloud/tasks/nextcloud.yml

+ 0
- 4
roles/blog/tasks/blog.yml 查看文件

@@ -10,10 +10,6 @@
10 10
     group=root
11 11
   with_items: "{{ virtual_domains }}"
12 12
 
13
-- name: Remove old sites-enabled symlinks (new ones will be created by a2ensite)
14
-  file: path=/etc/apache2/sites-enabled/{{ item }}.conf state=absent
15
-  with_items: "{{ virtual_domains | json_query('[*].name') }}"
16
-
17 13
 - name: Enable Apache sites (creates new sites-enabled symlinks)
18 14
   command: a2ensite {{ item }}.conf creates=/etc/apache2/sites-enabled/{{ item }}.conf
19 15
   notify: restart apache

+ 0
- 4
roles/blog/tasks/fathom.yml 查看文件

@@ -87,10 +87,6 @@
87 87
     group=root
88 88
   with_items: "{{ virtual_domains }}"
89 89
 
90
-- name: Remove old sites-enabled symlinks (new ones will be created by a2ensite)
91
-  file: path=/etc/apache2/sites-enabled/fathom_{{ item }}.conf state=absent
92
-  with_items: "{{ virtual_domains | json_query('[*].name') }}"
93
-
94 90
 - name: Enable Apache sites (creates new sites-enabled symlinks)
95 91
   command: a2ensite fathom_{{ item }}.conf creates=/etc/apache2/sites-enabled/fathom_{{ item }}.conf
96 92
   notify: restart apache

+ 0
- 4
roles/news/tasks/selfoss.yml 查看文件

@@ -108,10 +108,6 @@
108 108
     group=root
109 109
   with_items: "{{ virtual_domains }}"
110 110
 
111
-- name: Remove old sites-enabled symlinks (new ones will be created by a2ensite)
112
-  file: path=/etc/apache2/sites-enabled/selfoss_{{ item }}.conf state=absent
113
-  with_items: "{{ virtual_domains | json_query('[*].name') }}"
114
-
115 111
 - name: Enable Apache sites (creates new sites-enabled symlinks)
116 112
   command: a2ensite selfoss_{{ item }}.conf creates=/etc/apache2/sites-enabled/selfoss_{{ item }}.conf
117 113
   notify: restart apache

+ 0
- 4
roles/nextcloud/tasks/nextcloud.yml 查看文件

@@ -117,10 +117,6 @@
117 117
     group=root
118 118
   with_items: "{{ virtual_domains }}"
119 119
 
120
-- name: Remove old sites-enabled symlinks (new ones will be created by a2ensite)
121
-  file: path=/etc/apache2/sites-enabled/nextcloud_{{ item }}.conf state=absent
122
-  with_items: "{{ virtual_domains | json_query('[*].name') }}"
123
-
124 120
 - name: Enable Apache sites (creates new sites-enabled symlinks)
125 121
   command: a2ensite nextcloud_{{ item }}.conf creates=/etc/apache2/sites-enabled/nextcloud_{{ item }}.conf
126 122
   notify: restart apache

正在加载...
取消
保存