diff --git a/roles/basics/tasks/main.yml b/roles/basics/tasks/main.yml index 927f931..9f662be 100644 --- a/roles/basics/tasks/main.yml +++ b/roles/basics/tasks/main.yml @@ -21,4 +21,9 @@ dest: ~/docker-apt-dater/hosts.d/host.xml run_once: True - \ No newline at end of file +- name: Automaticaly restart services when needed + lineinfile: + path: /etc/needrestart/needrestart.conf + regexp: '^\$nrconf{restart} =' + line: $nrconf{restart} = 'a'; + become: true \ No newline at end of file