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