playbook to unmount disks

This commit is contained in:
2024-11-17 06:19:15 +00:00
parent bfdb44d8d4
commit 82f5d61834

15
playbooks/umount.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- hosts: "{{ nodes }}"
become: true
vars_files:
- ../secret
vars_prompt:
- name: path
prompt: "path to unmount"
private: no
- name: nodes
prompt: "nodes to run playbook on"
private: no
tasks:
- name: Unmount disks
command: umount "{{ path }}"