diff --git a/roles/bootstrap/tasks/dnf.yml b/roles/bootstrap/tasks/dnf.yml index f8ecaeb..6db3cde 100644 --- a/roles/bootstrap/tasks/dnf.yml +++ b/roles/bootstrap/tasks/dnf.yml @@ -11,6 +11,7 @@ state: present - name: configure dnf-automatic + become: true lineinfile: path: /etc/dnf/automatic.conf state: present @@ -18,7 +19,7 @@ line: "{{ item.line }}" with_items: - { regexp: '^upgrade_type.=', line: 'upgrade_type = security' } - - { regexp: '^emit_via.=', line: 'emit_via = stdio' } + - { regexp: '^emit_via.=', line: 'emit_via = stdio,motd' } - { regexp: '^apply_updates.=', line: 'apply_updates = yes' } - name: enable dnf-automatic timer