Add a handler to mote to rebuild the cache when config filees change.
This commit is contained in:
parent
9543fefeb4
commit
07d00bdb53
3 changed files with 8 additions and 1 deletions
2
roles/mote/handlers/main.yml
Normal file
2
roles/mote/handlers/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- name: nuke mote json cache
|
||||
file: dest=/var/cache/httpd/mote/cache.json state=absent
|
|
@ -23,6 +23,7 @@
|
|||
- config
|
||||
- mote
|
||||
notify:
|
||||
- nuke mote json cache
|
||||
- restart apache
|
||||
|
||||
- name: start mote-updater service
|
||||
|
@ -71,6 +72,8 @@
|
|||
file: >
|
||||
dest=/usr/share/mote/name_mappings.json
|
||||
setype=httpd_sys_content_t
|
||||
notify:
|
||||
- nuke mote json cache
|
||||
tags:
|
||||
- mote
|
||||
- selinux
|
||||
|
@ -79,6 +82,8 @@
|
|||
file: >
|
||||
dest=/usr/share/mote/category_mappings.json
|
||||
setype=httpd_sys_content_t
|
||||
notify:
|
||||
- nuke mote json cache
|
||||
tags:
|
||||
- mote
|
||||
- selinux
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"aliases": ["fedora-design", "designteam", "#fedora-design"]
|
||||
},
|
||||
"epel": {
|
||||
"friendly-name": "EPEL",
|
||||
"friendly-name": "Extra Packages for Enterprise Linux",
|
||||
"aliases": []
|
||||
},
|
||||
"fedora-mktg": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue