mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix dangerous elb_application_lb state (#44646)
* elb_application_lb: fix dangerous default of deleting an ELB if state is omitted by changing state to default to present to be more like other AWS modules
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
bugfixes:
|
||||
- elb_application_lb - Fix a dangerous behavior of deleting an ELB if state was omitted from the task.
|
||||
Now state defaults to 'present', which is typical throughout AWS modules.
|
||||
@@ -102,7 +102,7 @@ options:
|
||||
state:
|
||||
description:
|
||||
- Create or destroy the load balancer.
|
||||
required: true
|
||||
default: present
|
||||
choices: [ 'present', 'absent' ]
|
||||
tags:
|
||||
description:
|
||||
@@ -528,7 +528,7 @@ def main():
|
||||
subnets=dict(type='list'),
|
||||
security_groups=dict(type='list'),
|
||||
scheme=dict(default='internet-facing', choices=['internet-facing', 'internal']),
|
||||
state=dict(choices=['present', 'absent'], type='str'),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
tags=dict(type='dict'),
|
||||
wait_timeout=dict(type='int'),
|
||||
wait=dict(default=False, type='bool'),
|
||||
|
||||
Reference in New Issue
Block a user