Skip to content

piroux/ansible-ini2yaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Ansible INI to YAML inventory converter

This repository contains a Python script for converting Ansible inventories in INI format to YAML format.

Usage

$ ./ini2yaml -h
usage: ini2yaml [-h] [-m {inventory,flat}] [-d] ini_filepath

Read a INI file and print it converted to a YAML format on stdout

positional arguments:
  ini_filepath          File path of the source INI file

optional arguments:
  -h, --help            show this help message and exit
  -m {inventory,flat}, --mode {inventory,flat}
                        Mode chosen for the final YAML file
  -d, --disable-default-section
                        Add one default section (required if the INI source
                        file is section-less)

About

Ansible INI to YAML inventory converter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%