Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created January 19, 2014 08:36
Show Gist options
  • Save shohey1226/8502029 to your computer and use it in GitHub Desktop.
Save shohey1226/8502029 to your computer and use it in GitHub Desktop.
---
- hosts: servers
user: root
tasks:
- name: add user
user: name=kamesho
- authorized_key: user=kamesho key="{{ lookup('file', '/Users/kamesho/.ssh/id_rsa.pub') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment