使用ansible挂盘
hosts: new gather_facts: False tasks:
- filesystem: fstype: ext4 dev: /dev/vdb
mount: name: /data src: /dev/vdb fstype: ext4 state: mounted
command: mount -a
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i mount_host.ini -u root -k mount_host.playbook
技术交流可加QQ群:774332965
微信订阅号同步:时下IT