mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Restart EC2 instances with multiple network interfaces A previous bug, #3234, caused instances with multiple ENI's to fail when being started or stopped because sourceDestCheck is a per-interface attribute, but we use the boto global access to it (which only works when there's a single ENI). This patch handles a variant of that bug that only surfaced when restarting an instance, and catches the same type of exception. * Default termination_protection to None instead of False AWS defaults the value of termination_protection to False, so we don't need to explicitly send `False` when the user hasn't specified a termination protection level. Before this patch, the below pair of tasks would: 1. Create an instance (enabling termination_protection) 2. Restart that instance (disabling termination_protection) Now, the default None value would prevent the restart task from disabling termination_protection. ``` - name: make an EC2 instance ec2: vpc_subnet_id: {{ subnet }} instance_type: t2.micro termination_protection: yes exact_count: 1 count_tag: Name: TestInstance instance_tags: Name: TestInstance group_id: {{ group }} image: ami-7172b611 wait: yes - name: restart a protected EC2 instance ec2: vpc_subnet_id: {{ subnet }} state: restarted instance_tags: Name: TestInstance group_id: {{ group }} image: ami-7172b611 wait: yes ``` |
9 years ago | |
|---|---|---|
| .. | ||
| __init__.py | 11 years ago | |
| _ec2_ami_search.py | 10 years ago | |
| cloudformation.py | 9 years ago | |
| ec2.py | 9 years ago | |
| ec2_ami.py | 10 years ago | |
| ec2_ami_find.py | 10 years ago | |
| ec2_asg.py | 9 years ago | |
| ec2_eip.py | 9 years ago | |
| ec2_elb.py | 10 years ago | |
| ec2_elb_lb.py | 10 years ago | |
| ec2_facts.py | 10 years ago | |
| ec2_group.py | 9 years ago | |
| ec2_key.py | 10 years ago | |
| ec2_lc.py | 10 years ago | |
| ec2_metric_alarm.py | 10 years ago | |
| ec2_scaling_policy.py | 10 years ago | |
| ec2_snapshot.py | 10 years ago | |
| ec2_tag.py | 10 years ago | |
| ec2_vol.py | 10 years ago | |
| ec2_vpc.py | 9 years ago | |
| ec2_vpc_net.py | 10 years ago | |
| elasticache.py | 10 years ago | |
| elasticache_subnet_group.py | 10 years ago | |
| iam.py | 10 years ago | |
| iam_cert.py | 9 years ago | |
| iam_policy.py | 9 years ago | |
| rds.py | 10 years ago | |
| rds_param_group.py | 10 years ago | |
| rds_subnet_group.py | 10 years ago | |
| route53.py | 10 years ago | |
| s3.py | 10 years ago | |