diff --git a/menu/roles/update/tasks/main.yml b/menu/roles/update/tasks/main.yml index e05c6b6d..d033619e 100644 --- a/menu/roles/update/tasks/main.yml +++ b/menu/roles/update/tasks/main.yml @@ -19,18 +19,18 @@ - sysstat - nmon -- name: Replace false to true in systat - lineinfile: - path: /etc/default/sysstat - regexp: '^ENABLED=false' - line: ENABLED=true - -#- name: Ensure systat is ENABLED=true +#- name: Replace false to true in systat # lineinfile: # path: /etc/default/sysstat -# regexp: '^ENABLED=' +## regexp: '^ENABLED=false' # line: ENABLED=true +- name: Ensure systat is ENABLED=true + lineinfile: + path: /etc/default/sysstat + regexp: '^ENABLED=' + line: ENABLED=true + - name: Autoremove unused packages command: apt-get -y autoremove register: apt_result