25 lines
411 B
YAML
25 lines
411 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: restart fail2ban
|
|
service:
|
|
name: fail2ban
|
|
state: restarted
|
|
|
|
- name: Systemd daemon-reload
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|