2021-04-05 05:18:41 +00:00
|
|
|
---
|
|
|
|
- name: raise max_parallel_downloads to 20
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/dnf/dnf.conf
|
|
|
|
regexp: "^max_parallel_downloads.="
|
|
|
|
line: "max_parallel_downloads=20"
|
|
|
|
|
|
|
|
- name: install dnf-automatic
|
|
|
|
package:
|
|
|
|
name: dnf-automatic
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: configure dnf-automatic
|
2022-03-01 02:36:13 +00:00
|
|
|
become: true
|
2021-04-05 05:18:41 +00:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/dnf/automatic.conf
|
|
|
|
state: present
|
|
|
|
regexp: "{{ item.regexp }}"
|
|
|
|
line: "{{ item.line }}"
|
|
|
|
with_items:
|
|
|
|
- { regexp: '^upgrade_type.=', line: 'upgrade_type = security' }
|
2022-03-01 02:36:13 +00:00
|
|
|
- { regexp: '^emit_via.=', line: 'emit_via = stdio,motd' }
|
2021-07-10 01:35:14 +00:00
|
|
|
- { regexp: '^apply_updates.=', line: 'apply_updates = yes' }
|
2021-04-05 05:18:41 +00:00
|
|
|
|
|
|
|
- name: enable dnf-automatic timer
|
|
|
|
systemd:
|
|
|
|
name: dnf-automatic.timer
|
|
|
|
state: started
|
|
|
|
enabled: yes
|