Browse Source

Merge pull request #729 from vwfs/fix_reset_umount

Fix reverse umount in reset role
pull/710/merge
Antoine Legrand 8 years ago
committed by GitHub
parent
commit
3ca11b70c4
1 changed files with 2 additions and 2 deletions
  1. 4
      roles/reset/tasks/main.yml

4
roles/reset/tasks/main.yml

@ -24,12 +24,12 @@
shell: docker ps -aq | xargs -r docker rm -fv shell: docker ps -aq | xargs -r docker rm -fv
- name: reset | gather mounted kubelet dirs - 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 register: mounted_dirs
- name: reset | unmount kubelet dirs - name: reset | unmount kubelet dirs
command: umount {{item}} command: umount {{item}}
with_items: '{{ mounted_dirs.stdout_lines | reverse }}'
with_items: '{{ mounted_dirs.stdout_lines }}'
- name: reset | delete some files and directories - name: reset | delete some files and directories
file: path={{ item }} state=absent file: path={{ item }} state=absent

Loading…
Cancel
Save