Update to 2022-01-28 00:00

This commit is contained in:
Daniel Berteaud
2022-01-28 00:00:19 +01:00
parent 6870f5b171
commit c614bcb149
7 changed files with 104 additions and 17 deletions

View File

@@ -10,6 +10,16 @@
- postgresql14
tags: taiga
- name: Stop services during upgrade
service: name={{ item }} state=stopped
loop:
- taiga-back
- taiga-async
- taiga-events
- taiga-protected
when: taiga_install_mode == 'upgrade'
tags: taiga
- name: Archive previous version
synchronize:
src: "{{ taiga_root_dir }}/{{ item }}"

View File

@@ -72,6 +72,8 @@
command: createsuperuser --noinput --username admin --email admin@{{ ansible_domain }}
app_path: "{{ taiga_root_dir }}/app/back"
virtualenv: "{{ taiga_root_dir }}/venv"
environment:
DJANGO_SUPERUSER_PASSWORD: '{{ taiga_admin_pass }}'
- name: load initial data
django_manage:
@@ -80,9 +82,7 @@
virtualenv: "{{ taiga_root_dir }}/venv"
environment:
DJANGO_SUPERUSER_PASSWORD: '{{ taiga_admin_pass }}'
DJANGO_SETTINGS_MODULE: settings.config
CELERY_ENABLED: False
become_user: "{{ taiga_user }}"
when: taiga_install_mode == 'install'
tags: taiga

View File

@@ -4,15 +4,9 @@
package: name={{ taiga_packages }}
tags: taiga
- name: Stop services during upgrade
service: name={{ item }} state=stopped
loop:
- taiga-back
- taiga-async
- taiga-events
- taiga-protected
- name: Wipe the venv during upgrades
file: path={{ taiga_root_dir }}/venv state=absent
when: taiga_install_mode == 'upgrade'
tags: taiga
- when: taiga_install_mode != 'none'
block:
@@ -53,8 +47,6 @@
state: "{{ (taiga_install_mode == 'upgrade') | ternary('latest', 'present') }}"
virtualenv: "{{ taiga_root_dir }}/venv"
virtualenv_command: /bin/python3.9 -m venv
#environment:
# PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/pgsql-14/bin/
- name: Install the contrib-protected plugin
pip:
@@ -62,6 +54,22 @@
virtualenv: "{{ taiga_root_dir }}/venv"
virtualenv_command: /bin/python3.9 -m venv
- name: Clone the openid-auth plugin
git:
repo: https://github.com/robrotheram/taiga-contrib-openid-auth.git
dest: "{{ taiga_root_dir }}/app/back/taiga-contrib-openid-auth"
- name: Install the openid-auth backend plugin
command: "{{ taiga_root_dir }}/venv/bin/pip3 install -e ."
args:
chdir: "{{ taiga_root_dir }}/app/back/taiga-contrib-openid-auth/back"
- name: Create the front plugin dir
file: path={{ taiga_root_dir }}/app/front/dist/plugins/ state=directory
- name: Install the openid-auth front plugin
copy: src={{ taiga_root_dir }}/tmp/taiga-contrib-openid-auth/front/dist/ dest={{ taiga_root_dir }}/app/front/dist/plugins/openid-auth/ remote_src=True
- name: Install dependencies for taiga-events
npm:
path: "{{ taiga_root_dir }}/app/events/"