
commit 943c021d9dca8300f9b456c3ffaee269090b5e3b Author: hiro <hiro@torproject.org> Date: Fri Sep 27 18:12:36 2019 +0200 Update ansible web deploy playbook --- roles/gettor-web/tasks/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/gettor-web/tasks/main.yml b/roles/gettor-web/tasks/main.yml index f281e36..93d907a 100644 --- a/roles/gettor-web/tasks/main.yml +++ b/roles/gettor-web/tasks/main.yml @@ -23,13 +23,17 @@ virtualenv: "{{ gettor_web_path }}/venv" - name: activate virtualenv - command: . {{ gettor_web_path }}/venv/bin/activate + shell: source bin/activate + args: + chdir: "{{ gettor_web_path }}/venv" + executable: /bin/bash - name: lektor build - command: lektor build -O {{ home_path }}/www + shell: lektor build -O {{ home_path }}/www + args: + chdir: "{{ gettor_web_path }}" - name: update static component - command: > - static-update-component gettor.torproject.org + shell: static-update-component gettor.torproject.org args: chdir: "{{ gettor_web_path }}"