DCD-224: Move EC2 metadata fetching to the role top-level.

This commit is contained in:
Steve Smith
2019-04-11 12:25:23 +10:00
parent 1651b7b3ee
commit ab00c1f9bd
2 changed files with 5 additions and 5 deletions

View File

@@ -6,8 +6,3 @@
- ec2-utils
- amazon-ssm-agent
- amazon-efs-utils
- name: Fetch local EC2 metadata
ec2_metadata_facts:
# Guard is mostly for testing
when: ansible_system_vendor == "Amazon EC2"

View File

@@ -2,3 +2,8 @@
- name: Install distro-specific prerequisites
include: "{{ ansible_distribution|lower }}.yml"
- name: Fetch local EC2 metadata
ec2_metadata_facts:
# Guard is mostly for testing
when: ansible_system_vendor == "Amazon EC2"