代码拉取完成,页面将自动刷新
---
- hosts: test05
tasks:
- block:
- parted:
device: /dev/vdc
number: 1
part_end: "1500MiB"
state: present
rescue:
- debug:
msg: "insufficient free space"
- parted:
device: /dev/vdc
number: 1
part_end: "800MiB"
state: present
always:
- filesystem:
fstype: ext4
dev: /dev/vdc1
- file:
path: /newmnt
state: directory
- mount:
path: /newmnt
src: /dev/vdc1
fstype: ext4
state: present
- hosts: test05
tasks:
- debug:
msg: "VG not found"
when: "'vdd' not in ansible_devices"
failed_when: "'vdd' not in ansible_devices"
- block:
- parted:
device: /dev/vdd
number: 1
part_end: "1500Mib"
state: present
rescue:
- debug:
msg: "insufficient free space"
- parted:
device: /dev/vdd
number: 1
part_end: "800MiB"
state: present
always:
- filesystem:
fstype: ext4
dev: /dev/vdd1
- file:
path: /newmnt
state: directory
- mount:
path: /newmnt
src: /dev/vdd1
fstype: ext4
state: present
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。