Moved handler notifications
This commit is contained in:
parent
a66ac7fcf7
commit
e99fe92567
@ -3,23 +3,33 @@
|
|||||||
community.general.apache2_module:
|
community.general.apache2_module:
|
||||||
name: rewrite
|
name: rewrite
|
||||||
state: present
|
state: present
|
||||||
|
notify:
|
||||||
|
- Restart Apache
|
||||||
|
|
||||||
- name: Enable mod_headers
|
- name: Enable mod_headers
|
||||||
community.general.apache2_module:
|
community.general.apache2_module:
|
||||||
name: headers
|
name: headers
|
||||||
state: present
|
state: present
|
||||||
|
notify:
|
||||||
|
- Restart Apache
|
||||||
|
|
||||||
- name: Enable mod_env
|
- name: Enable mod_env
|
||||||
community.general.apache2_module:
|
community.general.apache2_module:
|
||||||
name: env
|
name: env
|
||||||
state: present
|
state: present
|
||||||
|
notify:
|
||||||
|
- Restart Apache
|
||||||
|
|
||||||
- name: Enable mod_dir
|
- name: Enable mod_dir
|
||||||
community.general.apache2_module:
|
community.general.apache2_module:
|
||||||
name: dir
|
name: dir
|
||||||
state: present
|
state: present
|
||||||
|
notify:
|
||||||
|
- Restart Apache
|
||||||
|
|
||||||
- name: Enable mod_mime
|
- name: Enable mod_mime
|
||||||
community.general.apache2_module:
|
community.general.apache2_module:
|
||||||
name: mime
|
name: mime
|
||||||
state: present
|
state: present
|
||||||
|
notify:
|
||||||
|
- Restart Apache
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
become: true
|
||||||
when: not nextcloud_apache2_virtualhost
|
when: not nextcloud_apache2_virtualhost
|
||||||
|
notify:
|
||||||
|
- Enable Nextcloud site
|
||||||
|
|
||||||
- name: Write virtualhost nextcloud.conf file
|
- name: Write virtualhost nextcloud.conf file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -14,3 +16,5 @@
|
|||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
become: true
|
||||||
when: nextcloud_apache2_virtualhost
|
when: nextcloud_apache2_virtualhost
|
||||||
|
notify:
|
||||||
|
- Enable Nextcloud site
|
||||||
|
@ -2,20 +2,14 @@
|
|||||||
- name: Create Apache2 config
|
- name: Create Apache2 config
|
||||||
include_tasks: apache2_template.yaml
|
include_tasks: apache2_template.yaml
|
||||||
when: not nextcloud_nginx
|
when: not nextcloud_nginx
|
||||||
notify:
|
|
||||||
- Enable Nextcloud site
|
|
||||||
|
|
||||||
- name: Enable Apache2 modules
|
- name: Enable Apache2 modules
|
||||||
include_tasks: apache2_modules.yaml
|
include_tasks: apache2_modules.yaml
|
||||||
when: not nextcloud_nginx
|
when: not nextcloud_nginx
|
||||||
notify:
|
|
||||||
- Restart Apache
|
|
||||||
|
|
||||||
- name: Create nginx config
|
- name: Create nginx config
|
||||||
include_tasks: nginx_template.yaml
|
include_tasks: nginx_template.yaml
|
||||||
when: nextcloud_nginx
|
when: nextcloud_nginx
|
||||||
notify:
|
|
||||||
- Restart nginx
|
|
||||||
|
|
||||||
- name: Change ownership of Nextcloud directories
|
- name: Change ownership of Nextcloud directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -5,3 +5,5 @@
|
|||||||
dest: "{{ nextcloud_nginx_config_path }}"
|
dest: "{{ nextcloud_nginx_config_path }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
become: true
|
||||||
|
notify:
|
||||||
|
- Restart nginx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user