--- - name: Create the archive dir file: path={{ nomad_root_dir }}/archives/{{ nomad_current_version }} state=directory tags: nomad - name: Backup previous version copy: src={{ nomad_root_dir }}/bin/nomad dest={{ nomad_root_dir }}/archives/{{ nomad_current_version }}/ remote_src=True tags: nomad