mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
use --export option for ansible-inventory
This commit is contained in:
parent
3a0f2ce2fe
commit
b01deb393e
@ -1892,6 +1892,8 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
# Pass inventory source ID to inventory script.
|
# Pass inventory source ID to inventory script.
|
||||||
env['INVENTORY_SOURCE_ID'] = str(inventory_update.inventory_source_id)
|
env['INVENTORY_SOURCE_ID'] = str(inventory_update.inventory_source_id)
|
||||||
env['INVENTORY_UPDATE_ID'] = str(inventory_update.pk)
|
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.
|
# Set environment variables specific to each source.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user