Browse Source

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>
changes/69/630369/1
Paul Belanger 5 months ago
parent
commit
243a8938f6
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      playbooks/dco-license/run.yaml

+ 3
- 6
playbooks/dco-license/run.yaml View File

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

Loading…
Cancel
Save