Commit 8df079e0 authored by Patrick Fenner's avatar Patrick Fenner
Browse files

initial commit

parents
Get SSH public keys via Github
Pulls the ssh pubkeys from Github of the specified username. Then installs
those for the specified user.
```
ansible-playbook ssh_keys.yaml -i <hostname>, --extra-vars "ansible_user=<username> github_user=<github_username"
```
- name: add github public keys
authorized_key:
state: present
user: "{{ ansible_user }}"
key: "https://github.com/{{ github_user }}.keys"
zs.defproc.co.uk
---
- name: Install some ssh keys from github
hosts: all
roles:
- ssh_keys
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment