Merge pull request #729 from vwfs/fix_reset_umount

Fix reverse umount in reset role
This commit is contained in:
Antoine Legrand 2016-12-13 14:25:01 +01:00 committed by GitHub
commit 7ca5ad8e86

View file

@ -24,12 +24,12 @@
shell: docker ps -aq | xargs -r docker rm -fv
- name: reset | gather mounted kubelet dirs
shell: mount | grep /var/lib/kubelet | awk '{print $3}'
shell: mount | grep /var/lib/kubelet | awk '{print $3}' | tac
register: mounted_dirs
- name: reset | unmount kubelet dirs
command: umount {{item}}
with_items: '{{ mounted_dirs.stdout_lines | reverse }}'
with_items: '{{ mounted_dirs.stdout_lines }}'
- name: reset | delete some files and directories
file: path={{ item }} state=absent