diff --git a/changelogs/fragments/377-ec2_elb_lb-boto3.yml b/changelogs/fragments/377-ec2_elb_lb-boto3.yml index ebee68bc985..e32a65a12ce 100644 --- a/changelogs/fragments/377-ec2_elb_lb-boto3.yml +++ b/changelogs/fragments/377-ec2_elb_lb-boto3.yml @@ -6,5 +6,3 @@ minor_changes: - elb_classic_lb - added support for wait during instance addition and removal (https://github.com/ansible-collections/amazon.aws/pull/377). - elb_classic_lb - added retries on common AWS temporary API failures (https://github.com/ansible-collections/amazon.aws/pull/377). - elb_classic_lb - various error messages changed due to refactor (https://github.com/ansible-collections/amazon.aws/pull/377). -breaking_changes: -- elb_classic_lb - no longer returns ansible_facts (https://github.com/ansible-collections/amazon.aws/pull/377). diff --git a/plugins/modules/elb_classic_lb.py b/plugins/modules/elb_classic_lb.py index 781dc42ee8e..cd143113b13 100644 --- a/plugins/modules/elb_classic_lb.py +++ b/plugins/modules/elb_classic_lb.py @@ -2143,7 +2143,13 @@ def main(): elb = elb_man.get_info() ec2_result = dict(elb=elb) - module.exit_json(changed=elb_man.changed, **ec2_result) + ansible_facts = {'ec2_elb': 'info'} + + module.exit_json( + ansible_facts=ansible_facts, + changed=elb_man.changed, + **ec2_result, + ) if __name__ == '__main__':