diff --git a/changelogs/fragments/aws_lightsail_documentation_fix.yml b/changelogs/fragments/aws_lightsail_documentation_fix.yml new file mode 100644 index 00000000000..a27c8115400 --- /dev/null +++ b/changelogs/fragments/aws_lightsail_documentation_fix.yml @@ -0,0 +1,3 @@ +--- +bugfixes: +- fix example code for AWS lightsail documentation diff --git a/lib/ansible/modules/cloud/amazon/lightsail.py b/lib/ansible/modules/cloud/amazon/lightsail.py index 03a647f9055..83bd57d98b4 100644 --- a/lib/ansible/modules/cloud/amazon/lightsail.py +++ b/lib/ansible/modules/cloud/amazon/lightsail.py @@ -93,7 +93,7 @@ EXAMPLES = ''' msg: "Name is {{ my_instance.instance.name }}" - debug: - msg: "IP is {{ my_instance.instance.publicIpAddress }}" + msg: "IP is {{ my_instance.instance.public_ip_address }}" # Delete an instance if present - lightsail: