homeassistant: Initial version of role
This commit is contained in:
parent
f3fc1b3f63
commit
810e64dde7
6 changed files with 108 additions and 0 deletions
8
roles/homeassistant/files/auth-command.sh
Executable file
8
roles/homeassistant/files/auth-command.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue