diff --git a/cloud/amazon/ec2_elb.py b/cloud/amazon/ec2_elb.py index 8ce5e004226..9f333764a5d 100644 --- a/cloud/amazon/ec2_elb.py +++ b/cloud/amazon/ec2_elb.py @@ -82,7 +82,7 @@ pre_tasks: local_action: module: ec2_elb instance_id: "{{ ansible_ec2_instance_id }}" - state: 'absent' + state: absent roles: - myrole post_tasks: @@ -91,7 +91,7 @@ post_tasks: module: ec2_elb instance_id: "{{ ansible_ec2_instance_id }}" ec2_elbs: "{{ item }}" - state: 'present' + state: present with_items: ec2_elbs """