Clean up EtherPad dep install

This commit is contained in:
Alexandre Iooss 2019-03-12 16:34:35 +01:00
parent a8656251ab
commit 4a6da11837
1 changed files with 22 additions and 6 deletions

View File

@ -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