Files
dc-deployments-automation/roles/aws_common/tasks/main.yml

15 lines
393 B
YAML

---
- name: Install distro-specific prerequisites
include_tasks: "{{ ansible_distribution|lower }}.yml"
- name: Fetch local EC2 metadata
ec2_metadata_facts:
tags:
- notest
- 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.address) }}"