fix: extract public ssh key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
26e57d7b6f
commit
f32755f7d4
@ -91,8 +91,10 @@
|
|||||||
when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length >= 0
|
when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length >= 0
|
||||||
|
|
||||||
- name: Extract public SSH keys from private keys for user {{ unix_user.key }}
|
- name: Extract public SSH keys from private keys for user {{ unix_user.key }}
|
||||||
command: "ssh-keygen -y -f {{ user_user_home }}/.ssh/{{ item }} > {{ user_user_home }}/.ssh/{{ item }}.pub"
|
shell:
|
||||||
args:
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
cmd: "ssh-keygen -y -f {{ user_user_home }}/.ssh/{{ item }} > {{ user_user_home }}/.ssh/{{ item }}.pub"
|
||||||
creates: "{{ user_user_home }}/.ssh/{{ item }}.pub"
|
creates: "{{ user_user_home }}/.ssh/{{ item }}.pub"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ unix_user.value.ssh.private_keys }}"
|
- "{{ unix_user.value.ssh.private_keys }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user