SimpliField.file-retention
指定したパス内の古いファイルやパスを削除するための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