forked from evolix/ansible-roles
d226ce594a
Not just esthetic, for some reason ansible refused to run with '-' somewhere and I just could not find where, changing variables and tags to use '_' fixed it. It's more consistent anyway.
21 lines
479 B
YAML
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
|