feat: move to dedicated repo

This commit is contained in:
Simon Cornet 2024-11-22 11:13:16 +01:00
commit 4a88a5b28d
54 changed files with 1524 additions and 0 deletions

56
handlers/main.yaml Normal file
View file

@ -0,0 +1,56 @@
---
# apt
- name: "apt force cache update"
ansible.builtin.apt:
update_cache: true
# chrony
- name: "restart chrony"
ansible.builtin.service:
name: "chrony"
enabled: true
state: "restarted"
# collectd
- name: "restart collectd"
ansible.builtin.service:
name: "collectd"
enabled: true
state: "restarted"
# fstrim.timer
- name: "daemon-reload fstrim.timer"
ansible.builtin.service:
name: "fstrim.timer"
enabled: true
state: "restarted"
daemon_reload: true
# journald
- name: "restart journald"
ansible.builtin.service:
name: "systemd-journald.service"
enabled: true
state: "restarted"
# lldpd
- name: "restart lldpd"
ansible.builtin.service:
name: "lldpd"
enabled: true
state: "restarted"
# rsyslog
- name: "restart rsyslog"
ansible.builtin.service:
name: "rsyslog"
enabled: true
state: "restarted"
# sshd
- name: "restart sshd"
ansible.builtin.systemd:
name: "sshd.service"
state: "restarted"
enabled: true