Only install haveged on KVM instances
This commit is contained in:
parent
61fad5cab0
commit
0db32bf185
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue