From 6fb1bfd98a3316362a6d3c1f573f7434d291098d Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Sat, 25 May 2024 17:39:29 +0200 Subject: [PATCH] add bullseye support --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index beb06cc..f25686d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,7 +6,7 @@ notify: update initramfs template: src: config.j2 - dest: /etc/dropbear-initramfs/config + dest: "{% if (ansible_distribution_release|lower) in ['buster', 'bullseye'] %}/etc/dropbear-initramfs/config{% else %}/etc/dropbear/initramfs/dropbear.conf{% endif %}" mode: 0644 owner: root group: root @@ -16,7 +16,7 @@ notify: update initramfs template: src: authorized_keys.j2 - dest: /etc/dropbear-initramfs/authorized_keys + dest: "{% if (ansible_distribution_release|lower) in ['buster', 'bullseye'] %}/etc/dropbear-initramfs/authorized_keys{% else %}/etc/dropbear/initramfs/authorized_keys{% endif %}" mode: 0644 owner: root group: root @@ -27,7 +27,7 @@ copy: src: /root/.ssh/authorized_keys remote_src: true - dest: /etc/dropbear-initramfs/authorized_keys + dest: "{% if (ansible_distribution_release|lower) in ['buster', 'bullseye'] %}/etc/dropbear-initramfs/authorized_keys{% else %}/etc/dropbear/initramfs/authorized_keys{% endif %}" mode: 0644 owner: root group: root -- GitLab