summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Yokochi <akira6592@gmail.com>2023-06-23 17:59:16 +0200
committerGitHub <noreply@github.com>2023-06-23 17:59:16 +0200
commit6b381aa79e14613b3595b05af725c1a4cc4b6e0d (patch)
tree4cba3c56fe83d7bc40c346704ad12a171904c9b3
parentRemove reference to unmaintained runner image (#14143) (diff)
downloadawx-6b381aa79e14613b3595b05af725c1a4cc4b6e0d.tar.xz
awx-6b381aa79e14613b3595b05af725c1a4cc4b6e0d.zip
Add example for ad_hoc_command module (#14106)22.4.0
-rw-r--r--awx_collection/plugins/modules/ad_hoc_command.py7
1 files changed, 7 insertions, 0 deletions
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 = '''