DCD-224: Move EC2 metadata retrieval to aws_common

This commit is contained in:
Steve Smith
2019-04-11 12:02:41 +10:00
parent bc893a0a2e
commit 1651b7b3ee
5 changed files with 9 additions and 11 deletions

View File

@@ -6,3 +6,8 @@
- 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

@@ -1,3 +1,3 @@
---
dependencies:
- aws_metadata
- aws_common

View File

@@ -4,7 +4,7 @@
file:
state: directory
path: "{{ atl_shared_mountpoint }}"
owner: "{{ product_user }}"
owner: "{{ atl_product_user }}"
mode: 0755
- name: Enable mountpoint in fstab

View File

@@ -1,7 +0,0 @@
---
# This role is primarily intended to be depended on via `meta` by
# roles that need runtime information available.
- name: Fetch local EC2 metadata
ec2_metadata_facts: