Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

gmiroshnykov/ansible-role-add-ssh-keys-from-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

add-ssh-keys-from-github

Given a list of GitHub usernames, this Ansible role downloads their SSH public keys from GitHub and adds them to ~/.ssh/authorized_keys.

DEPRECATED

Ansible 1.9 and later supports importing SSH keys from a URL, which means you can import keys directly from GitHub like this:

- authorized_key: >
    user={{ ansible_user_id }}
    key=https://github.com/{{ item }}.keys
  with_items:
    - alice
    - bob
    - carol

Requirements

  • httplib2 - installed automatically via PIP

Role Variables

add_ssh_keys_from_github:
  usernames:
    - alice
    - bob
    - carol

License

BSD

Author Information

George Miroshnykov george.miroshnykov@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published