Not so much a question as a comment.
I would like to tag the ENIs I create with Ansible.
ENI's certainly support tags, but the ec2_eni module doesn't have a "tags"
attribute.
I was able to tag the interfaces using the ec2_tag module, but it seems an
odd omission not to be able to tag on creation.
- ec2_tag:
region: "{{ region }}"
resource: '{{ item }}'
state: present
tags:
Name: "{{ group_name + '-' + server_name + '-primary-eni' }}"
GroupName: "{{ group_name }}"
with_items: "{{ eni_server_primary_facts.network_interfaces[0].id }}"
Regards, K.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5d4cf0a0-4300-45f8-98ea-d93cb3d81019%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.