diff --git a/defaults/main.yml b/defaults/main.yml index a986c3a..adabec6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,10 @@ --- zigbee2mqtt_version: 0.1.8 -zigbee2mqtt_group: zigbee2mqtt + zigbee2mqtt_user: zigbee2mqtt +zigbee2mqtt_group: zigbee2mqtt +zigbee2mqtt_secondary_groups: + - tty + - dialout + zigbee2mqtt_base_dir: /opt/zigbee2mqtt diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 165d0a2..3e3f4f3 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -41,5 +41,6 @@ user: name: "{{ zigbee2mqtt_user }}" group: "{{ zigbee2mqtt_group }}" + groups: "{{ zigbee2mqtt_secondary_groups }}" become: True become_user: root