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:
- name: Donwload do maven
get_url:
url: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.1.0/apache-maven-3.1.0-bin.tar.gz
dest: /opt/apache-maven-3.1.0-bin.tar.gz
If I ctrl click on the link works