equal
deleted
inserted
replaced
98 |
98 |
99 # |
99 # |
100 # all actions |
100 # all actions |
101 # |
101 # |
102 - hosts: remote_discussions |
102 - hosts: remote_discussions |
|
103 # - hosts: localhost |
|
104 connection: local |
103 vars: |
105 vars: |
104 isso_build_dir: "{{playbook_dir}}/build/tmp/isso" |
106 isso_build_dir: "{{playbook_dir}}/build/tmp/isso" |
105 dashboard_build_dir: "{{playbook_dir}}/build/tmp/dashboard" |
107 dashboard_build_dir: "{{playbook_dir}}/build/tmp/dashboard" |
106 clientjs_dir: "{{playbook_dir}}/build/tmp/dashboard/clientjs" |
108 clientjs_dir: "{{playbook_dir}}/build/tmp/dashboard/clientjs" |
107 tasks: |
109 tasks: |
274 state: absent |
276 state: absent |
275 when: copy_annotation_api_requirements.changed |
277 when: copy_annotation_api_requirements.changed |
276 |
278 |
277 - name: create annotations api virtualenv |
279 - name: create annotations api virtualenv |
278 pip: |
280 pip: |
279 virtualenv_command: /usr/bin/python3 -m venv |
281 virtualenv_command: /usr/local/share/pyenv/shims/python3 -m venv |
280 virtualenv: "{{annotations_api_venv}}" |
282 virtualenv: "{{annotations_api_venv}}" |
281 requirements: "{{annotations_api_config_base}}/annotation_api_requirements.txt" |
283 requirements: "{{annotations_api_config_base}}/annotation_api_requirements.txt" |
|
284 environment: |
|
285 PYENV_VERSION: "system" |
282 when: copy_annotation_api_requirements.changed or (not annotations_api_venv_stats.stat.exists) |
286 when: copy_annotation_api_requirements.changed or (not annotations_api_venv_stats.stat.exists) |
283 notify: restart annotations api service |
287 notify: restart annotations api service |
284 |
288 |
285 - name: copy annotations api module |
289 - name: copy annotations api module |
286 copy: |
290 copy: |
371 dest: "{{discussions_build_tmp_dir.path}}" |
375 dest: "{{discussions_build_tmp_dir.path}}" |
372 when: copy_discussions_requirements.changed or (not discussions_venv_stats.stat.exists) |
376 when: copy_discussions_requirements.changed or (not discussions_venv_stats.stat.exists) |
373 |
377 |
374 - name: create discussions virtualenv |
378 - name: create discussions virtualenv |
375 pip: |
379 pip: |
376 virtualenv_command: /usr/bin/python3 -m venv |
380 virtualenv_command: /usr/local/share/pyenv/shims/python3 -m venv |
377 virtualenv: "{{discussions_venv}}" |
381 virtualenv: "{{discussions_venv}}" |
378 requirements: "{{discussions_config_base}}/discussions_requirements.txt" |
382 requirements: "{{discussions_config_base}}/discussions_requirements.txt" |
|
383 environment: |
|
384 PYENV_VERSION: "system" |
379 when: copy_discussions_requirements.changed or (not discussions_venv_stats.stat.exists) |
385 when: copy_discussions_requirements.changed or (not discussions_venv_stats.stat.exists) |
380 notify: restart discussions service |
386 notify: restart discussions service |
381 |
387 |
382 - name: install discussions pkg in venv |
388 - name: install discussions pkg in venv |
383 pip: |
389 pip: |