Skip to content

fdb713/ansible_inventory_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_inventory_parser

Parse ansible inventory files/directories to ssh config

install requirements

pip install -r ./requirements.txt

docopt

Usage:
parse.py [--header=] [--output=] [--verbose] [--indent=] INVENTORY...
parse.py -h | --help
parse.py -V | --version

Options: -h --help Show this screen.
-V --version Show version.
-v --verbose Debug.
-o=FILE --output= Save output as file.
-H=FILE --header= Load custom header. [default: header]
-i --indent= Indent. [default: 2]

example

./parse.py /etc/ansible/hosts -o /tmp/config -H header.example

About

parse ansible inventory file to ssh config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages