I have a task like this :
- name: install jetbrains toolbox
changed_when:
block:
- name: download toolbox
get_url:
url: 'https://download.jetbrains.com/toolbox/jetbrains-toolbox-{{ toolbox_version }}.tar.gz'
dest: /tmp/toolbox.tar.gz
- name: open toolbox
unarchive:
src: /tmp/toolbox.tar.gz
dest: /opt/jetbrains-toolbox
args:
creates: /opt/jetbrains-toolbox
But it yields an error : ERROR! 'changed_when' is not a valid attribute for a Block
How can I skip the download download of /opt/jetbrains-toolbox.tar.gz
skip the download if /opt/jetbrains-toolbox
is already there ?