Skip to content
Snippets Groups Projects
Commit 27ecead9 authored by Administrator's avatar Administrator
Browse files

change sshkey input from file to encrypted variable

parent 76e2e984
No related branches found
No related tags found
No related merge requests found
......@@ -16,11 +16,13 @@
comment: Limited Backup User
shell: /bin/bash
when: backup_user_create == True
- include_vars: vars_rsnapshot_private.yml
run_once: yes
- name: add backup ssh keys to servers
authorized_key:
user: "{{ backup_user }}"
state: present
key: "{{ lookup('pipe','cat ./public_keys/rsnapshot/*.pub') }}"
key: "{{ backupuser_ssh_key }}"
- name: copy rsync-wrapper.sh to remote host
copy:
src: rsync-wrapper.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment