tobiko/roles/tobiko-ensure-ssh-keys/defaults/main.yaml
Federico Ressi 9296789da9 Generate SSH keys on the first host in the inventory
Allows to generate SSH keys on a managed host or on localhost

Change-Id: I29ec62661c3fe280f9f1101ca79985cb9cf5b4cb
2022-02-08 13:55:52 +01:00

9 lines
265 B
YAML

---
ssh_key_host: '{{ hostvars | first }}'
ssh_local_key_file: '{{ playbook_dir }}/id_{{ ssh_key_algorithm }}'
ssh_key_file: '{{ ansible_user_dir }}/.ssh/id_{{ ssh_key_algorithm }}'
ssh_key_algorithm: ecdsa
ssh_key_size: 521
ssh_key_user: '{{ ansible_ssh_user }}'