Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,30 +1,31 @@
---
- name: update grub
command: update-grub
ansible.builtin.command:
cmd: update-grub
- name: reboot
reboot:
ansible.builtin.reboot:
- name: apt update
apt:
ansible.builtin.apt:
update_cache: true
- name: daemon reload
systemd:
ansible.builtin.systemd:
daemon_reload: true
- name: reload sshd
systemd:
ansible.builtin.systemd:
name: ssh
state: reloaded
- name: reload nginx
systemd:
ansible.builtin.systemd:
name: nginx
state: reloaded
- name: persist iptables
shell: "{{ item.c }}-save > /etc/iptables/rules.{{ item.ip }}"
ansible.builtin.shell: "{{ item.c }}-save > /etc/iptables/rules.{{ item.ip }}"
with_items:
- { c: iptables, ip: v4 }
- { c: ip6tables, ip: v6 }