From 05e6eda4533c4ec2f6a934e3c5093fc3e1b4ba25 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 14 Feb 2018 12:29:02 -0500 Subject: [PATCH] use --export option for ansible-inventory --- awx/main/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 02da90efc4..859c55a63a 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1903,6 +1903,8 @@ class RunInventoryUpdate(BaseTask): # Pass inventory source ID to inventory script. env['INVENTORY_SOURCE_ID'] = str(inventory_update.inventory_source_id) env['INVENTORY_UPDATE_ID'] = str(inventory_update.pk) + # Always use the --export option for ansible-inventory + env['ANSIBLE_INVENTORY_EXPORT'] = str(True) # Set environment variables specific to each source. #