Clean up EtherPad dep install

This commit is contained in:
Alexandre Iooss 2019-03-12 16:34:35 +01:00
parent a8656251ab
commit 4a6da11837

View file

@ -10,16 +10,32 @@
git: git:
repo: https://github.com/ether/etherpad-lite.git repo: https://github.com/ether/etherpad-lite.git
dest: /var/local/etherpad/etherpad-lite dest: /var/local/etherpad/etherpad-lite
version: master version: 1.7.5
become: true become: true
become_user: etherpad become_user: etherpad
# Installation script # Installation script bin/installDeps.sh (1)
# TODO: move this in a handler - 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 - name: Install Etherpad dependencies
command: bin/installDeps.sh npm:
args: path: /var/local/etherpad/etherpad-lite/node_modules/ep_etherpad-lite
chdir: /var/local/etherpad/etherpad-lite
become: true become: true
become_user: etherpad become_user: etherpad