Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions goss/goss_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ file:
contents: [
'root=/dev/mmcblk0p2'
]
/boot/userconf.txt:
exists: true
owner: root
group: root
filetype: file
contents: 'pi:*'
command:
'rootfs label':
exit-status: 0
Expand Down
8 changes: 5 additions & 3 deletions tasks/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
line: PermitRootLogin yes

- name: Disable pi user
user:
name: pi
password: '*'
copy:
content: 'pi:*'
dest: /boot/userconf.txt
owner: root
group: root

- name: Make sure disk resize is not automatically set for first boot
file:
Expand Down
Loading