Skip to content

Instantly share code, notes, and snippets.

View jonnymccullagh's full-sized avatar

Jonny McCullagh jonnymccullagh

View GitHub Profile
@jonnymccullagh
jonnymccullagh / export-awx-inventory.py
Created November 19, 2020 12:55 — forked from rpetti/export-awx-inventory.py
Export Ansible AWX/Tower Inventory to a standard Inventory
#!/usr/bin/python
import requests
import argparse
import sys
parser = argparse.ArgumentParser(description='Convert Ansible AWX/Tower Inventory to standard inventory')
parser.add_argument('--url', required=True, help='base url of AWX/Tower')
parser.add_argument('-u', '--username', help='username')