[...]
TASK [prepare : Check prom_tarball variable is set] **********************************************************************************
skipping: [localhost]
TASK [prepare : Try to stat /home/cblum/Downloads/prometheus] ************************************************************************
ok: [localhost]
TASK [prepare : Fail of /home/cblum/Downloads/prometheus is not found] ***************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find /home/cblum/Downloads/prometheus"}
PLAY RECAP ***************************************************************************************************************************
localhost : ok=6 changed=1 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0
Important to note is that somewhere the variable content is split at the space character, so that it checks if /home/cblum/Downloads/prometheus exists, which it really does not.
When we have a space in the prom_tarball variable, the playbook run fails.
What I have tried:
1 and 2 fail at this location, complaining that the file does not exist:
https://github.com/pcuzner/odf-grafana/blob/e1a96187d4866f45c230ba2c4c00f840d7593b2b/roles/prepare/tasks/extract_tarball.yml#L18
Important to note is that somewhere the variable content is split at the space character, so that it checks if /home/cblum/Downloads/prometheus exists, which it really does not.
3 fails later in the run
The variable content this time is not split at first and it continues until https://github.com/pcuzner/odf-grafana/blob/e1a96187d4866f45c230ba2c4c00f840d7593b2b/roles/prepare/tasks/extract_tarball.yml#L27
I have found no easy and immediate way to fix this in the code, but wanted to leave this here so it can eventually be fixed.
Obvious workaround is to rename the file so that we don't have a space in it: