0
0
Ansible role for SSH Key Rotation
Go to file
2023-11-08 00:50:44 +08:00
defaults Modified the role + Updated the LICENSE 2023-11-07 21:39:17 +08:00
tasks Modified the role + Updated the LICENSE 2023-11-07 21:39:17 +08:00
LICENSE Modified the role + Updated the LICENSE 2023-11-07 21:39:17 +08:00
README.md Updated the README.md 2023-11-08 00:50:44 +08:00

Ansible role for SSH Key Rotation

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:
    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

Credits

This role is forked from nyambati/ssh-key-rotation by Thomas Nyambati.