'Execute curl command in ansible playbook

I am trying to Install RKE2 with Ansible.

but the command for installing RKE2 aren't apt commands

command for installing rke2 is

curl -sfL https://get.rke2.io |  INSTALL_RKE2_VERSION=v1.21.6+rke2r1 sh -

I have no idea how to convert this command into playbook code

I did checked other posts about curl - ansible but it doesn't help on my case



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source