Wed, 13 Apr 2016 12:53:48 -0400
Remove separate roles
17 | 1 | --- |
2 | # Create/update my user, don't clobber my extra groups. | |
3 | - name: User setup | |
4 | user: | |
5 | name: "{{user.name}}" | |
6 | comment: "{{user.comment}}" | |
7 | shell: /bin/zsh | |
8 | groups: sudo | |
9 | append: true | |
10 | register: user | |
11 | tags: user | |
12 | ||
29 | 13 | - name: "ssh : Pubkey for user" |
17 | 14 | authorized_key: |
15 | manage_dir: true | |
16 | user: "{{user.name}}" | |
17 | key: "{{item}}" | |
18 | with_file: | |
19 | - public_keys/{{user.name}} | |
20 | tags: user, ssh | |
21 |