mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Move EC2 metadata fetching to the role top-level.
This commit is contained in:
@@ -6,8 +6,3 @@
|
|||||||
- ec2-utils
|
- ec2-utils
|
||||||
- amazon-ssm-agent
|
- amazon-ssm-agent
|
||||||
- amazon-efs-utils
|
- 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
|
- name: Install distro-specific prerequisites
|
||||||
include: "{{ ansible_distribution|lower }}.yml"
|
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