project-config/playbooks/javascript/release.yaml
Monty Taylor 5ad44f84d4 Wrap upload-npm invocation in a block
Before ansible 2.7 this is needed for the delegate_to to apply.

Change-Id: Icf0c36f94e55a9d8ef8ac123fde441af48303b25
2019-03-14 20:55:23 +00:00

18 lines
510 B
YAML

- hosts: all
roles:
- fetch-javascript-output
- version-from-git
- fetch-javascript-tarball
- hosts: all
tasks:
# project_ver is set by set_fact in version-from-git, but that runs on
# the remote host, which puts the fact into the hostvars of that host.
# Now that we're running on localhost, we need to reach in to the remote
# hosts vars to get the value.
- block:
- name: Upload to npm
include_role:
name: upload-npm
delegate_to: localhost