ansible-role-nextcloud/handlers/main.yml
2023-10-25 18:35:43 +02:00

29 lines
586 B
YAML

---
- name: reload apache
ansible.builtin.service:
name: apache2
state: reloaded
- name: restart apache
ansible.builtin.service:
name: apache2
state: restarted
- name: Get certificate
ansible.builtin.command: dehydrated --cron -g
delegate_to: "{{ gateway_host }}"
- name: Reload nginx
ansible.builtin.service:
name: nginx
state: reloaded
delegate_to: "{{ gateway_host }}"
- name: restart fail2ban
ansible.builtin.service:
name: fail2ban
state: restarted
- name: Systemd daemon-reload
ansible.builtin.systemd:
daemon_reload: true