Merge "Clean up leftover mount point after docker stop." into stable/stein

This commit is contained in:
Zuul 2019-05-09 15:19:11 +00:00 committed by Gerrit Code Review
commit 4dac4dc33e

View File

@ -117,6 +117,16 @@ outputs:
package: package:
name: docker name: docker
state: absent state: absent
- name: Get the list of directory mounted under /var/lib/docker/ orderer.
shell: |
mount | awk '/\/var\/lib\/docker\/[^/]+\// {print $3}';
mount | awk '/\/var\/lib\/docker\/[^/]+$/ {print $3}';
register: unmounted_dirs
- name: Unmount those directories
mount:
path: "{{ item }}"
state: unmounted
loop: "{{ unmounted_dirs.stdout_lines }}"
- name: Purge /var/lib/docker - name: Purge /var/lib/docker
file: file:
path: /var/lib/docker path: /var/lib/docker