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
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