From 03a7c8a9537b0a650b1c2029e15487ae3c5c8969 Mon Sep 17 00:00:00 2001 From: NotAFile Date: Sun, 18 Mar 2018 02:59:08 +0100 Subject: [PATCH] adjust user config --- hosts | 2 ++ main.yaml | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 hosts diff --git a/hosts b/hosts new file mode 100644 index 0000000..a79acd0 --- /dev/null +++ b/hosts @@ -0,0 +1,2 @@ +[userhosts] +cirrus.togrand.xyz diff --git a/main.yaml b/main.yaml index dd22e3f..b18eda6 100644 --- a/main.yaml +++ b/main.yaml @@ -14,6 +14,9 @@ - name: "create users" user: name: "{{ item }}" + skeleton: "/etc/skel/" + shell: "/bin/bash" + become: true with_items: "{{ members | json_query('json[*].login') }}" - name: import user public keys @@ -21,4 +24,5 @@ key: "{{ git_url }}/{{ item }}.keys" exclusive: yes user: "{{ item }}" + become: true with_items: "{{ members | json_query('json[*].login') }}"