Actually assert commented requirements
Ansible can't understand comments, but it can understand asserts. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
5e3c53c172
commit
b4a1eacd7f
1 changed files with 12 additions and 3 deletions
|
@ -1,11 +1,20 @@
|
|||
## This playbook expects --extra-vars "commit=<commit>"
|
||||
## and either --extra-vars "pullrequest=<PR #>" or
|
||||
## --skip-tags pr
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
remote_user: root
|
||||
vars:
|
||||
xunit: false
|
||||
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de
|
||||
pre_tasks:
|
||||
## This playbook expects --extra-vars "commit=<commit>"
|
||||
## and either --extra-vars "pullrequest=<PR #>" 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue