dnf-automatic: +emit via motd, escalate privs during config

This commit is contained in:
Josh Lay 2022-02-28 20:36:13 -06:00
parent 000000084f
commit f1ed88a6a8
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -11,6 +11,7 @@
state: present state: present
- name: configure dnf-automatic - name: configure dnf-automatic
become: true
lineinfile: lineinfile:
path: /etc/dnf/automatic.conf path: /etc/dnf/automatic.conf
state: present state: present
@ -18,7 +19,7 @@
line: "{{ item.line }}" line: "{{ item.line }}"
with_items: with_items:
- { regexp: '^upgrade_type.=', line: 'upgrade_type = security' } - { 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' } - { regexp: '^apply_updates.=', line: 'apply_updates = yes' }
- name: enable dnf-automatic timer - name: enable dnf-automatic timer