Comment wording

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-07 18:34:00 +01:00
parent 7fee72eb09
commit 320345868d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,6 +1,6 @@
--- ---
- name: Set up users for manual access - name: Create and configure users
user: user:
name: '{{ item.name }}' name: '{{ item.name }}'
shell: '{{ item.shell | default("/bin/bash") }}' shell: '{{ item.shell | default("/bin/bash") }}'
@ -19,7 +19,7 @@
group: '{{ item.name }}' group: '{{ item.name }}'
with_items: '{{ users }}' with_items: '{{ users }}'
- name: Install SSH keys for users - name: Install SSH keys for user
copy: copy:
content: '{{ item.ssh_key }}' content: '{{ item.ssh_key }}'
dest: '{% if item.name != "root" %}/home{% endif %}/{{ item.name }}/.ssh/authorized_keys' dest: '{% if item.name != "root" %}/home{% endif %}/{{ item.name }}/.ssh/authorized_keys'