The page:
https://github.com/netbootxyz/netboot.xyz-docs/blob/master/docs/selfhosting.md
Has a flaw in the instructions. It is missing sudo in the last git clone step. Git clone fails, because /opt (and subdirectories) are only accessible to root/sudo.
Needs to be sudo git clone https://github.com/netbootxyz/netboot.xyz.git /opt/netboot.xyz
Or clone in another directory with write access for your username, somewhere besides /opt.
Same goes for the last command, ansible-playbook -i inventory site.yml
Also fails without sudo.
Thanks.