[etherpad] Deploy a second instance

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-27 15:54:36 +01:00 committed by ynerant
parent 2321121ec0
commit 5b52a5eeab
2 changed files with 13 additions and 4 deletions

View File

@ -14,8 +14,11 @@
- name: Clone EtherPad
git:
repo: https://github.com/ether/etherpad-lite.git
dest: /var/www/etherpad-lite
dest: "/var/www/{{ item }}"
version: 1.8.4
loop:
- "etherpad-lite"
- "etherpad-lite-tmp"
become: true
become_user: etherpad
@ -27,14 +30,20 @@
- name: Install EtherPad systemd unit
template:
src: systemd/system/etherpad-lite.service.j2
dest: /etc/systemd/system/etherpad-lite.service
dest: "/etc/systemd/system/{{ item }}.service"
loop:
- "etherpad-lite"
- "etherpad-lite-tmp"
- name: Activate EtherPad service
systemd:
daemon_reload: true
name: etherpad-lite
name: "{{ item }}"
enabled: true
state: started
loop:
- "etherpad-lite"
- "etherpad-lite-tmp"
- name: Indicate role in motd
template:

View File

@ -9,7 +9,7 @@ Type=simple
User=etherpad
Group=etherpad
Environment=NODE_ENV=production
ExecStart=/var/www/etherpad-lite/bin/run.sh --stack-size=4096
ExecStart=/var/www/{{ item }}/bin/run.sh --stack-size=4096
Restart=always
RestartSec=5s