remove undefined YAML anchor (#62273)
This commit is contained in:
parent
c7f9c3f27e
commit
efdf52a254
1 changed files with 0 additions and 8 deletions
|
@ -66,7 +66,6 @@
|
||||||
- device_name: /dev/sda1
|
- device_name: /dev/sda1
|
||||||
ebs:
|
ebs:
|
||||||
delete_on_termination: true
|
delete_on_termination: true
|
||||||
<<: *aws_connection_info
|
|
||||||
register: in_test_vpc
|
register: in_test_vpc
|
||||||
|
|
||||||
- name: Try to re-make the instance, hopefully this shows changed=False
|
- name: Try to re-make the instance, hopefully this shows changed=False
|
||||||
|
@ -83,7 +82,6 @@
|
||||||
security_groups: "{{ sg.group_id }}"
|
security_groups: "{{ sg.group_id }}"
|
||||||
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
||||||
instance_type: t2.micro
|
instance_type: t2.micro
|
||||||
<<: *aws_connection_info
|
|
||||||
register: remake_in_test_vpc
|
register: remake_in_test_vpc
|
||||||
- name: "Remaking the same instance resulted in no changes"
|
- name: "Remaking the same instance resulted in no changes"
|
||||||
assert:
|
assert:
|
||||||
|
@ -105,12 +103,10 @@
|
||||||
security_groups: "{{ sg.group_id }}"
|
security_groups: "{{ sg.group_id }}"
|
||||||
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
||||||
instance_type: t2.micro
|
instance_type: t2.micro
|
||||||
<<: *aws_connection_info
|
|
||||||
register: add_another_tag
|
register: add_another_tag
|
||||||
|
|
||||||
- ec2_instance_info:
|
- ec2_instance_info:
|
||||||
instance_ids: "{{ add_another_tag.instance_ids }}"
|
instance_ids: "{{ add_another_tag.instance_ids }}"
|
||||||
<<: *aws_connection_info
|
|
||||||
register: check_tags
|
register: check_tags
|
||||||
- name: "Remaking the same instance resulted in no changes"
|
- name: "Remaking the same instance resulted in no changes"
|
||||||
assert:
|
assert:
|
||||||
|
@ -129,10 +125,8 @@
|
||||||
security_groups: "{{ sg.group_id }}"
|
security_groups: "{{ sg.group_id }}"
|
||||||
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
vpc_subnet_id: "{{ testing_subnet_b.subnet.id }}"
|
||||||
instance_type: t2.micro
|
instance_type: t2.micro
|
||||||
<<: *aws_connection_info
|
|
||||||
- ec2_instance_info:
|
- ec2_instance_info:
|
||||||
instance_ids: "{{ add_another_tag.instance_ids }}"
|
instance_ids: "{{ add_another_tag.instance_ids }}"
|
||||||
<<: *aws_connection_info
|
|
||||||
register: check_tags
|
register: check_tags
|
||||||
- name: "Remaking the same instance resulted in no changes"
|
- name: "Remaking the same instance resulted in no changes"
|
||||||
assert:
|
assert:
|
||||||
|
@ -144,7 +138,6 @@
|
||||||
filters:
|
filters:
|
||||||
tag:TestId: "{{ resource_prefix }}"
|
tag:TestId: "{{ resource_prefix }}"
|
||||||
state: absent
|
state: absent
|
||||||
<<: *aws_connection_info
|
|
||||||
register: result
|
register: result
|
||||||
- assert:
|
- assert:
|
||||||
that: result.changed
|
that: result.changed
|
||||||
|
@ -153,7 +146,6 @@
|
||||||
ec2_instance:
|
ec2_instance:
|
||||||
instance_ids: "{{ in_test_vpc.instance_ids }}"
|
instance_ids: "{{ in_test_vpc.instance_ids }}"
|
||||||
state: absent
|
state: absent
|
||||||
<<: *aws_connection_info
|
|
||||||
register: result
|
register: result
|
||||||
- assert:
|
- assert:
|
||||||
that: not result.changed
|
that: not result.changed
|
||||||
|
|
Loading…
Reference in a new issue