fix(luks_ssh): Only install haveged on older systems

Newer systems do not need it anymore, because this is built in since kernel 5.4.

See https://github.com/jirka-h/haveged
This commit is contained in:
saibotk 2024-03-10 00:17:51 +01:00
parent 20e150f453
commit bdb4cc72bf
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -1,5 +1,4 @@
---
# Infrastructure
# Ansible instructions to deploy the infrastructure
# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern
@ -18,6 +17,12 @@
- name: Install & configure LUKS SSH setup
hosts: luks_ssh
roles:
- haveged
- luks_ssh
tasks:
- name: Install haveged
ansible.builtin.include_role:
name: haveged
when: ansible_kernel is version('5.4', '<')
- name: Install LUKS SSH
ansible.builtin.include_role:
name: luks_ssh