2020-12-03 15:52:14 +01:00
|
|
|
---
|
|
|
|
- name: reload apache
|
2023-05-21 23:01:31 +02:00
|
|
|
ansible.builtin.service:
|
2020-12-03 15:52:14 +01:00
|
|
|
name: apache2
|
|
|
|
state: reloaded
|
|
|
|
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: restart apache
|
2023-05-21 23:01:31 +02:00
|
|
|
ansible.builtin.service:
|
|
|
|
name: apache2
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: Get certificate
|
|
|
|
ansible.builtin.command: dehydrated --cron -g
|
|
|
|
delegate_to: "{{ gateway_host }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
|
|
|
|
- name: reload nginx
|
2023-05-21 23:01:31 +02:00
|
|
|
ansible.builtin.service:
|
2020-12-03 15:52:14 +01:00
|
|
|
name: nginx
|
|
|
|
state: reloaded
|
2021-06-26 02:32:29 +02:00
|
|
|
delegate_to: "{{ gateway_host }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
|
2022-07-26 17:32:31 +02:00
|
|
|
- name: restart fail2ban
|
2023-05-21 23:01:31 +02:00
|
|
|
ansible.builtin.service:
|
2022-07-26 17:32:31 +02:00
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
2023-02-25 23:42:38 +01:00
|
|
|
|
|
|
|
- name: Systemd daemon-reload
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|