Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
32 lines
893 B
YAML
32 lines
893 B
YAML
---
|
|
|
|
- name: Create SSH key
|
|
ansible.builtin.user:
|
|
name: root
|
|
generate_ssh_key: true
|
|
ssh_key_file: "{{ evobackup_client__root_key_path }}"
|
|
ssh_key_type: "{{ evobackup_client__root_key_type }}"
|
|
register: evobackup_client__root_key
|
|
tags:
|
|
- evobackup_client
|
|
- evobackup_client_backup_ssh_key
|
|
|
|
- name: Print SSH key
|
|
ansible.builtin.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
|
|
|
|
- name: 'copy ssh public key to backup server'
|
|
ansible.builtin.copy:
|
|
content: "{{ evobackup_client__root_key.ssh_public_key }}"
|
|
dest: "/root/{{ evolinux_hostname }}.pub"
|
|
become: true
|
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
|
tags:
|
|
- evobackup_client
|
|
- evobackup_client_backup_ssh_key
|
|
- evobackup_client_jail
|