mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-224: Move EC2 metadata fetching to the role top-level.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user