lowercase usernames

This commit is contained in:
NotAFile 2018-03-18 14:15:24 +01:00
parent 58225636d7
commit b7278a503a
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
- name: "create users"
user:
name: "{{ item }}"
name: "{{ item | lower }}"
skeleton: "/etc/skel/"
shell: "/bin/bash"
become: true
@ -23,7 +23,7 @@
authorized_key:
key: "{{ git_url }}/{{ item }}.keys"
exclusive: yes
user: "{{ item }}"
user: "{{ item | lower }}"
become: true
with_items: "{{ members | json_query('json[*].login') }}"