Browse Source

destroy_container: show error on user abort

master
Andrea Cimbalo 8 years ago
parent
commit
5b384bc14f
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      destroy_container.yaml

+ 3
- 0
destroy_container.yaml View File

@ -11,6 +11,9 @@
prompt: 'if you really are sure, enter the container name again' prompt: 'if you really are sure, enter the container name again'
private: no private: no
tasks: tasks:
- fail:
msg: "Task aborted by the user."
when: "confirm1 != 'yes' or confirm2 != '{{ container_name }}'"
- block: - block:
- name: shutdown lxc container - name: shutdown lxc container
lxc_container: lxc_container:


Loading…
Cancel
Save