From 51fed531398a2ef6b15a5cf4bc3dd12ae5ca2961 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 18 Oct 2017 10:09:18 -0400 Subject: [PATCH] Consolidate plays/tasks/tags Simplify use of play-level tagging on three separate plays (with one task). Instead, make them all the same play, and apply the tags at the task level instead. Signed-off-by: Chris Evich --- contrib/test/integration/main.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/contrib/test/integration/main.yml b/contrib/test/integration/main.yml index dc8d1c18..869c6626 100644 --- a/contrib/test/integration/main.yml +++ b/contrib/test/integration/main.yml @@ -54,9 +54,6 @@ vars_files: - "{{ playbook_dir }}/vars.yml" environment: '{{ environment_variables }}' - tags: - - integration - - e2e tasks: - name: clone build and install kubernetes include: "build/kubernetes.yml" @@ -65,23 +62,15 @@ - name: Build and install cri-o include: "build/cri-o.yml" + tags: + - always -- hosts: '{{ subjects | default("all") }}' - vars_files: - - "{{ playbook_dir }}/vars.yml" - environment: '{{ environment_variables }}' - tags: - - integration - tasks: - name: run cri-o integration tests include: test.yml + tags: + - integration -- hosts: '{{ subjects | default("all") }}' - vars_files: - - "{{ playbook_dir }}/vars.yml" - environment: '{{ environment_variables }}' - tags: - - e2e - tasks: - name: run k8s e2e tests include: e2e.yml + tags: + - e2e