metalsmith/playbooks/integration/ssh-key.yaml
jacky06 2eed13885a Add the "---" into ansible yaml file
Change-Id: If4e684da58bffbe25d5bbed4dd4c56d0b5345114
Story: #2003783
Task: #26488
2018-09-16 01:41:07 -04:00

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 }}"