Skip to content

Instantly share code, notes, and snippets.

@Rudd-O
Created March 12, 2013 03:26
Show Gist options
  • Save Rudd-O/5140074 to your computer and use it in GitHub Desktop.
Save Rudd-O/5140074 to your computer and use it in GitHub Desktop.
tasks:
- name: obtain SSH key of the backup server
action: shell cat /root/.ssh/id_rsa.pub
delegate_to: $backupserver
register: ssh_key
- name: deploy SSH key of the backup server
action: authorized_key key='${ssh_key.stdout}' user=root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment