You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
-
- - name: get processes using /target
- command: lsof -t {{item}}
- register: get_target_processes
- loop: "{{ remaining_target_mounts }}"
- failed_when: false
- changed_when: false
-
- - name: kill every process still running in /target
- command: kill -KILL {{item}}
- loop: "{{ get_target_processes | json_query(\"results[].stdout_lines|[]\") | unique }}"
- failed_when: false
-
- - name: unmount /target filesystems
- mount:
- path: "{{item}}"
- state: unmounted
- loop: "{{ remaining_target_mounts }}"
|