Current simple bash installer have hardcoded version and you should go to https://www.nomachine.com/download/download&id=1, check current version and edit it accordingly.
This role looks good enough with figuring it out automatically: https://github.com/kirill-gr/ansible-role-nomachine