mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
[cloud] make docs for ec2_group rules more clear (#22701)
make ec2_group pep8 removed ec2_group from pep8 legacy files
This commit is contained in:
parent
a4552c11b3
commit
8ccde6fbb0
2 changed files with 9 additions and 7 deletions
|
@ -43,11 +43,14 @@ options:
|
||||||
required: false
|
required: false
|
||||||
rules:
|
rules:
|
||||||
description:
|
description:
|
||||||
- List of firewall inbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no inbound rules will be enabled. Rules list may include its own name in `group_name`. This allows idempotent loopback additions (e.g. allow group to acccess itself).
|
- List of firewall inbound rules to enforce in this group (see example). If none are supplied,
|
||||||
|
no inbound rules will be enabled. Rules list may include its own name in `group_name`.
|
||||||
|
This allows idempotent loopback additions (e.g. allow group to acccess itself).
|
||||||
required: false
|
required: false
|
||||||
rules_egress:
|
rules_egress:
|
||||||
description:
|
description:
|
||||||
- List of firewall outbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no outbound rules will be enabled.
|
- List of firewall outbound rules to enforce in this group (see example). If none are supplied,
|
||||||
|
a default all-out rule is assumed. If an empty list is supplied, no outbound rules will be enabled.
|
||||||
required: false
|
required: false
|
||||||
version_added: "1.6"
|
version_added: "1.6"
|
||||||
state:
|
state:
|
||||||
|
@ -333,7 +336,7 @@ def main():
|
||||||
# reflected in the object returned by the AWS API
|
# reflected in the object returned by the AWS API
|
||||||
# call. We re-read the group for getting an updated object
|
# call. We re-read the group for getting an updated object
|
||||||
# amazon sometimes takes a couple seconds to update the security group so wait till it exists
|
# amazon sometimes takes a couple seconds to update the security group so wait till it exists
|
||||||
while len(ec2.get_all_security_groups(filters={ 'group_id': group.id, })) == 0:
|
while len(ec2.get_all_security_groups(filters={'group_id': group.id})) == 0:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
group = ec2.get_all_security_groups(group_ids=(group.id,))[0]
|
group = ec2.get_all_security_groups(group_ids=(group.id,))[0]
|
||||||
|
|
|
@ -28,7 +28,6 @@ lib/ansible/modules/cloud/amazon/ec2_customer_gateway.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_elb.py
|
lib/ansible/modules/cloud/amazon/ec2_elb.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_eni.py
|
lib/ansible/modules/cloud/amazon/ec2_eni.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_eni_facts.py
|
lib/ansible/modules/cloud/amazon/ec2_eni_facts.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_group.py
|
|
||||||
lib/ansible/modules/cloud/amazon/ec2_lc.py
|
lib/ansible/modules/cloud/amazon/ec2_lc.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py
|
lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_remote_facts.py
|
lib/ansible/modules/cloud/amazon/ec2_remote_facts.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue