diff --git a/README.md b/README.md index e4868c0..c79c2ae 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ sudo multitail -s 2 /var/log/auth.log /var/log/syslog /var/log/mail.log Based on the [Oefenweb module][oefenweb ansible updatedb], thanks ! -* Set the default configuration file for *updatedb*. +* Set the default configuration file for *updatedb* and update the database for Mlocate with an handler. * Ensure to not scan some path, directories and filesystem. ## Development diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..84484f1 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: update mlocate db + command: updatedb diff --git a/tasks/main.yml b/tasks/main.yml index 15a8aae..0b533f0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -35,5 +35,6 @@ group: root mode: 0644 backup: true + notify: update mlocate db # }}}