summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Sullivan <ssulliva@redhat.com>2024-05-15 15:29:00 +0200
committerGitHub <noreply@github.com>2024-05-15 15:29:00 +0200
commit1b8d4090435b1ce32a1a007c1e29b6fb1b792dea (patch)
tree6424207ccf56e27c32a68105ed253c3b07d149e7
parentBump jinja2 from 3.1.3 to 3.1.4 in /docs/docsite (#15168) (diff)
downloadawx-1b8d4090435b1ce32a1a007c1e29b6fb1b792dea.tar.xz
awx-1b8d4090435b1ce32a1a007c1e29b6fb1b792dea.zip
Add skip authorization option to collection application module (#15190)
-rw-r--r--awx_collection/plugins/modules/application.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/awx_collection/plugins/modules/application.py b/awx_collection/plugins/modules/application.py
index 1933143af3..4c858394d8 100644
--- a/awx_collection/plugins/modules/application.py
+++ b/awx_collection/plugins/modules/application.py
@@ -121,6 +121,7 @@ def main():
client_type = module.params.get('client_type')
organization = module.params.get('organization')
redirect_uris = module.params.get('redirect_uris')
+ skip_authorization = module.params.get('skip_authorization')
state = module.params.get('state')
# Attempt to look up the related items the user specified (these will fail the module if not found)
@@ -146,6 +147,8 @@ def main():
application_fields['description'] = description
if redirect_uris is not None:
application_fields['redirect_uris'] = ' '.join(redirect_uris)
+ if skip_authorization is not None:
+ application_fields['skip_authorization'] = skip_authorization
response = module.create_or_update_if_needed(application, application_fields, endpoint='applications', item_type='application', auto_exit=False)
if 'client_id' in response: