Created
March 2, 2016 09:33
-
-
Save nailgun/1e36695655765cfa0959 to your computer and use it in GitHub Desktop.
Ansible generate SSH key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: ensure SSH key is generated | |
command: ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' | |
args: | |
creates: /root/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment