Skip to content
Snippets Groups Projects
Unverified Commit 6fb1bfd9 authored by nd's avatar nd
Browse files

add bullseye support

parent d81091f7
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
notify: update initramfs notify: update initramfs
template: template:
src: config.j2 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 mode: 0644
owner: root owner: root
group: root group: root
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
notify: update initramfs notify: update initramfs
template: template:
src: authorized_keys.j2 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 mode: 0644
owner: root owner: root
group: root group: root
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
copy: copy:
src: /root/.ssh/authorized_keys src: /root/.ssh/authorized_keys
remote_src: true 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 mode: 0644
owner: root owner: root
group: root group: root
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment