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: