Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is a custom Ansible module built using the `inotify_simple` Python package, which provides a lightweight Python wrapper around inotify(7). It enables monitoring of multiple paths for file system events.

License

Notifications You must be signed in to change notification settings

mikuchi9/pathwatcher-ansible-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Description

This module monitors inotify events on specified paths.

Preperation

You must install the inotify_simple Python package. See the example install_necessary_pkgs.yml.

Run

Adhoc Example 1. Run the module to monitor /tmp and /etc/host.conf paths for 4 minutes on localhost ANSIBLE_LIBRARY=./library ansible -m inotify_monitor -a 'watch_paths=/tmp,/etc/host.conf mtimeout=4' localhost

Adhoc Example 2. Run the module to monitor /tmp directory for 80 seconds on remote host ANSIBLE_LIBRARY=./library ansible -m inotify_monitor -a 'watch_paths=/tmp stimeout=80' _remotehost_

  • After installing the inotify_simple module, if it cannot be found, try deactivating and then reactivating the environment if you installed it inside virtual environment.

About

This is a custom Ansible module built using the `inotify_simple` Python package, which provides a lightweight Python wrapper around inotify(7). It enables monitoring of multiple paths for file system events.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /