Ansible-inventory-to-ssh-config

Latest version: v1.1.0

Safety actively analyzes 623248 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.0

[New Feature]
- Support specifying ssh private key file in a inventory file.

yaml
Ansible inventoy
...

node3 ansible_host=192.168.0.7 ansible_ssh_private_key_file=~/.ssh/id_rsa_for_ansible

...


result

conf
ssh config
...

Host node3
HostName 192.168.0.7
IdentityFile ~/.ssh/id_rsa_for_ansible

...


New pkg: https://pypi.org/project/ansible-inventory-to-ssh-config/1.1.0/

1.0.1

1.0.0

1. Default without backup.
1. Support `--override` option, this would remove those host undefined in playbook.
1. Support parsing `ansibl_ssh_port`/`ansible_port` and `ansible_ssh_user`/`ansible_user` as host's SSH connection information.
1. Adjust dry run print result to ssh config format exactly.
1. Dependencies version limitation.
- ansible==2.10.5
- sshconf==0.2.5

0.0.4

0.0.2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.