mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
track azure vm by unique identifier
This commit is contained in:
@@ -242,7 +242,8 @@ class AzureInventory(object):
|
|||||||
|
|
||||||
self.host_metadata[hostname] = dict(ansible_ssh_host=dest,
|
self.host_metadata[hostname] = dict(ansible_ssh_host=dest,
|
||||||
ansible_ssh_port=int(ssh_port),
|
ansible_ssh_port=int(ssh_port),
|
||||||
instance_status=status)
|
instance_status=status,
|
||||||
|
private_id=deployment.private_id)
|
||||||
|
|
||||||
# List of all azure deployments
|
# List of all azure deployments
|
||||||
self.push(self.inventory, "azure", hostname)
|
self.push(self.inventory, "azure", hostname)
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ AZURE_ENABLED_VALUE = 'ReadyRole'
|
|||||||
AZURE_GROUP_FILTER = r'^.+$'
|
AZURE_GROUP_FILTER = r'^.+$'
|
||||||
AZURE_HOST_FILTER = r'^.+$'
|
AZURE_HOST_FILTER = r'^.+$'
|
||||||
AZURE_EXCLUDE_EMPTY_GROUPS = True
|
AZURE_EXCLUDE_EMPTY_GROUPS = True
|
||||||
AZURE_INSTANCE_ID_VAR = None
|
AZURE_INSTANCE_ID_VAR = 'private_id'
|
||||||
|
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user