From 5ad44f84d45b985a3b106c699b810691cfe1ee1f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 14 Mar 2019 20:55:23 +0000 Subject: [PATCH] Wrap upload-npm invocation in a block Before ansible 2.7 this is needed for the delegate_to to apply. Change-Id: Icf0c36f94e55a9d8ef8ac123fde441af48303b25 --- playbooks/javascript/release.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playbooks/javascript/release.yaml b/playbooks/javascript/release.yaml index 156f6a737d..291be43ba5 100644 --- a/playbooks/javascript/release.yaml +++ b/playbooks/javascript/release.yaml @@ -10,7 +10,8 @@ # 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. - - name: Upload to npm - include_role: - name: upload-npm + - block: + - name: Upload to npm + include_role: + name: upload-npm delegate_to: localhost