summaryrefslogtreecommitdiffstats
path: root/pad/tasks/main.yml
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-11 12:19:46 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-11 12:19:59 -0400
commit6d1743c83e239806b1b6fb635e184a59a5f28f5a (patch)
tree8e82342f150f4ec623b0ebd8291db1d88178d42c /pad/tasks/main.yml
parent1151e1fac5e7805e0cfeea89acc3b2efedb89940 (diff)
downloademacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.tar.xz
emacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.zip
Etherpad starting setup
Diffstat (limited to '')
-rw-r--r--pad/tasks/main.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/pad/tasks/main.yml b/pad/tasks/main.yml
new file mode 100644
index 0000000..ab15984
--- /dev/null
+++ b/pad/tasks/main.yml
@@ -0,0 +1,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