Set the argument type for ec2_vol's encrypted parameter
If this is not set, Ansible parses the parameter as a string. This is fine if the parameter is not provided by the caller, but if it is set to False or True explicitly, ec2_vol receives this as the string 'False' or the string 'True', both of which are truthy. Thus, without this fix, setting the parameter results in encryption always enabled.
This commit is contained in:
parent
f2b72e62c0
commit
18f4f5dcc6
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ def main():
|
||||||
volume_size = dict(),
|
volume_size = dict(),
|
||||||
volume_type = dict(choices=['standard', 'gp2', 'io1'], default='standard'),
|
volume_type = dict(choices=['standard', 'gp2', 'io1'], default='standard'),
|
||||||
iops = dict(),
|
iops = dict(),
|
||||||
encrypted = dict(),
|
encrypted = dict(type='bool', default=False),
|
||||||
device_name = dict(),
|
device_name = dict(),
|
||||||
zone = dict(aliases=['availability_zone', 'aws_zone', 'ec2_zone']),
|
zone = dict(aliases=['availability_zone', 'aws_zone', 'ec2_zone']),
|
||||||
snapshot = dict(),
|
snapshot = dict(),
|
||||||
|
|
Loading…
Reference in a new issue