ansible-roles/evobackup-client/tasks/ssh_key.yml
Patrick Marchand 1c12827c9c
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build encountered an error
Added evobackup-client role
2019-08-30 14:43:52 -04:00

21 lines
479 B
YAML

---
- name: Create SSH key
user:
name: root
generate_ssh_key: true
ssh_key_file: "{{ evobackup-client__root_key_path }}"
ssh_key_type: rsa
register: evobackup-client__root_key
tags:
- evobackup-client
- evobackup-client-backup-ssh_key
- name: Print SSH key
debug:
var: evobackup-client__root_key.ssh_public_key
when: evobackup-client__root_key.ssh_public_key is defined
tags:
- evobackup-client
- evobackup-client-backup-ssh_key