Você deve conseguir acessar o valor de archive_name
a hostvars
:
- hosts: local
tasks:
# ... lots of local build steps here
- command: tar -czf {{ hostvars[groups['remote'][0]]['archive_name'] }} /build_dir
- hosts: remote
tasks:
- unarchive: src={{ hostvars[groups['remote'][0]]['archive_name'] }} dest=/deploy_dir