vkill.incron
Ansible 角色 - incron
Incron 安装。
要求
无。
角色变量
待处理
依赖
无。
示例剧本
使用系统表
- hosts: servers
become: true
roles:
- role: vkill.incron
incron_system_tables:
- name: demo
path: /home/
mask: IN_CREATE,IN_DELETE
command: /tmp/incron_demo.sh $# $%
使用用户表
- hosts: servers
become: true
roles:
- role: vkill.incron
incron_user_tables:
- username: demo
lines:
- name: demo
path: /home/demo/dir1
mask: IN_CREATE,IN_DELETE
command: /tmp/incron_demo.sh $# $%
- name: demo_2
path: /home/demo/dir2
mask: IN_CREATE,IN_DELETE
command: /tmp/incron_demo.sh $# $%
使用 Vagrant 进行本地测试
- 运行 Vagrant
$ vagrant up --no-provision
$ vagrant provision
许可证
MIT / BSD
作者信息
vkill vkill.net@gmail.com
© 2016