1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Align inventory variables with Ansible modules

This commit is contained in:
Matthew Jones 2017-10-26 16:40:10 -04:00
parent 5f3ebc26e0
commit 85be3c7692
No known key found for this signature in database
GPG Key ID: 76A4C17A97590C1C
2 changed files with 3 additions and 3 deletions

View File

@ -1090,7 +1090,7 @@ def tower(cls):
},
injectors={
'env': {
'TOWER_HOSTNAME': '{{host}}',
'TOWER_HOST': '{{host}}',
'TOWER_USERNAME': '{{username}}',
'TOWER_PASSWORD': '{{password}}',
}

View File

@ -51,7 +51,7 @@ def parse_configuration():
help='Return all hosts known to Tower given a particular inventory',
)
parser.parse_args()
host_name = os.environ.get("TOWER_HOSTNAME", None)
host_name = os.environ.get("TOWER_HOST", None)
username = os.environ.get("TOWER_USERNAME", None)
password = os.environ.get("TOWER_PASSWORD", None)
ignore_ssl = os.environ.get("TOWER_IGNORE_SSL", "1").lower() in ("1", "yes", "true")
@ -60,7 +60,7 @@ def parse_configuration():
errors = []
if not host_name:
errors.append("Missing TOWER_HOSTNAME in environment")
errors.append("Missing TOWER_HOST in environment")
if not username:
errors.append("Missing TOWER_USERNAME in environment")
if not password: