From 1baf3c0f205a7c89aae711cee2896513b0f24b10 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 21 Jun 2019 18:43:10 +0300 Subject: [PATCH] User `phd` playbook: Update groups Set different groups for localhost and servers --- playbooks/debian-init-user-phd.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/playbooks/debian-init-user-phd.yml b/playbooks/debian-init-user-phd.yml index a41f09b..1012d1d 100644 --- a/playbooks/debian-init-user-phd.yml +++ b/playbooks/debian-init-user-phd.yml @@ -2,10 +2,11 @@ hosts: all tasks: - name: Add user phd + become: true user: name: phd group: phd - groups: root,adm,disk,cdrom,www-data,plugdev,staff,users,sudo,Debian-exim,fuse + groups: root,adm,disk,cdrom,floppy,sudo,audio,www-data,video,plugdev,staff,users,Debian-exim,fuse,sambashare,input - name: Create folder ~phd/.ssh file: path: ~phd/.ssh @@ -20,3 +21,11 @@ owner: phd group: phd mode: 0700 +- name: Update local user phd + hosts: localhost + tasks: + - name: user phd + become: true + user: + name: phd + groups: root,adm,disk,cdrom,floppy,sudo,audio,www-data,video,plugdev,staff,users,Debian-exim,fuse,sambashare,bluetooth,davfs2,vboxusers,input -- 2.39.5