【发布时间】:2013-11-25 03:34:07
【问题描述】:
我希望使用 ansible 中的 zfs 模块生成以下等效项,以下使用命令行工作,但由于文件系统已经存在,第二次运行失败。
{{ part_postgres }} 在此实例中设置为 /dev/sdb。
zpool create -O compression=gzip postgres {{ part_postgres }} -O secondarycache=all
目前在 ansible 我有:
- name: Create postgres zpool
zfs: name=postgres{{ part_postgres }}
compression=gzip
state=present
secondarycache=all
mountpoint=/postgres
atime=off
【问题讨论】:
-
看起来 ansible 中不支持 zpool,需要为它编写一个新模块。 github.com/ansible/ansible/issues/4880