playbook to mount volumes

This commit is contained in:
2025-01-01 12:54:24 +00:00
parent 236050245c
commit 16c88355e8

15
playbooks/mount.yml Normal file
View File

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