# This task list sets up the needed users----name:Create usersbecome:yesbecome_method:subecome_user:"root"vars:ansible_become_pass:rootblock:-name:Standard uservars:username:odroidblock:-name:Create useransible.builtin.user:name:"{{username}}"create_home:yesappend:yesgroups:wheel, videostate:presentpassword:"{{username|password_hash('sha512')}}"shell:"/bin/bash"-name:Add ssh key to odroidansible.posix.authorized_key:user:"{{username}}"key:"{{lookup('file',ansible_ssh_public_key_file)}}"-name:autom8 uservars:username:autom8block:-name:Create useransible.builtin.user:name:"{{username}}"create_home:yesstate:present-name:add SSH keyansible.posix.authorized_key:user:"{{username}}"state:presentkey:"{{lookup('file','autom8_public_key')}}"manage_dir:yes-name:allow shutting downansible.builtin.lineinfile:path:/etc/sudoersstate:presentline:'ALLALL=NOPASSWD:/sbin/halt,/sbin/reboot,/sbin/poweroff,/sbin/shutdownnow'validate:/usr/sbin/visudo -cf %s