From: Oleg Broytman Date: Fri, 21 Jun 2019 15:43:10 +0000 (+0300) Subject: User `phd` playbook: Update groups X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1baf3c0f205a7c89aae711cee2896513b0f24b10;p=ansible.git User `phd` playbook: Update groups Set different groups for localhost and servers --- 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