Export AWX/Tower Inventory to a standard Inventory of ansible
Export Ansible AWX/Tower Inventory to a standard Inventory I use awx in work, but sometimes ineed export hosts from awx database to local ansible. For this proporses i writed script and share it on gitlab #!/usr/bin/env python3.8 import psycopg2 import os import yaml AWX_DB_HOST = os.getenv('AWX_DB_HOST', '10.48.0.101') AWX_DB_PORT = os.getenv('AWX_DB_PORT', '15432') AWX_DB_NAME = os.getenv('AWX_DB_NAME', 'awx') […]
Читать дальше… from Export AWX/Tower Inventory to a standard Inventory of ansible