28 lines
735 B
Markdown
28 lines
735 B
Markdown
# SSH Key Rotation
|
|
|
|
This is Ansible role that enables you to rotate ssh keys on your remote servers. Forked from [nyambati/ssh-key-rotation](https://github.com/nyambati/ssh-key-rotation/tree/master). By default, this role generates an ed25519 key pair with the Ansible group and the current date as its name.
|
|
|
|
## Example Playbook
|
|
|
|
```
|
|
---
|
|
- name: SSH Keys Rotation
|
|
hosts: all
|
|
remote_user: user
|
|
vars:
|
|
is_exclusive: no
|
|
ssh_host_user: user
|
|
vars_prompt:
|
|
- name: passphrase
|
|
prompt: "Enter the passphrase"
|
|
private: true
|
|
- name: confirm_passphrase
|
|
prompt: "Confirm the passphrase"
|
|
private: true
|
|
roles:
|
|
- ssh-key-rotation
|
|
```
|
|
|
|
## Original Author
|
|
|
|
Thomas Nyambati <thomasnyambati@gmail.com> |