Only install haveged on KVM instances

This commit is contained in:
Sam A. 2023-12-31 23:02:14 +01:00
parent 61fad5cab0
commit 0db32bf185
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -62,7 +62,6 @@
name:
- bind-utils
- firewalld
- haveged
- htop
- jq
- logrotate
@ -82,22 +81,26 @@
state: started
loop:
- firewalld
- haveged
- rsyslog
- name: LKRG installation
- name: Packages for KVM instances
when: virt_type == 'kvm'
block:
- name: Install LKRG package
- name: Install haveged and LKRG packages
ansible.builtin.dnf:
name: lkrg
name:
- haveged
- lkrg
state: present
- name: Ensure LKRG is enabled and running
- name: Ensure haveged and LKRG are enabled and running
ansible.builtin.service:
name: lkrg
name: "{{ item }}"
enabled: true
state: started
loop:
- haveged
- lkrg
- name: Configure firewall
ansible.builtin.import_tasks: firewall.yml