From 4d6516700d74e30d74a57bb769bc3ab96806f71c Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sun, 1 May 2022 18:52:33 -0400 Subject: [PATCH] give jobs names Change-Id: I387d5e02d8474c3d0680500de373387952783d47 --- playbooks/molecule/post-run.yaml | 3 ++- playbooks/molecule/pre-run.yaml | 3 ++- playbooks/molecule/run.yaml | 9 ++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/playbooks/molecule/post-run.yaml b/playbooks/molecule/post-run.yaml index 6148f32..d39aeb2 100644 --- a/playbooks/molecule/post-run.yaml +++ b/playbooks/molecule/post-run.yaml @@ -9,7 +9,8 @@ # using the add_host task to avoid any failures after. - meta: refresh_inventory - - shell: molecule destroy + - name: molecule destroy + shell: molecule destroy args: chdir: "{{ zuul.project.src_dir }}" environment: diff --git a/playbooks/molecule/pre-run.yaml b/playbooks/molecule/pre-run.yaml index e2d1c87..a1d143f 100644 --- a/playbooks/molecule/pre-run.yaml +++ b/playbooks/molecule/pre-run.yaml @@ -22,7 +22,8 @@ - name: Install collection shell: ansible-galaxy collection install -f {{ zuul.project.src_dir }} - - shell: molecule create + - name: molecule create + shell: molecule create args: chdir: "{{ zuul.project.src_dir }}" environment: diff --git a/playbooks/molecule/run.yaml b/playbooks/molecule/run.yaml index b0f9858..ad88bf3 100644 --- a/playbooks/molecule/run.yaml +++ b/playbooks/molecule/run.yaml @@ -1,14 +1,17 @@ --- - hosts: ubuntu-focal tasks: - - shell: molecule converge + - name: molecule converge + shell: molecule converge args: chdir: "{{ zuul.project.src_dir }}" - - shell: molecule idempotence + - name: molecule idempotence + shell: molecule idempotence args: chdir: "{{ zuul.project.src_dir }}" - - shell: molecule verify + - name: molecule verify + shell: molecule verify args: chdir: "{{ zuul.project.src_dir }}"