dnf-automatic: +emit via motd, escalate privs during config
This commit is contained in:
parent
000000084f
commit
f1ed88a6a8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue