2025-03/10/block.yml
2025-03-27 14:20:05 +01:00

18 lines
361 B
YAML

---
- hosts: localhost
tasks:
- block:
- debug: msg='OK'
- shell: /bin/false
- debug: msg='Niemals'
rescue:
- debug: msg='Im Fehlerfall'
- shell: /bin/false
- debug: msg='Niemals'
always:
- debug: msg='echo Immer'
when: ansible_os_family == 'Debian'
- debug: 'msg="Nach dem Block"'