increase fault tolerancy for the master playbook

add units apt packages
This commit is contained in:
Pim Kunis 2022-12-27 16:49:55 +01:00
parent 1bbbd8a952
commit 76d3b54c8d
3 changed files with 25 additions and 9 deletions

8
library/rescue_role.yml Normal file
View file

@ -0,0 +1,8 @@
# 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 ] }}"