fix use of ec2 tags

This commit is contained in:
Lee Goolsbee
2024-03-26 14:04:46 -05:00
parent 635bd5da9a
commit b0824a858c

View File

@@ -40,7 +40,7 @@
when:
- item.key not in ['Name']
- item.key is not match("aws:.*")
with_dict: "{{ ec2_instance_tags }}"
with_dict: "{{ ec2_instance_tags.tags }}"
- name: apply the tags from the ec2 instance to the ebs volume
amazon.aws.ec2_tag: