From bdb4cc72bf851677d20151b1cce6c7b0b12ea280 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 10 Mar 2024 00:17:51 +0100 Subject: [PATCH] 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 --- playbooks/luks_ssh.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/playbooks/luks_ssh.yml b/playbooks/luks_ssh.yml index a617489..8ce255c 100644 --- a/playbooks/luks_ssh.yml +++ b/playbooks/luks_ssh.yml @@ -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