Moved site enabler task out of handler
This commit is contained in:
parent
1d1348c876
commit
05c9099fdf
@ -1,7 +1,4 @@
|
||||
---
|
||||
- name: Enable Nextcloud site
|
||||
ansible.builtin.command: a2ensite nextcloud.conf
|
||||
|
||||
- name: Restart Apache
|
||||
ansible.builtin.systemd:
|
||||
name: httpd
|
||||
|
4
tasks/apache2_site.yaml
Normal file
4
tasks/apache2_site.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: Enable Nextcloud site
|
||||
ansible.builtin.command: a2ensite nextcloud.conf
|
||||
when: not nextcloud_nginx and not nextcloud_ssl
|
@ -10,6 +10,10 @@
|
||||
include_tasks: apache2_modules.yaml
|
||||
when: not nextcloud_nginx
|
||||
|
||||
- name: Enable Apache2 site
|
||||
include_tasks: apache2_site.yaml
|
||||
when: not nextcloud_nginx
|
||||
|
||||
- name: Create nginx config
|
||||
include_tasks: nginx_template.yaml
|
||||
when: nextcloud_nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user