Skip to content

sachilles/ansible-role-incron

 
 

Repository files navigation

Ansible Role - incron

Build Status

Incron Installation.

Requirements

None.

Role Variables

TODO

Dependencies

None.

Example Playbook

with system tables

- 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 $# $%

detailed example

with user tables

- 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 $# $%

Local Testing with Vagrant

  • Run vagrant
$ vagrant up --no-provision
$ vagrant provision

License

MIT / BSD

Author Information

vkill [email protected]

© 2016

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%