Hi,
On a simple run (calling the role with no option) I get this error:
TASK [netbox : create postgresql database] *************************************************************************************************************************************************
fatal: [ec2-myinstance.eu-west-2.compute.amazonaws.com]: FAILED! => {"msg": "Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user. Unprivileged become user would be unable to read the file."}
I think this is related to an open issue in ansible, not your role directly, I open the issue to trace it because you could encounter it too.
Here is the thread on the ansible side: ansible/ansible#16052 (comment)