在我的Ansible Playbook的这个片段中,我在instance_tags
部分标记了EC2实例本身,但是有什么方法可以标记创建的卷吗?Ansible在EC2上创建标记卷
在文档(http://docs.ansible.com/ansible/latest/ec2_module.html)中,似乎答案是否定的,但我想在此问一下以确认。
tasks:
- name: EC2 Instance
ec2:
aws_access_key: <hidden>
aws_secret_key: <hidden>
instance_type: c4.4xlarge
image: ami-221ea342
monitoring: yes
region: us-west-2
wait: yes
volumes:
- device_name: /dev/xvda
volume_type: gp2
volume_size: 80
- device_name: /dev/xvdf
volume_type: gp2
volume_size: 500
exact_count: 2
count_tag:
Component: "MyEC2"
Environment: Production
<snip>
instance_tags:
Component: "MyEC2"
Environment: Production
<snip>