https://github.com/dgibbs64/ansible-role-generate_ssh_keys
An Ansible role that generates SSH keys for the Ansible control node.
https://github.com/dgibbs64/ansible-role-generate_ssh_keys
Last synced: 2 months ago
JSON representation
An Ansible role that generates SSH keys for the Ansible control node.
- Host: GitHub
- URL: https://github.com/dgibbs64/ansible-role-generate_ssh_keys
- Owner: dgibbs64
- License: mit
- Created: 2022-08-27T22:02:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T13:38:39.000Z (3 months ago)
- Last Synced: 2025-02-28T19:38:51.409Z (3 months ago)
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# generate_ssh_keys
An [Ansible](https://www.ansible.com) role that generates SSH keys for the Ansible [control node](https://docs.ansible.com/ansible/latest/network/getting_started/basic_concepts.html#control-node).
## About
The following SSH key types are added to the control node when this role is run:
- RSA
- DSA
- ECDSA
- ED25519## Requirements
None.
## Role Variables
The default values for the variables are set in `defaults/main.yml`:
```yaml
key_directory: "~/.ssh"
key_rsa: "id_rsa"
key_dsa: id_dsa
key_ecdsa: "id_ecdsa"
key_ed25519: "id_ed25519"
ssh_key_comment: "ansible-ssh-key"
```## Dependencies
None.
## Example Playbook
This example is taken from `molecule/default/converge.yml` and is tested on each push, pull request and release.
```yaml
---
- name: converge
hosts: all
gather_facts: falseroles:
- role: dgibbs64.generate_ssh_keys
```