Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jdauphant/ansible-role-ssh-config

Generate a ~/.ssh/config with your inventory
https://github.com/jdauphant/ansible-role-ssh-config

Last synced: 24 days ago
JSON representation

Generate a ~/.ssh/config with your inventory

Awesome Lists containing this project

README

        

ansible-role-ssh_config
===========================

Generate a ~/.ssh/config with your inventory (keep your old .ssh/config in backup)

Available on Ansible Galaxy : https://galaxy.ansible.com/jdauphant/ssh-config/

# Playbook example :
```
---
- hosts: all
sudo: no
gather_facts: yes

- hosts: localhost
connection: local
sudo: false
roles:
- jdauphant.ssh-config
```
# Notes
- You need to gather_facts of your hosts before the run the role in local
- You old .ssh/config is keep in backup and integrated to the new .ssh/config