From d4ab5684cfe5ce16fab6f604ef49843a1e78f946 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 15 Oct 2022 01:24:28 -0400 Subject: Work around docker not having sudo --- inventory.yml | 3 +++ pad/tasks/main.yml | 10 +++++----- 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 -- cgit v1.2.3