From b9de59d6b2801aeb0b440e21d8c29a1426d8efb1 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Thu, 22 Sep 2022 16:38:19 +0200 Subject: [PATCH] Update bools in ec2_instance (#1055) Update bools documentation in ec2_instance SUMMARY See also #1041 ISSUE TYPE Docs Pull Request COMPONENT NAME ec2_instance ADDITIONAL INFORMATION Split from #978 to work around CI issues Reviewed-by: Alina Buzachis --- changelogs/fragments/1055-bools.yml | 2 ++ plugins/modules/ec2_instance.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/1055-bools.yml diff --git a/changelogs/fragments/1055-bools.yml b/changelogs/fragments/1055-bools.yml new file mode 100644 index 00000000000..d3e9d43f975 --- /dev/null +++ b/changelogs/fragments/1055-bools.yml @@ -0,0 +1,2 @@ +trivial: +- various modules - Adjust booleans from ``yes``/``no`` to ``true``/``false`` in docs (https://github.com/ansible-collections/amazon.aws/pull/1055). diff --git a/plugins/modules/ec2_instance.py b/plugins/modules/ec2_instance.py index 0f4f481848e..392ed92be66 100644 --- a/plugins/modules/ec2_instance.py +++ b/plugins/modules/ec2_instance.py @@ -492,7 +492,7 @@ region: us-east-2 vpc_subnet_id: subnet-0123456 network: - assign_public_ip: yes + assign_public_ip: true security_group: default tags: foo: bar @@ -505,7 +505,7 @@ count: 3 region: us-east-2 network: - assign_public_ip: yes + assign_public_ip: true security_group: default vpc_subnet_id: subnet-0123456 state: present