Skip to content

Commit

Permalink
Clean up docs and make key_file and key_data mutually exclusive as de…
Browse files Browse the repository at this point in the history
…fined by the docs
  • Loading branch information
tremble committed Oct 15, 2021
1 parent 6e3830c commit e59e034
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugins/modules/ec2_win_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
---
module: ec2_win_password
version_added: 1.0.0
short_description: Gets the default administrator password for ec2 windows instances
short_description: Gets the default administrator password for EC2 Windows instances
description:
- Gets the default administrator password from any EC2 Windows instance. The instance is referenced by its id (e.g. C(i-XXXXXXX)).
- This module has a dependency on python-boto.
author: "Rick Mendes (@rickmendes)"
options:
instance_id:
Expand Down Expand Up @@ -55,9 +54,6 @@
requirements:
- cryptography
notes:
- As of Ansible 2.4, this module requires the python cryptography module rather than the
older pycrypto module.
'''

EXAMPLES = '''
Expand Down Expand Up @@ -129,7 +125,8 @@ def setup_module_object():
wait=dict(type='bool', default=False, required=False),
wait_timeout=dict(default=120, required=False, type='int'),
)
module = AnsibleAWSModule(argument_spec=argument_spec)
mutually_exclusive = [['key_file', 'key_data']]
module = AnsibleAWSModule(argument_spec=argument_spec, mutually_exclusive=mutually_exclusive)
return module


Expand Down

0 comments on commit e59e034

Please sign in to comment.