bootstrap: fix hosts, add dnf tasks, -nmcli phoning home

This commit is contained in:
Josh Lay 2021-04-05 00:18:41 -05:00
parent 4709837027
commit c9bfb20e2a
2 changed files with 61 additions and 15 deletions

View 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