Simplify dco-license job playbook

We can simplify the usage of include_roles by using roles section in the
playbook.

Change-Id: Iedd3f6e57f9c16c7ea8ae709f1e28d629580cab9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-01-11 13:24:01 -05:00
parent 2aeaac3f61
commit 243a8938f6
1 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,4 @@
- hosts: localhost
tasks:
- name: Run validate-dco-license role
include_role:
name: validate-dco-license
vars:
zuul_work_dir: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}"
roles:
- role: validate-dco-license
zuul_work_dir: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}"