Files
ansible-role-debian_common/handlers/main.yml

35 lines
746 B
YAML
Raw Normal View History

2024-10-26 16:23:45 +02:00
---
# file: common/handlers/main.yml
- name: Update packages cache
ansible.builtin.apt:
update_cache: true
- name: Restart systemd-journald
ansible.builtin.systemd_service:
2024-10-26 16:23:45 +02:00
name: systemd-journald
state: restarted
- name: Restart rrdcached
ansible.builtin.systemd_service:
name: rrdcached
state: restarted
- name: Restart sshd
ansible.builtin.systemd_service:
name: sshd
state: restarted
- name: Reconfigure locales
ansible.builtin.command:
cmd: "dpkg-reconfigure locales"
environment:
DEBIAN_FRONTEND: noninteractive
changed_when: true
- name: Update initramfs
ansible.builtin.command:
cmd: "update-initramfs -u"
environment:
DEBIAN_FRONTEND: noninteractive
changed_when: true