[meta] Install TiddlyWiki from source

pull/28/head
Alpha Chen 10 years ago
parent 0b9af34003
commit cf0d75bee8

@ -5,13 +5,18 @@
tasks:
- apt: update_cache=yes
sudo: true
- apt: name=nginx state=present
- apt: name={{ item }} state=present
sudo: true
with_items:
- nginx
- git
- file: path=/etc/nginx/sites-enabled/default state=absent
sudo: true
notify: reload nginx
- include: tiddlywiki/tasks.yml
handlers:
- name: reload nginx
service: name=nginx state=reloaded
- include: tiddlywiki/handlers.yml

@ -1,3 +0,0 @@
- name: restart tiddlywiki
service: name=tiddlywiki state=restarted
sudo: true

@ -1,16 +1,32 @@
- include_vars: tiddlywiki/vars.yml.private
- apt: name={{ item }} state=present
sudo: true
with_items:
- nodejs
- nodejs-legacy
- npm
- npm: name=tiddlywiki global=yes state=present
# Use TiddlyWiki from source until this fix is released:
# https://github.com/Jermolene/TiddlyWiki5/issues/1474
#
# - npm: name=tiddlywiki global=yes state=present
# sudo: true
#
- git: repo=https://github.com/Jermolene/TiddlyWiki5.git dest=~/TiddlyWiki5
notify: restart tiddlywiki
- command: npm link chdir=~{{ user }}/TiddlyWiki5
sudo: true
- file: path=~/tiddlywiki state=directory
- command: tiddlywiki ~/tiddlywiki --init server
args:
creates: ~/tiddlywiki
- copy: src=tiddlywiki/nginx.conf dest=/etc/nginx/conf.d/tiddlywiki.conf
sudo: true
notify: reload nginx
- template: src=tiddlywiki/upstart.conf.j2 dest=/etc/init/tiddlywiki.conf
sudo: true
notify: restart tiddlywiki
- name: restart tiddlywiki
service: name=tiddlywiki state=restarted
sudo: true

Loading…
Cancel
Save