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

View File

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