From d2a94b920a644b654e782acd6141736b566c0ec9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 11 Nov 2018 03:45:53 +0100 Subject: [PATCH] add secondary groups --- defaults/main.yml | 7 ++++++- tasks/prepare.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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