ansible-role-nextcloud/handlers/main.yml

30 lines
555 B
YAML

---
- name: reload apache
service:
name: apache2
state: reloaded
- name: restart apache
service:
name: apache2
state: restarted
- name: reload nginx
service:
name: nginx
state: reloaded
delegate_to: "{{ gateway_host }}"
- name: stop php-fpm-socket
command: systemctl stop php-fpm@*.socket
- name: stop php-fpm-service
command: systemctl stop php-fpm@*.service
- name: start php-fpm-socket
command: systemctl start php-fpm@*.socket --all
- name: restart fail2ban
service:
name: fail2ban
state: restarted