ansible/roles/homeassistant/files/auth-command.sh

8 lines
196 B
Bash
Executable file

#!/bin/sh
set -eu
curl -sf -X POST -H "Content-Type: application/json" -d @- \
https://id.foo.sh/authcheck <<EOF
{"username": "${username}", "password": "${password}", "group": "foosh"}
EOF