From 5107f164a23dcb88836aba646a8b50308cc154fa Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Thu, 6 Aug 2020 10:32:46 -0400 Subject: [PATCH] Expanding examples --- awx_collection/plugins/modules/tower_import.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awx_collection/plugins/modules/tower_import.py b/awx_collection/plugins/modules/tower_import.py index eeea7b35a3..0dddeb64a0 100644 --- a/awx_collection/plugins/modules/tower_import.py +++ b/awx_collection/plugins/modules/tower_import.py @@ -35,11 +35,16 @@ extends_documentation_fragment: awx.awx.auth ''' EXAMPLES = ''' -- name: Import all tower assets +- name: Export all assets + tower_export: + all: True + registeR: export_output + +- name: Import all tower assets from our export tower_import: assets: "{{ export_output.assets }}" -- name: Import orgs from a json file +- name: Load data from a json file created by a command like awx export --organization Default tower_import: assets: "{{ lookup('file', 'org.json') | from_json() }}" '''