This repository has been archived on 2024-04-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
setup/library/rescue_role.yml
2022-12-27 16:49:55 +01:00

8 lines
223 B
YAML

# https://stackoverflow.com/a/55524120
- name: Rescue role
block:
- include_role:
name: "{{ item_my_role }}"
rescue:
- set_fact:
failed_roles: "{{ failed_roles|default([]) + [ item_my_role ] }}"