From c1583ef410cd04cc01c17d6978ac69aaa2e4136a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 1 Aug 2017 12:08:53 +0200 Subject: [PATCH] Notify to update mlocate database. --- README.md | 2 +- handlers/main.yml | 3 +++ tasks/main.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 handlers/main.yml 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 # }}}