From 45df5ba9c419169a9682f81e3baf569f3fc8946c Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 7 Apr 2020 10:18:55 -0400 Subject: [PATCH] Manually document tower host default --- awx_collection/plugins/doc_fragments/auth.py | 2 +- awx_collection/plugins/module_utils/ansible_tower.py | 2 +- awx_collection/plugins/module_utils/tower_api.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx_collection/plugins/doc_fragments/auth.py b/awx_collection/plugins/doc_fragments/auth.py index ab6eded044..9018f8f26d 100644 --- a/awx_collection/plugins/doc_fragments/auth.py +++ b/awx_collection/plugins/doc_fragments/auth.py @@ -16,7 +16,7 @@ options: description: - URL to your Tower or AWX instance. - If value not set, will try environment variable C(TOWER_HOST) and then config files - default: '127.0.0.1' + - If value not specified by any means, the value of C(127.0.0.1) will be used type: str tower_username: description: diff --git a/awx_collection/plugins/module_utils/ansible_tower.py b/awx_collection/plugins/module_utils/ansible_tower.py index 1610183c9a..c51b410127 100644 --- a/awx_collection/plugins/module_utils/ansible_tower.py +++ b/awx_collection/plugins/module_utils/ansible_tower.py @@ -124,7 +124,7 @@ def tower_check_mode(module): class TowerModule(AnsibleModule): def __init__(self, argument_spec, **kwargs): args = dict( - tower_host=dict(default='127.0.0.1'), + tower_host=dict(), tower_username=dict(), tower_password=dict(no_log=True), validate_certs=dict(type='bool', aliases=['tower_verify_ssl']), diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index 4fc32d8e6b..b7145e15f4 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -47,7 +47,7 @@ class TowerModule(AnsibleModule): def __init__(self, argument_spec, **kwargs): args = dict( - tower_host=dict(required=False, default='127.0.0.1', fallback=(env_fallback, ['TOWER_HOST'])), + tower_host=dict(required=False, fallback=(env_fallback, ['TOWER_HOST'])), tower_username=dict(required=False, fallback=(env_fallback, ['TOWER_USERNAME'])), tower_password=dict(no_log=True, required=False, fallback=(env_fallback, ['TOWER_PASSWORD'])), validate_certs=dict(type='bool', aliases=['tower_verify_ssl'], required=False, fallback=(env_fallback, ['TOWER_VERIFY_SSL'])),