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