Browse Source

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

Thomas Buck 5 years ago
parent
commit
caf49050d2

+ 0
- 4
roles/blog/tasks/blog.yml View File

10
     group=root
10
     group=root
11
   with_items: "{{ virtual_domains }}"
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
 - name: Enable Apache sites (creates new sites-enabled symlinks)
13
 - name: Enable Apache sites (creates new sites-enabled symlinks)
18
   command: a2ensite {{ item }}.conf creates=/etc/apache2/sites-enabled/{{ item }}.conf
14
   command: a2ensite {{ item }}.conf creates=/etc/apache2/sites-enabled/{{ item }}.conf
19
   notify: restart apache
15
   notify: restart apache

+ 0
- 4
roles/blog/tasks/fathom.yml View File

87
     group=root
87
     group=root
88
   with_items: "{{ virtual_domains }}"
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
 - name: Enable Apache sites (creates new sites-enabled symlinks)
90
 - name: Enable Apache sites (creates new sites-enabled symlinks)
95
   command: a2ensite fathom_{{ item }}.conf creates=/etc/apache2/sites-enabled/fathom_{{ item }}.conf
91
   command: a2ensite fathom_{{ item }}.conf creates=/etc/apache2/sites-enabled/fathom_{{ item }}.conf
96
   notify: restart apache
92
   notify: restart apache

+ 0
- 4
roles/news/tasks/selfoss.yml View File

108
     group=root
108
     group=root
109
   with_items: "{{ virtual_domains }}"
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
 - name: Enable Apache sites (creates new sites-enabled symlinks)
111
 - name: Enable Apache sites (creates new sites-enabled symlinks)
116
   command: a2ensite selfoss_{{ item }}.conf creates=/etc/apache2/sites-enabled/selfoss_{{ item }}.conf
112
   command: a2ensite selfoss_{{ item }}.conf creates=/etc/apache2/sites-enabled/selfoss_{{ item }}.conf
117
   notify: restart apache
113
   notify: restart apache

+ 0
- 4
roles/nextcloud/tasks/nextcloud.yml View File

117
     group=root
117
     group=root
118
   with_items: "{{ virtual_domains }}"
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
 - name: Enable Apache sites (creates new sites-enabled symlinks)
120
 - name: Enable Apache sites (creates new sites-enabled symlinks)
125
   command: a2ensite nextcloud_{{ item }}.conf creates=/etc/apache2/sites-enabled/nextcloud_{{ item }}.conf
121
   command: a2ensite nextcloud_{{ item }}.conf creates=/etc/apache2/sites-enabled/nextcloud_{{ item }}.conf
126
   notify: restart apache
122
   notify: restart apache

Loading…
Cancel
Save