This commit is contained in:
Jeroen Oudshoorn
2024-01-06 23:21:28 +01:00
parent cb469ad74c
commit ff361848df

View File

@ -167,7 +167,7 @@
tasks: tasks:
- name: Create pi user - name: Create pi user
copy: copy:
dest: /boot/userconf dest: /boot/firmware/userconf
content: | content: |
pi:$6$3jNr0GA9KIyt4hmM$efeVIopdMQ8DGgEPCWWlbx3mJJNAYci1lEXGdlky0xPyjqwKNbwTL5SrCcpb4144C4IvzWjn7Iv.QjqmU7iyT/ pi:$6$3jNr0GA9KIyt4hmM$efeVIopdMQ8DGgEPCWWlbx3mJJNAYci1lEXGdlky0xPyjqwKNbwTL5SrCcpb4144C4IvzWjn7Iv.QjqmU7iyT/
@ -478,12 +478,12 @@
- name: enable ssh on boot - name: enable ssh on boot
file: file:
path: /boot/ssh path: /boot/firmware/ssh
state: touch state: touch
- name: adjust /boot/config.txt - name: adjust /boot/config.txt
lineinfile: lineinfile:
dest: /boot/config.txt dest: /boot/firmware/config.txt
insertafter: EOF insertafter: EOF
line: '{{ item }}' line: '{{ item }}'
with_items: "{{ system.boot_options }}" with_items: "{{ system.boot_options }}"
@ -497,7 +497,7 @@
- name: change root partition - name: change root partition
replace: replace:
dest: /boot/cmdline.txt dest: /boot/firmware/cmdline.txt
backup: no backup: no
regexp: "root=PARTUUID=[a-zA-Z0-9\\-]+" regexp: "root=PARTUUID=[a-zA-Z0-9\\-]+"
replace: "root=/dev/mmcblk0p2" replace: "root=/dev/mmcblk0p2"
@ -606,11 +606,6 @@
with_fileglob: with_fileglob:
- "/etc/ssh/ssh_host*_key*" - "/etc/ssh/ssh_host*_key*"
- name: regenerate ssh keys
shell: "dpkg-reconfigure openssh-server"
args:
executable: /bin/bash
handlers: handlers:
- name: reload systemd services - name: reload systemd services
systemd: systemd: