bootstrap: fix hosts, add dnf tasks, -nmcli phoning home
This commit is contained in:
parent
4709837027
commit
c9bfb20e2a
2 changed files with 61 additions and 15 deletions
27
roles/bootstrap/tasks/dnf.yml
Normal file
27
roles/bootstrap/tasks/dnf.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- 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
|
||||
lineinfile:
|
||||
path: /etc/dnf/automatic.conf
|
||||
state: present
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
with_items:
|
||||
- { regexp: '^upgrade_type.=', line: 'upgrade_type = security' }
|
||||
- { regexp: '^emit_via.=', line: 'emit_via = stdio' }
|
||||
|
||||
- name: enable dnf-automatic timer
|
||||
systemd:
|
||||
name: dnf-automatic.timer
|
||||
state: started
|
||||
enabled: yes
|
Loading…
Add table
Add a link
Reference in a new issue