deploy/deploy.yml
changeset 23 cd25fa7db90c
parent 22 dc86feffed02
child 25 7f7cdcd01dea
--- a/deploy/deploy.yml	Mon Jun 21 15:09:55 2021 +0200
+++ b/deploy/deploy.yml	Tue Mar 29 12:01:13 2022 +0200
@@ -100,6 +100,8 @@
 # all actions
 #
 - hosts: remote_discussions
+# - hosts: localhost
+  connection: local
   vars:
     isso_build_dir: "{{playbook_dir}}/build/tmp/isso"
     dashboard_build_dir: "{{playbook_dir}}/build/tmp/dashboard"
@@ -276,9 +278,11 @@
 
     - name: create annotations api virtualenv
       pip:
-        virtualenv_command: /usr/bin/python3 -m venv
+        virtualenv_command: /usr/local/share/pyenv/shims/python3 -m venv
         virtualenv: "{{annotations_api_venv}}"
         requirements: "{{annotations_api_config_base}}/annotation_api_requirements.txt"
+      environment:
+        PYENV_VERSION: "system"
       when: copy_annotation_api_requirements.changed or (not annotations_api_venv_stats.stat.exists)
       notify: restart annotations api service
 
@@ -373,9 +377,11 @@
 
     - name: create discussions virtualenv
       pip:
-        virtualenv_command: /usr/bin/python3 -m venv
+        virtualenv_command: /usr/local/share/pyenv/shims/python3 -m venv
         virtualenv: "{{discussions_venv}}"
         requirements: "{{discussions_config_base}}/discussions_requirements.txt"
+      environment:
+        PYENV_VERSION: "system"
       when: copy_discussions_requirements.changed or (not discussions_venv_stats.stat.exists)
       notify: restart discussions service