roles/user/tasks/main.yml

Wed, 14 Jun 2017 21:11:54 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 14 Jun 2017 21:11:54 -0400
changeset 49
6dbfcfdf807c
parent 36
745c6a77bf68
child 50
8be666ca059e
permissions
-rw-r--r--

Fix firefox install (ESR, no weird repo)

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