29 lines
586 B
YAML
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
|