roles/user/tasks/main.yml

Wed, 13 Apr 2016 12:59:06 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 13 Apr 2016 12:59:06 -0400
changeset 40
7325a3c8fbb3
parent 36
745c6a77bf68
child 50
8be666ca059e
permissions
-rw-r--r--

var cleanup

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