Skip to content

Missing failed_when condition in ansible/site.yaml #545

@brianredbeard

Description

@brianredbeard

Description

Command tasks don't have explicit failed_when conditions, relying on Ansible's default behavior which may not catch all error conditions.

Location

https://github.com/validatedpatterns/multicloud-gitops/blob/main/ansible/site.yaml

Expected Behavior

Add explicit failed_when: output.rc != 0 conditions.

Suggested Fix

- name: Launch the installation
  ansible.builtin.command: ./pattern.sh make install
  register: output
  failed_when: output.rc != 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions