radek_sprta.sanoid

Ansible 角色:Sanoid Ansible 角色 GitHub 最新版本标签 Ansible 角色 Ansible 角色 管道状态

安装和配置 Sanoid 以自动创建 ZFS 快照。

角色变量

来自 defaults/main.yml 的变量列表。

sanoid_package: sanoid

要安装的包。您不需要覆盖它。

sanoid_templates:
  - name: example
    frequently: 0
    hourly: 24
    daily: 7
    monthly: 12
    yearly: 0
    autosnap: "yes"
    autoprune: "yes"

Sanoid 备份模板的字典。示例展示了可用选项。引号中的 "yes" 是必需的。

sanoid_datasets:
  - name: example
    use_template: example
    recursive: "yes"
    process_children_only: "yes"
    yearly: 1

要创建快照的数据集字典。示例展示了一些可用选项。此外,sanoid_templates 中的选项也可以使用。引号中的 "yes" 是必需的。

示例剧本

- hosts: all

  vars:
    - name: tank
      process_children_only: "yes"
      recursive: "yes"
      use_template: example

  roles:
     - radek_sprta.sanoid

许可证

MIT

作者信息

Radek Sprta mail@radeksprta.eu

关于项目

Install and configure Sanoid for automatic ZFS snapshots.

安装
ansible-galaxy install radek_sprta.sanoid
许可证
mit
下载
282
拥有者