Skip to content

An Ansible role that generates SSH keys for the Ansible control node.

License

Notifications You must be signed in to change notification settings

dgibbs64/ansible-role-generate_ssh_keys

Repository files navigation

generate_ssh_keys

An Ansible role that generates SSH keys for the Ansible control node.

Codacy grade GitHub Workflow Status GitHub tag (latest by date) MIT License

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:

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.

---
- name: converge
  hosts: all
  gather_facts: false

  roles:
    - role: dgibbs64.generate_ssh_keys

About

An Ansible role that generates SSH keys for the Ansible control node.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •