Skip to content
10 changes: 5 additions & 5 deletions molecule/build_image_aarch64/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@
ansible.builtin.debug:
msg: "build_image playbook ({{ build_image_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "build_image playbook not found at {{ build_image_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute build_image_aarch64 playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -171,8 +176,3 @@
║ 4. Check container status: podman ps -a
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "build_image playbook not found at {{ build_image_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/build_image_x86_64/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@
ansible.builtin.debug:
msg: "build_image playbook ({{ build_image_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "build_image playbook not found at {{ build_image_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute build_image_x86_64 playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -171,8 +176,3 @@
║ 4. Check container status: podman ps -a
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "build_image playbook not found at {{ build_image_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/discovery/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
ansible.builtin.debug:
msg: "discovery.yml playbook ({{ discovery_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "discovery playbook not found at {{ discovery_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute discovery playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -173,11 +178,6 @@
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "discovery playbook not found at {{ discovery_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

# =========================================================================
# POST-DISCOVERY: VERIFY BMC PXE MAPPING FILE CREATED
# =========================================================================
Expand Down
10 changes: 5 additions & 5 deletions molecule/gitlab_cleanup/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@
ansible.builtin.debug:
msg: "cleanup_gitlab.yml playbook ({{ cleanup_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "cleanup_gitlab playbook not found at {{ cleanup_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute cleanup_gitlab playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -185,8 +190,3 @@
║ 3. Run manually: cd /omnia/gitlab && ansible-playbook cleanup_gitlab.yml -vvv
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "cleanup_gitlab playbook not found at {{ cleanup_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/gitlab_install/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
ansible.builtin.debug:
msg: "gitlab.yml playbook ({{ gitlab_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "gitlab playbook not found at {{ gitlab_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute gitlab playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -212,8 +217,3 @@
║ 3. Run manually: cd /omnia/gitlab && ansible-playbook gitlab.yml -vvv
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "gitlab playbook not found at {{ gitlab_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/local_repo/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@
ansible.builtin.debug:
msg: "local_repo playbook ({{ local_repo_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "local_repo playbook not found at {{ local_repo_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute local_repo playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -237,8 +242,3 @@
║ {{ playbook_result.stderr | default('No error message') }}
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "local_repo playbook not found at {{ local_repo_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/prepare_oim/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
ansible.builtin.debug:
msg: "prepare_oim playbook (/omnia/prepare_oim/prepare_oim.yml): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "prepare_oim playbook not found at /omnia/prepare_oim/prepare_oim.yml"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute prepare_oim playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -134,8 +139,3 @@
║ 4. Check container status: podman ps -a
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "prepare_oim playbook not found at /omnia/prepare_oim/prepare_oim.yml"
when: "'NOT_FOUND' in playbook_check.stdout"
10 changes: 5 additions & 5 deletions molecule/provision/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@
ansible.builtin.debug:
msg: "provision.yml playbook ({{ provision_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "provision playbook not found at {{ provision_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute provision playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -189,11 +194,6 @@
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "provision playbook not found at {{ provision_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

# =========================================================================
# POST-PROVISION: VERIFY PXE MAPPING FILE EXISTS
# =========================================================================
Expand Down
10 changes: 5 additions & 5 deletions molecule/telemetry/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
ansible.builtin.debug:
msg: "telemetry.yml playbook ({{ telemetry_playbook }}): {{ playbook_check.stdout }}"

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "telemetry playbook not found at {{ telemetry_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"

- name: Execute telemetry playbook in omnia_core container
ansible.builtin.shell:
cmd: |
Expand Down Expand Up @@ -166,8 +171,3 @@
║ 4. Check logs: kubectl logs -n telemetry <pod-name>
╚══════════════════════════════════════════════════════════════════════════════╝
when: playbook_result is defined and playbook_result.rc is defined and playbook_result.rc != 0

- name: Fail if playbook not found
ansible.builtin.fail:
msg: "telemetry playbook not found at {{ telemetry_playbook }}"
when: "'NOT_FOUND' in playbook_check.stdout"
Loading