Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Is it possible to tag an ENI in ansible?
23 views
Skip to first unread message
Karl Auer
unread,
Apr 6, 2018, 11:55:20 PM
4/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages