adjust user config

This commit is contained in:
NotAFile 2018-03-18 02:59:08 +01:00
parent f3fe57ca09
commit 03a7c8a953
2 changed files with 6 additions and 0 deletions

2
hosts Normal file
View File

@ -0,0 +1,2 @@
[userhosts]
cirrus.togrand.xyz

View File

@ -14,6 +14,9 @@
- name: "create users" - name: "create users"
user: user:
name: "{{ item }}" name: "{{ item }}"
skeleton: "/etc/skel/"
shell: "/bin/bash"
become: true
with_items: "{{ members | json_query('json[*].login') }}" with_items: "{{ members | json_query('json[*].login') }}"
- name: import user public keys - name: import user public keys
@ -21,4 +24,5 @@
key: "{{ git_url }}/{{ item }}.keys" key: "{{ git_url }}/{{ item }}.keys"
exclusive: yes exclusive: yes
user: "{{ item }}" user: "{{ item }}"
become: true
with_items: "{{ members | json_query('json[*].login') }}" with_items: "{{ members | json_query('json[*].login') }}"