forked from cisti/infra
43 lines
962 B
YAML
43 lines
962 B
YAML
---
|
|
- include: postgresql.yml
|
|
|
|
- name: ensure etherpad user is present
|
|
user:
|
|
name: "etherpad"
|
|
home: "/srv/etherpad"
|
|
shell: "/bin/bash"
|
|
state: present
|
|
|
|
- name: ensure etherpad is latest
|
|
git:
|
|
repo: "https://github.com/ether/etherpad-lite"
|
|
dest: "/srv/etherpad/etherpad"
|
|
version: "master"
|
|
become: true
|
|
become_user: "etherpad"
|
|
register: repository
|
|
|
|
- name: ensure etherpad systemd unit is latest
|
|
template:
|
|
src: etherpad-lite.service.j2
|
|
dest: /etc/systemd/system/etherpad-lite.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: ensure etherpad will start after system is booted
|
|
service:
|
|
name: etherpad-lite
|
|
enabled: yes
|
|
|
|
- name: install etherpad plugins
|
|
npm:
|
|
name: "{{ item }}"
|
|
path: "{{ etherpad.path }}"
|
|
state: "{{ etherpad.plugins_state }}"
|
|
become: true
|
|
become_user: etherpad
|
|
with_items: "{{ etherpad.plugins|d() }}"
|
|
notify: restart etherpad-lite
|
|
|
|
- include: abiword.yml
|