roles/user/tasks/main.yml

Wed, 13 Apr 2016 12:43:00 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 13 Apr 2016 12:43:00 -0400
changeset 37
d6d4702712f7
parent 36
745c6a77bf68
child 50
8be666ca059e
permissions
-rw-r--r--

reload lightdm instead

---
# Create/update my user, don't clobber my extra groups.
- name: User setup
  user:
    name: "{{user.name}}"
    comment: "{{user.comment}}"
    shell: /bin/zsh
    groups: sudo
    append: true
  register: user
  tags: user

- name: "ssh : Pubkey for user"
  authorized_key:
    manage_dir: true
    user: "{{user.name}}"
    key: "{{item}}"
  with_file:
    - public_keys/{{user.name}}
  tags: user, ssh

mercurial