diff --git a/roles/etherpad/tasks/main.yml b/roles/etherpad/tasks/main.yml index dae8ab9..62aa8d7 100644 --- a/roles/etherpad/tasks/main.yml +++ b/roles/etherpad/tasks/main.yml @@ -10,16 +10,32 @@ git: repo: https://github.com/ether/etherpad-lite.git dest: /var/local/etherpad/etherpad-lite - version: master + version: 1.7.5 become: true become_user: etherpad -# Installation script -# TODO: move this in a handler +# Installation script bin/installDeps.sh (1) +- name: Create node_modules directory + file: + path: /var/local/etherpad/etherpad-lite/node_modules + state: directory + become: true + become_user: etherpad + +# Installation script bin/installDeps.sh (2) +- name: Create symbolic link to EtherPad src + file: + src: /var/local/etherpad/etherpad-lite/src + dest: /var/local/etherpad/etherpad-lite/node_modules/ep_etherpad-lite + state: link + become: true + become_user: etherpad + +# Installation script bin/installDeps.sh (3) +# TODO --no-save - name: Install Etherpad dependencies - command: bin/installDeps.sh - args: - chdir: /var/local/etherpad/etherpad-lite + npm: + path: /var/local/etherpad/etherpad-lite/node_modules/ep_etherpad-lite become: true become_user: etherpad