Add a handler to mote to rebuild the cache when config filees change.

This commit is contained in:
Ralph Bean 2015-06-17 17:12:30 +00:00
parent 9543fefeb4
commit 07d00bdb53
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,2 @@
- name: nuke mote json cache
file: dest=/var/cache/httpd/mote/cache.json state=absent

View file

@ -23,6 +23,7 @@
- config - config
- mote - mote
notify: notify:
- nuke mote json cache
- restart apache - restart apache
- name: start mote-updater service - name: start mote-updater service
@ -71,6 +72,8 @@
file: > file: >
dest=/usr/share/mote/name_mappings.json dest=/usr/share/mote/name_mappings.json
setype=httpd_sys_content_t setype=httpd_sys_content_t
notify:
- nuke mote json cache
tags: tags:
- mote - mote
- selinux - selinux
@ -79,6 +82,8 @@
file: > file: >
dest=/usr/share/mote/category_mappings.json dest=/usr/share/mote/category_mappings.json
setype=httpd_sys_content_t setype=httpd_sys_content_t
notify:
- nuke mote json cache
tags: tags:
- mote - mote
- selinux - selinux

View file

@ -12,7 +12,7 @@
"aliases": ["fedora-design", "designteam", "#fedora-design"] "aliases": ["fedora-design", "designteam", "#fedora-design"]
}, },
"epel": { "epel": {
"friendly-name": "EPEL", "friendly-name": "Extra Packages for Enterprise Linux",
"aliases": [] "aliases": []
}, },
"fedora-mktg": { "fedora-mktg": {