This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import argparse | |
import sys | |
# add terms to this list which will be ignored for ini file generation. | |
# eg. every host var that contains ther term remote_tower will be ignored | |
exclude_host_vars = [ 'remote_tower'] | |
parser = argparse.ArgumentParser(description='Convert Ansible AWX/Tower Inventory to standard inventory') |