From 5346a5cdac3f10f3d950a743ef963dc129996f1c Mon Sep 17 00:00:00 2001 From: Takashi Sugimura Date: Fri, 10 May 2019 07:44:53 +0900 Subject: [PATCH] updated to describe required parameter (#56197) * update ec2.py to describe required parameters for each option for `state` --- lib/ansible/modules/cloud/amazon/ec2.py | 8 ++++---- 1 file 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"