Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

An Ansible role to configure SSH and setup SSH keys for a given user

Notifications You must be signed in to change notification settings

DylanGore-FYP/ansible-role-configure-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-configure-ssh

All Contributors

GitHub Workflow Status

An Ansible role to configure SSH and setup SSH keys for a given user.

Role Variables

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

Example Playbook

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

Commit Message Convention

This project uses Gitmoji for commit organisation. For more details see the Gitmoji Repository.

Contributors


Dylan Gore

💻 📖 🤔

Mohit Taneja

🤔

This project follows the all-contributors specification.

About

An Ansible role to configure SSH and setup SSH keys for a given user

Topics

Resources

Stars

Watchers

Forks