ansible/roles/common/handlers/main.yaml
polyfloyd ee6b8bee5c
Some checks failed
Test / build (push) Failing after 59s
monitoring/mqtt_exporter: Install from debian package
2025-04-27 13:08:31 +02:00

29 lines
584 B
YAML

---
- name: Update grub
ansible.builtin.command:
cmd: update-grub
- name: apt update
ansible.builtin.apt:
update_cache: true
- name: Daemon reload
ansible.builtin.systemd:
daemon_reload: true
- name: Reload sshd
ansible.builtin.systemd:
name: ssh
state: reloaded
- name: Reload nginx
ansible.builtin.systemd:
name: nginx
state: reloaded
- name: Persist iptables
ansible.builtin.shell: "{{ item.c }}-save > /etc/iptables/rules.{{ item.ip }}"
with_items:
- { c: iptables, ip: v4 }
- { c: ip6tables, ip: v6 }
when: not nft | bool