An Ansible role to configure SSH and setup SSH keys for a given user.
Name | Type | Default | Required | Description |
---|---|---|---|---|
ssh_require_key_auth | boolean | true | No | Require public key authentication for SSH |
ssh_key_user | string | {{ ansible_ssh_user }} |
No | The user to add the keys to |
ssh_keys | list-string | Empty List | No | The list of SSH keys to add |
The example playbook below shows the basic usage of this role.
playbook.yml
- hosts: servers
become: true
roles:
- role: configure_ssh
ssh_key_user: ubuntu
ssh_keys:
- '../files/key1.pub'
- '../files/key2.pub'
requirements.yml
- name: configure_ssh
src: https://github.com/DylanGore-FYP/ansible-role-configure-ssh.git
version: v1.0.0
This project uses Gitmoji for commit organisation. For more details see the Gitmoji Repository.
Dylan Gore 💻 📖 🤔 |
Mohit Taneja 🤔 |
This project follows the all-contributors specification.