"Fossies" - the Fresh Open Source Software Archive

Member "ansible-2.9.27/test/integration/targets/any_errors_fatal/18602.yml" (11 Oct 2021, 667 Bytes) of package /linux/misc/ansible-2.9.27.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ---
    2   - hosts: localhost
    3     any_errors_fatal: true
    4     tasks:
    5       - block:
    6           - debug: msg='i execute normally'
    7           - name: EXPECTED FAILURE primary block command
    8             command: /bin/false
    9           - debug: msg='i never execute, cause ERROR!'
   10         rescue:
   11           - name: rescue block debug
   12             debug: msg='I caught an error'
   13           - name: EXPECTED FAILURE rescue block command
   14             command: /bin/false
   15           - debug: msg='I also never execute :-('
   16         always:
   17           - name: A debug task in the always block
   18             debug: msg="this always executes"
   19 
   20           - set_fact:
   21               always_ran: true