summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--inventory.yml3
-rw-r--r--pad/tasks/main.yml10
2 files changed, 8 insertions, 5 deletions
diff --git a/inventory.yml b/inventory.yml
index 10e7a2d..2c52301 100644
--- a/inventory.yml
+++ b/inventory.yml
@@ -5,13 +5,16 @@ prod:
remote_user: orga
ansible_ssh_user: orga
ansible_python_interpreter: /usr/bin/python3
+ ansible_become: true
publish:
ansible_host: front0.emacsconf.org
remote_user: orga
ansible_ssh_user: orga
ansible_python_interpreter: /usr/bin/python3
+ ansible_become: true
pad:
ansible_host: front0.emacsconf.org
remote_user: orga
ansible_ssh_user: orga
ansible_python_interpreter: /usr/bin/python3
+ ansible_become: true
diff --git a/pad/tasks/main.yml b/pad/tasks/main.yml
index 42ed834..6ad06f2 100644
--- a/pad/tasks/main.yml
+++ b/pad/tasks/main.yml
@@ -1,13 +1,13 @@
---
# tasks file for pad
- name: Set up packages as root
- become: true
block:
- name: Add GPG
apt:
update_cache: yes
name:
- gpg
+ - sudo
- name: Add nodesource key
apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
@@ -50,10 +50,10 @@
dest: "{{ etherpad_path }}/settings.json"
- name: Install dependencies
shell: cd {{ etherpad_path }}; . src/bin/functions.sh; src/bin/installDeps.sh
- # - name: Install etherpad plugins
- # npm:
- # name: ep_pad-lister
- # path: "{{ etherpad_path }}"
+ - name: Install etherpad plugins
+ npm:
+ name: ep_scrolltoanchor
+ path: "{{ etherpad_path }}"
- name: Change ownership
file:
dest: /home/etherpad/etherpad