2eed13885a
Change-Id: If4e684da58bffbe25d5bbed4dd4c56d0b5345114 Story: #2003783 Task: #26488
12 lines
256 B
YAML
12 lines
256 B
YAML
---
|
|
- name: Find a public SSH key file
|
|
find:
|
|
path: ~/.ssh/
|
|
pattern: id_*.pub
|
|
register: ssh_key_result
|
|
failed_when: ssh_key_result.matched < 1
|
|
|
|
- name: Set SSH public key fact
|
|
set_fact:
|
|
ssh_key_file: "{{ ssh_key_result.files[0].path }}"
|