"Request failed: <urlopen error [Errno -2] Name or service not known>"

Hi, I’m trying to download Maven but I get the following error:

fatal: [app01]: FAILED! => {“changed”: false, “dest”: “/opt/apache-maven-3.1.0-bin.tar.gz”, “elapsed”: 10, “msg”: “Request failed: <urlopen error [Errno -2] Name or service not known>”, “url”: “https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.1.0/apache-maven-3.1.0-bin.tar.gz”}

My playbook task is like this:

If I ctrl click on the link works

It’s clearly a problem with name resolution on destination host. Is not a problem related to ansible.

Luca