diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2018-01-30 13:16:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-30 13:16:19 +0100 |
commit | 7c83f006c0bd77e9288388d7de62cee6cf10d5ee (patch) | |
tree | 86d3a3050a09e5653770b20be0e1bac60dff1887 /test/integration/targets/blocks/main.yml | |
parent | 2293252e529d4708c76ed2dc0dc60d7834a3eec9 (diff) | |
download | ansible-7c83f006c0bd77e9288388d7de62cee6cf10d5ee.tar.gz |
Fix triggering parent's always with run_once set (#35464)
Diffstat (limited to 'test/integration/targets/blocks/main.yml')
-rw-r--r-- | test/integration/targets/blocks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/blocks/main.yml b/test/integration/targets/blocks/main.yml index a80a62b753..496586828f 100644 --- a/test/integration/targets/blocks/main.yml +++ b/test/integration/targets/blocks/main.yml @@ -10,6 +10,7 @@ tasks_run_after_failure: false rescue_run_after_failure: false always_run_after_failure: false + nested_block_fail_always: false tasks: - block: - name: set block tasks run flag @@ -46,6 +47,18 @@ # always_run_after_failure: true - meta: clear_host_errors + # https://github.com/ansible/ansible/issues/35148 + - block: + - block: + - name: EXPECTED FAILURE test triggering always by failing in nested block with run_once set + fail: + run_once: true + always: + - name: set block fail always run flag + set_fact: + nested_block_fail_always: true + - meta: clear_host_errors + post_tasks: - assert: that: @@ -56,6 +69,7 @@ - not tasks_run_after_failure - not rescue_run_after_failure - not always_run_after_failure + - nested_block_fail_always - debug: msg="TEST COMPLETE" - name: block with includes |