Can url path in get_url be build dynamically?

The following playbook will failed but exchanged with commented out line then it would work.
Is there a way to evaluate the url string in get_url?

Try using Ansible facts instead

url: https://github.com/docker/compose/releases/download/1.24.1/docker-compose-{{ ansible_system }}-{{ ansible_architecture }}

That worked great. Thank you.