https://github.com/pimvh/add_github_hostkeys
Ansible role to add SSH hostkeys for Github
https://github.com/pimvh/add_github_hostkeys
ansible github hostkeys molecule-tested role
Last synced: about 2 months ago
JSON representation
Ansible role to add SSH hostkeys for Github
- Host: GitHub
- URL: https://github.com/pimvh/add_github_hostkeys
- Owner: pimvh
- License: gpl-3.0
- Created: 2022-12-16T21:25:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T18:51:37.000Z (about 2 years ago)
- Last Synced: 2025-03-14T12:12:55.799Z (over 1 year ago)
- Topics: ansible, github, hostkeys, molecule-tested, role
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Requirements
1. Ansible installed:
```
sudo apt install python3
python3 -m ensurepip --upgrade
pip3 install ansible
```
# Why such a small role?
I found myself repeating this small piece of logic in several playbooks. I though it would be easier to do it once, and include it everywhere else.
## Required variables
Review the variables as shown in defaults.
The ansible playbook will validate whether the variables exist that you defined before running.
# Example playbook
```
hosts:
- foo
roles:
- pimvh.add_github_hostkeys
```
# TLDR - What will happen if I run this
- Add the hostkeys of GitHub fetch via the API to the systems known_host file (/etc/ssh/ssh_known_hosts) specified in the passed list.