summaryrefslogtreecommitdiffstats
path: root/pad/tasks/main.yml
blob: ab159847d14b3f27e730fa08d2e19cb9d77eb657 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# tasks file for pad
- name: Add nodesource key
  apt_key:
    url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
    state: present
- name: Add nodesource repository
  ansible.builtin.apt_repository:
    repo: deb https://deb.nodesource.com/node_13.x buster main
    update_cache: yes
- name: Install packages
  apt:
    update_cache: yes
    name:
      - sudo
      - nodejs
      - mariadb-server
      - mariadb-client
    state: present
- name: Create etherpad user
  user:
    name: etherpad
    home: /home/etherpad
    shell: /bin/bash
    state: present
- name: Install etherpad
  git:
    repo: https://github.com/ether/etherpad-lite.git
    dest: "{{ etherpad_path }}"
    depth: 1
  become: true
  become_user: etherpad
- name: Configure etherpad
  template:
    src: templates/settings.json
    dest: "{{ etherpad_path }}/settings.json"
# - name: Install etherpad plugins
#   npm:
#     name: ep_stats
#     path: "{{ etherpad_path }}"
#   become: true
#   become_user: etherpad
- name: Install dependencies
  shell: cd {{ etherpad_path }}; . src/bin/functions.sh; src/bin/installDeps.sh
  become: true
  become_user: etherpad
- include: mariadb.yml