Skip to content

Commit

Permalink
replace depracted aws module (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Lauber, Simon <[email protected]>
  • Loading branch information
daparm and Lauber, Simon authored Oct 20, 2023
1 parent f241fd3 commit 73c00ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tasks/configure_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tasks/configure_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73c00ab

Please sign in to comment.