Include playbook variables from file

This allows alternate playbooks to share the same variable definitions
as the primary crio-integration-playbook.  It remains possible to
override them via the command-line if needed.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2017-09-15 21:27:50 -04:00
parent 29b899114d
commit a370eea475
2 changed files with 9 additions and 6 deletions

View file

@ -2,9 +2,8 @@
- hosts: all
remote_user: root
vars:
xunit: false
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de
vars_files:
- crio-integration-vars.yaml
pre_tasks:
## This playbook expects --extra-vars "commit=<commit>"
## and either --extra-vars "pullrequest=<PR #>" or
@ -12,8 +11,8 @@
- assert:
that: 'commit is defined and commit | trim'
- assert:
that: 'pullrequest is defined and pullrequest | trim'
tags:
- pr
that: 'pullrequest is defined and pullrequest | trim'
tags:
- pr
roles:
- integration_tests

View file

@ -0,0 +1,4 @@
---
xunit: false
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de