mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
replace depracted aws module (#178)
Co-authored-by: Lauber, Simon <Simon.Lauber@adesso-service.com>
This commit is contained in:
@ -13,10 +13,9 @@
|
|||||||
- ansible_os_family == "FreeBSD"
|
- ansible_os_family == "FreeBSD"
|
||||||
|
|
||||||
- name: Retrieve all ec2 tags on the instance
|
- name: Retrieve all ec2 tags on the instance
|
||||||
ec2_tag:
|
amazon.aws.ec2_tag_info:
|
||||||
region: '{{ ansible_ec2_placement_region }}'
|
region: '{{ ansible_ec2_placement_region }}'
|
||||||
resource: '{{ ansible_ec2_instance_id }}'
|
resource: '{{ ansible_ec2_instance_id }}'
|
||||||
state: list
|
|
||||||
when:
|
when:
|
||||||
- telegraf_agent_aws_tags
|
- telegraf_agent_aws_tags
|
||||||
register: ec2_tags
|
register: ec2_tags
|
||||||
|
@ -13,10 +13,9 @@
|
|||||||
- ansible_os_family in ["FreeBSD", "Darwin"]
|
- ansible_os_family in ["FreeBSD", "Darwin"]
|
||||||
|
|
||||||
- name: Retrieve all ec2 tags on the instance
|
- name: Retrieve all ec2 tags on the instance
|
||||||
ec2_tag:
|
amazon.aws.ec2_tag_info:
|
||||||
region: '{{ ansible_ec2_placement_region }}'
|
region: '{{ ansible_ec2_placement_region }}'
|
||||||
resource: '{{ ansible_ec2_instance_id }}'
|
resource: '{{ ansible_ec2_instance_id }}'
|
||||||
state: list
|
|
||||||
when:
|
when:
|
||||||
- telegraf_agent_aws_tags
|
- telegraf_agent_aws_tags
|
||||||
register: ec2_tags
|
register: ec2_tags
|
||||||
|
Reference in New Issue
Block a user