From f37dffd33cf26adbbee395de8a8a68c994676b1b Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 May 2017 14:39:06 +0100 Subject: [PATCH] Remove unnecessary handler The base container is not created using the LXC tooling, so the handler is now superfluous. Change-Id: I2e025fab3df4980579ec318a7676a4a0832576b1 --- handlers/main.yml | 9 --------- tasks/lxc_cache_create.yml | 1 - 2 files changed, 10 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 263d3b07..e6c1878c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -44,12 +44,3 @@ - name: Veth check command: "/usr/local/bin/lxc-veth-check" - -- name: Destroy base container - lxc_container: - name: "LXC_NAME" - state: absent - register: cache_destroy - retries: 3 - delay: 10 - until: cache_destroy|success diff --git a/tasks/lxc_cache_create.yml b/tasks/lxc_cache_create.yml index 85108de4..1ab9032b 100644 --- a/tasks/lxc_cache_create.yml +++ b/tasks/lxc_cache_create.yml @@ -31,7 +31,6 @@ tar -Opc -C {{ lxc_image_cache_path }} . | {{ lxc_xz_bin }} -{{ lxc_image_compression_ratio }} -c - > rootfs.tar.xz args: chdir: "{{ cache_path_fact }}/" - notify: Destroy base container tags: - skip_ansible_lint