diff options
author | Takashi Sugimura <sugitk@users.noreply.github.com> | 2019-05-10 07:44:53 +0900 |
---|---|---|
committer | Alicia Cozine <879121+acozine@users.noreply.github.com> | 2019-05-09 17:44:53 -0500 |
commit | 5346a5cdac3f10f3d950a743ef963dc129996f1c (patch) | |
tree | f2ed6d1af12b9b5b7e845003ad727ce9d1936d79 | |
parent | 748cfd89ab087bdfe1eab98de164c7c226705911 (diff) | |
download | ansible-5346a5cdac3f10f3d950a743ef963dc129996f1c.tar.gz |
updated to describe required parameter (#56197)
* update ec2.py to describe required parameters for each option for `state`
-rw-r--r-- | lib/ansible/modules/cloud/amazon/ec2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index 6e0998d55d..238209d5eb 100644 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -195,11 +195,11 @@ options: state: version_added: "1.3" description: - - create, terminate, start, stop or restart instances. - The state 'restarted' was added in 2.2 - required: false + - Create, terminate, start, stop or restart instances. The state 'restarted' was added in Ansible 2.2. + - When 'absent', I(instance_ids) is required. + - When 'running', 'stopped' and 'restarted', I(instance_ids) or I(instance_tags) is required. default: 'present' - choices: ['present', 'absent', 'running', 'restarted', 'stopped'] + choices: ['absent', 'present', 'restarted', 'running', 'stopped'] type: str volumes: version_added: "1.5" |