User's ssh-keys are a list that is now being iterated over
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
basic_users:
|
basic_users:
|
||||||
- name: "madonius"
|
- name: "madonius"
|
||||||
ssh_auth_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3HexVmU/vTVFUFk2AAB1h3mOOrfFPt1Gq2cBldaYnn madonius@iapeptus
|
ssh_auth_key:
|
||||||
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3HexVmU/vTVFUFk2AAB1h3mOOrfFPt1Gq2cBldaYnn madonius@iapeptus
|
||||||
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICjSv7S3EMXmmpuHs7AtrK/D3x5zMiRlcddKgrAoqMTt ekampitakis@aretousa
|
||||||
uid: 1337
|
uid: 1337
|
||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
comment: ""
|
comment: ""
|
||||||
|
|||||||
@@ -12,5 +12,6 @@
|
|||||||
- name: Copy local ssh key to authorized keys file
|
- name: Copy local ssh key to authorized keys file
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: "{{ os_user.name }}"
|
user: "{{ os_user.name }}"
|
||||||
key: "{{ os_user.ssh_auth_key }}"
|
key: "{{ item }}"
|
||||||
|
loop: "{{ os_user.ssh_auth_keys }}"
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
Reference in New Issue
Block a user