0

I want to ignore errors and retry until the I get the particular message, So I have written below code, but I am confused about whether to use ignore_errors = True and at some places ignore_errors = yes

  - name: execute the operation
    module:
      operation: execute-operation
      input: ["{{ inputParam }}"]
    register: result
    ignore_errors: yes
    until: result.msg == "Success"
    retries: 3
    delay: 5
MUKHTAR INAMDAR
  • 85
  • 4
  • 17
  • or is different in different situation, if I run some command on shell through ansible use ignore_errors = True and if I run some module use ignore_errors = yes? – MUKHTAR INAMDAR May 25 '23 at 17:59
  • "_I want to ignore errors_", instead of [Ignoring failed commands](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html#ignoring-failed-commands) at all, it might be recommended to [Define failure](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html#defining-failure). – U880D May 25 '23 at 18:56

0 Answers0