Set up gatekeeper user (pi)

This is the user that will manage door and shutters
This commit is contained in:
Stefan Haun 2022-07-23 17:35:08 +02:00
parent 2b800e247c
commit fbde9090a9
2 changed files with 12 additions and 0 deletions

View file

@ -77,6 +77,7 @@ all:
platon.n39.eu:
server_admin: "admin+platon@netz39.de"
mac: "b8:27:eb:8f:98:2f"
gatekeeper_user: pi
radon.n39.eu:
server_admin: "admin+radon@netz39.de"
krypton.n39.eu:

View file

@ -45,3 +45,14 @@
ansible.builtin.copy:
src: files/platon/sesam-door-open.sh
dest: /home/sesam/door-open.sh
### Gatekeeper user (pi for now)
#
# All the gatekeeping / door control stuff is here!
- name: Ensure gatekeeper user is there
ansible.builtin.user:
name: "{{ gatekeeper_user }}"
groups: dialout,audio,plugdev,input,netdev,i2c,gpio
append: yes