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:
parent
29b899114d
commit
a370eea475
2 changed files with 9 additions and 6 deletions
|
@ -2,9 +2,8 @@
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: root
|
remote_user: root
|
||||||
vars:
|
vars_files:
|
||||||
xunit: false
|
- crio-integration-vars.yaml
|
||||||
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
## This playbook expects --extra-vars "commit=<commit>"
|
## This playbook expects --extra-vars "commit=<commit>"
|
||||||
## and either --extra-vars "pullrequest=<PR #>" or
|
## and either --extra-vars "pullrequest=<PR #>" or
|
||||||
|
@ -12,8 +11,8 @@
|
||||||
- assert:
|
- assert:
|
||||||
that: 'commit is defined and commit | trim'
|
that: 'commit is defined and commit | trim'
|
||||||
- assert:
|
- assert:
|
||||||
that: 'pullrequest is defined and pullrequest | trim'
|
that: 'pullrequest is defined and pullrequest | trim'
|
||||||
tags:
|
tags:
|
||||||
- pr
|
- pr
|
||||||
roles:
|
roles:
|
||||||
- integration_tests
|
- integration_tests
|
||||||
|
|
4
contrib/test/crio-integration-vars.yaml
Normal file
4
contrib/test/crio-integration-vars.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
xunit: false
|
||||||
|
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de
|
Loading…
Add table
Add a link
Reference in a new issue