Notify to update mlocate database.

This commit is contained in:
Jeremy Gardais 2017-08-01 12:08:53 +02:00
parent 681bb83a96
commit c1583ef410
3 changed files with 5 additions and 1 deletions

View File

@ -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! 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. * Ensure to not scan some path, directories and filesystem.
## Development ## Development

3
handlers/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
- name: update mlocate db
command: updatedb

View File

@ -35,5 +35,6 @@
group: root group: root
mode: 0644 mode: 0644
backup: true backup: true
notify: update mlocate db
# }}} # }}}