mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
ITOPS-1671 get clusternode from ec2_facts else fqdn
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
ec2_metadata_facts:
|
||||
tags:
|
||||
- notest
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Use EC2 instance ID for cluster node ID
|
||||
set_fact:
|
||||
atl_cluster_node_id: "{{ ansible_ec2_instance_id }}"
|
||||
atl_local_ipv4: "{{ ansible_ec2_local_ipv4 | default(ansible_default_ipv4) }}"
|
||||
atl_cluster_node_id: "{{ ansible_ec2_instance_id | default(ansible_fqdn) }}"
|
||||
atl_local_ipv4: "{{ ansible_ec2_local_ipv4 | default(ansible_default_ipv4.address) }}"
|
||||
|
||||
Reference in New Issue
Block a user