0
0
ssh-key-rotation-role/README.md

28 lines
742 B
Markdown
Raw Normal View History

2023-11-08 00:50:44 +08:00
# Ansible role for SSH Key Rotation
2023-11-08 00:50:44 +08:00
An Ansible role that rotates SSH keys on remote servers. By default, the role generates an ed25519 key pair. The current date and Ansible group name are used as the name and comment of the key pair
## Example Playbook
```
---
- name: SSH Keys Rotation
hosts: all
remote_user: user
vars:
2023-11-08 00:50:44 +08:00
is_exclusive: yes
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
```
2023-11-08 00:50:44 +08:00
## Credits
2023-11-08 00:50:44 +08:00
This role is forked from [nyambati/ssh-key-rotation](https://github.com/nyambati/ssh-key-rotation/tree/master) by Thomas Nyambati.