mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adds missing keys to _collect_facts function
This commit is contained in:
parent
783a09d105
commit
b10859c192
1 changed files with 3 additions and 0 deletions
|
@ -244,11 +244,14 @@ def _collect_facts(resource):
|
|||
'db_name' : resource['DBName'],
|
||||
'availability_zone' : resource['AvailabilityZone'],
|
||||
'maintenance_window': resource['PreferredMaintenanceWindow'],
|
||||
'url' : resource['Endpoint']['Address'],
|
||||
'port' : resource['Endpoint']['Port']
|
||||
}
|
||||
|
||||
for node in resource['ClusterNodes']:
|
||||
if node['NodeRole'] in ('SHARED', 'LEADER'):
|
||||
facts['private_ip_address'] = node['PrivateIPAddress']
|
||||
facts['public_ip_address'] = node['PublicIPAddress']
|
||||
break
|
||||
|
||||
return facts
|
||||
|
|
Loading…
Reference in a new issue