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:
parent
5f3ebc26e0
commit
85be3c7692
@ -1090,7 +1090,7 @@ def tower(cls):
|
||||
},
|
||||
injectors={
|
||||
'env': {
|
||||
'TOWER_HOSTNAME': '{{host}}',
|
||||
'TOWER_HOST': '{{host}}',
|
||||
'TOWER_USERNAME': '{{username}}',
|
||||
'TOWER_PASSWORD': '{{password}}',
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user