From 5b384bc14fe91a3b334d42de2dbf239dc529127a Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Tue, 7 Mar 2017 23:21:22 +0100 Subject: [PATCH] destroy_container: show error on user abort --- destroy_container.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/destroy_container.yaml b/destroy_container.yaml index 5ee3e73..a0487d1 100644 --- a/destroy_container.yaml +++ b/destroy_container.yaml @@ -11,6 +11,9 @@ prompt: 'if you really are sure, enter the container name again' private: no tasks: + - fail: + msg: "Task aborted by the user." + when: "confirm1 != 'yes' or confirm2 != '{{ container_name }}'" - block: - name: shutdown lxc container lxc_container: