Skip to content

Instantly share code, notes, and snippets.

@dougluce
Created April 27, 2015 23:33
Show Gist options
  • Save dougluce/94bad06a0cd0ef6ecfd8 to your computer and use it in GitHub Desktop.
Save dougluce/94bad06a0cd0ef6ecfd8 to your computer and use it in GitHub Desktop.
- name: Ensure .ssh directory exists.
file: dest={{ key_file | dirname }} mode=700 owner=ansible state=directory
- name: Install ssh key
copy: content="{{ ssh_key }}" dest={{ key_file }} mode=600 owner=ansible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment