From b4a1eacd7f341e77cb305227deaf2f332ef9e1db Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Fri, 15 Sep 2017 20:29:38 -0400 Subject: [PATCH] Actually assert commented requirements Ansible can't understand comments, but it can understand asserts. Signed-off-by: Chris Evich --- contrib/test/crio-integration-playbook.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/contrib/test/crio-integration-playbook.yaml b/contrib/test/crio-integration-playbook.yaml index 0ba7beaf..04cae6a0 100644 --- a/contrib/test/crio-integration-playbook.yaml +++ b/contrib/test/crio-integration-playbook.yaml @@ -1,11 +1,20 @@ -## This playbook expects --extra-vars "commit=" -## and either --extra-vars "pullrequest=" or -## --skip-tags pr +--- + - hosts: all remote_user: root vars: xunit: false cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de + pre_tasks: + ## This playbook expects --extra-vars "commit=" + ## and either --extra-vars "pullrequest=" or + ## --skip-tags pr + - assert: + that: 'commit is defined and commit | trim' + - assert: + that: 'pullrequest is defined and pullrequest | trim' + tags: + - pr tasks: - name: Update all packages yum: