Member-only story
Ansible troubleshooting get_url— Destination does not exist
How to reproduce the destination does not exist error in Ansible, troubleshooting, and fix to be able to successfully download a file from an URL in a home directory with your Ansible playbook.
4 min readDec 26, 2021
Today we’re going to talk about Ansible troubleshooting, specifically about the destination does not exist error
. I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
demo
The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the destination does not exist error
and how to solve it!
error code
- destinationdoesnotexist_error.yml
---
- name: get_url module demo
hosts: all
become: false
vars:
myurl: "https://releases.ansible.com/ansible/ansible-2.9.25.tar.gz"
mycrc: "sha256:https://releases.ansible.com/ansible/ansible-2.9.25.tar.gz.sha"
mydest: "ansible-2.9.25.tar.gz"
tasks:
- name: download file
ansible.builtin.get_url:
url: "{{ myurl }}"
dest: "{{ mydest }}"
checksum: "{{ mycrc }}"…