From a8e99d296ecac96155da8e21c8812f9292ae48a1 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 12 Dec 2017 16:09:55 -0800 Subject: [PATCH] make include tasks dynamic when there is rescue there is an ansible bug that prevents rescue in failing tasks from being called if the task is included. so change it to dynamic to run rescue in preprocessing. https://github.com/ansible/ansible/issues/16254 Change-Id: Ibdd0fa8b152004b450693498d61b84b204f74e9b --- tests/roles/bootstrap-host/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/roles/bootstrap-host/tasks/main.yml b/tests/roles/bootstrap-host/tasks/main.yml index c29269ce69..2bcee40335 100644 --- a/tests/roles/bootstrap-host/tasks/main.yml +++ b/tests/roles/bootstrap-host/tasks/main.yml @@ -53,6 +53,7 @@ # Prepare the swap space loopback disk # This is only necessary if there isn't swap already - include: prepare_loopback_swap.yml + static: no when: - ansible_swaptotal_mb < 1 tags: