From f1ed88a6a82b3d6c18166f63b598c2a1add88421 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Mon, 28 Feb 2022 20:36:13 -0600 Subject: [PATCH] dnf-automatic: +emit via motd, escalate privs during config --- roles/bootstrap/tasks/dnf.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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