summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-15 01:24:28 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-15 01:24:28 -0400
commitd4ab5684cfe5ce16fab6f604ef49843a1e78f946 (patch)
treef8d71aae5814a1e4330d4ca2a4457dd6ab27d128
parent4229be28d7ecbafe1747af03c4267164b0801abe (diff)
downloademacsconf-ansible-d4ab5684cfe5ce16fab6f604ef49843a1e78f946.tar.xz
emacsconf-ansible-d4ab5684cfe5ce16fab6f604ef49843a1e78f946.zip
Work around docker not having sudo
Diffstat (limited to '')
-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