mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Make ec2 exact_count and count mutually exclusive
This commit is contained in:
@@ -1033,7 +1033,15 @@ def main():
|
||||
volumes = dict(type='list'),
|
||||
)
|
||||
)
|
||||
module = AnsibleModule(argument_spec=argument_spec)
|
||||
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
mutually_exclusive = [
|
||||
['exact_count', 'count'],
|
||||
['exact_count', 'state'],
|
||||
['exact_count', 'instance_ids']
|
||||
],
|
||||
)
|
||||
|
||||
ec2 = ec2_connect(module)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user