Configure needrestart

This commit is contained in:
chapeau 2024-09-12 13:45:57 +02:00
parent 895083900f
commit 854f0b9906

View file

@ -21,4 +21,9 @@
dest: ~/docker-apt-dater/hosts.d/host.xml dest: ~/docker-apt-dater/hosts.d/host.xml
run_once: True run_once: True
- name: Automaticaly restart services when needed
lineinfile:
path: /etc/needrestart/needrestart.conf
regexp: '^\$nrconf{restart} ='
line: $nrconf{restart} = 'a';
become: true