replace depracted aws module (#178)

Co-authored-by: Lauber, Simon <Simon.Lauber@adesso-service.com>
This commit is contained in:
ThorstenHeck
2023-10-20 17:17:06 +02:00
committed by GitHub
parent f241fd34d0
commit 73c00ab7b6
2 changed files with 2 additions and 4 deletions

View File

@ -13,10 +13,9 @@
- ansible_os_family == "FreeBSD"
- name: Retrieve all ec2 tags on the instance
ec2_tag:
amazon.aws.ec2_tag_info:
region: '{{ ansible_ec2_placement_region }}'
resource: '{{ ansible_ec2_instance_id }}'
state: list
when:
- telegraf_agent_aws_tags
register: ec2_tags

View File

@ -13,10 +13,9 @@
- ansible_os_family in ["FreeBSD", "Darwin"]
- name: Retrieve all ec2 tags on the instance
ec2_tag:
amazon.aws.ec2_tag_info:
region: '{{ ansible_ec2_placement_region }}'
resource: '{{ ansible_ec2_instance_id }}'
state: list
when:
- telegraf_agent_aws_tags
register: ec2_tags