diff --git a/playbooks/lxc-containers-destroy.yml b/playbooks/lxc-containers-destroy.yml index 73c0cffd60..1131cfebbc 100644 --- a/playbooks/lxc-containers-destroy.yml +++ b/playbooks/lxc-containers-destroy.yml @@ -40,7 +40,7 @@ tags: - container-directories -- name: Destroy lxc containers +- name: Flush network cache on lxc host hosts: "hosts" max_fail_percentage: 20 gather_facts: false @@ -51,3 +51,16 @@ delegate_to: "{{ physical_host }}" tags: - flush-net-cache + +- name: Ensure flushing network cache on local host + hosts: 127.0.0.1 + connection: local + max_fail_percentage: 20 + gather_facts: false + user: root + tasks: + - name: Flush net cache + command: /usr/local/bin/lxc-system-manage flush-net-cache + tags: + - flush-net-cache + - flush-net-cache-local