mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make state=present the default for ec2_tag
Using `ec2_tag` module without the state argument currently results in: ``` failed: [127.0.0.1] => {"failed": true, "parsed": false} ``` This fix makes `state=present` the default
This commit is contained in:
parent
d3f94fe606
commit
46a5f8c656
1 changed files with 4 additions and 3 deletions
|
@ -31,8 +31,9 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Whether the tags should be present or absent on the resource.
|
- Whether the tags should be present or absent on the resource.
|
||||||
required: true
|
required: false
|
||||||
default: null
|
default: present
|
||||||
|
choices: ['present', 'absent']
|
||||||
aliases: []
|
aliases: []
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
|
@ -116,7 +117,7 @@ def main():
|
||||||
resource = dict(required=True),
|
resource = dict(required=True),
|
||||||
tags = dict(required=True),
|
tags = dict(required=True),
|
||||||
region = dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),
|
region = dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),
|
||||||
state = dict(choices=['present', 'absent']),
|
state = dict(default='present', choices=['present', 'absent']),
|
||||||
ec2_url = dict(aliases=['EC2_URL']),
|
ec2_url = dict(aliases=['EC2_URL']),
|
||||||
ec2_secret_key = dict(aliases=['aws_secret_key', 'secret_key'], no_log=True),
|
ec2_secret_key = dict(aliases=['aws_secret_key', 'secret_key'], no_log=True),
|
||||||
ec2_access_key = dict(aliases=['aws_access_key', 'access_key']),
|
ec2_access_key = dict(aliases=['aws_access_key', 'access_key']),
|
||||||
|
|
Loading…
Reference in a new issue