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 }}"