Skip to content

Instantly share code, notes, and snippets.

Last active May 29, 2017
What would you like to do?
Ansible generate public/private SSH keys
- name: Generate public/private SSH keys for an existing user (will not overwrite existing keys)
name: root
generate_ssh_key: yes
ssh_key_bits: 2048
ssh_key_file: /root/.ssh/id_rsa
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment