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