Manually document tower host default

This commit is contained in:
AlanCoding 2020-04-07 10:18:55 -04:00
parent b90a296d41
commit 45df5ba9c4
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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']),

View File

@ -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'])),