SimpliField.file-retention

文件保留 构建状态 Ansible 角色

这是一个用于删除指定路径中最旧文件/路径的 Ansible 角色

要求

目标主机需要安装 Ansible 2 及以上版本和 cron。

角色变量

file-retention_path = '/data/db/backups'
file-retention_days = 30;
file-retention_user = 'www';

依赖

没有依赖

示例剧本

- hosts: servers
  roles:
  - role: SimpliField.file-retention
    file-retention_path: '/data/db/backups'
    file-retention_days: 30
    file-retention_user: 'www'

许可证

BSD

安装
ansible-galaxy install SimpliField.file-retention
许可证
Unknown
下载
1k
拥有者