From 6b381aa79e14613b3595b05af725c1a4cc4b6e0d Mon Sep 17 00:00:00 2001 From: Akira Yokochi Date: Sat, 24 Jun 2023 00:59:16 +0900 Subject: [PATCH] Add example for ad_hoc_command module (#14106) --- awx_collection/plugins/modules/ad_hoc_command.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/awx_collection/plugins/modules/ad_hoc_command.py b/awx_collection/plugins/modules/ad_hoc_command.py index 3cdcd5aa47..7132b7f030 100644 --- a/awx_collection/plugins/modules/ad_hoc_command.py +++ b/awx_collection/plugins/modules/ad_hoc_command.py @@ -95,6 +95,13 @@ extends_documentation_fragment: awx.awx.auth ''' EXAMPLES = ''' +- name: Launch an Ad Hoc Command waiting for it to finish + ad_hoc_command: + inventory: Demo Inventory + credential: Demo Credential + module_name: command + module_args: echo I <3 Ansible + wait: true ''' RETURN = '''