Tweak infinoted config a bit more. Make sync 60 seconds instead of 10
add a handler to restart on config changes.
This commit is contained in:
parent
bfb5cf4790
commit
57eb9b4f8f
3 changed files with 5 additions and 4 deletions
|
@ -192,3 +192,6 @@
|
||||||
|
|
||||||
- name: restart autocloud
|
- name: restart autocloud
|
||||||
service: name=autocloud state=restarted
|
service: name=autocloud state=restarted
|
||||||
|
|
||||||
|
- name: restart infinoted
|
||||||
|
service: name=infinoted state=restarted
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
|
|
||||||
- name: add config file for infinoted
|
- name: add config file for infinoted
|
||||||
template: src=infinoted.conf dest=/etc/xdg/infinoted.conf
|
template: src=infinoted.conf dest=/etc/xdg/infinoted.conf
|
||||||
|
notify: restart infinoted
|
||||||
tags:
|
tags:
|
||||||
- infinote
|
- infinote
|
||||||
- config
|
- config
|
||||||
|
|
|
@ -10,13 +10,10 @@ password={{ infinotepassword }}
|
||||||
|
|
||||||
[autosave]
|
[autosave]
|
||||||
interval=60
|
interval=60
|
||||||
# TODO: write git hook. https://github.com/gobby/gobby/wiki/PluginAutosave
|
|
||||||
#hook=
|
|
||||||
|
|
||||||
[directory-sync]
|
[directory-sync]
|
||||||
directory=/srv/web/infinote
|
directory=/srv/web/infinote
|
||||||
interval=10
|
interval=60
|
||||||
# TODO: write git hook. https://github.com/gobby/gobby/wiki/PluginDirectorySync
|
|
||||||
hook=/usr/local/bin/infinoted-git-commit
|
hook=/usr/local/bin/infinoted-git-commit
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue