Update to 2022-01-28 18:00

This commit is contained in:
Daniel Berteaud
2022-01-28 18:00:06 +01:00
parent c614bcb149
commit 9abf651e65
6 changed files with 32 additions and 8 deletions

View File

@@ -35,6 +35,7 @@
rabbitmqctl add_vhost {{ taiga_amqp_vhost }}
rabbitmqctl set_permissions -p {{ taiga_amqp_vhost }} {{ taiga_amqp_user }} ".*" ".*" ".*"
when: taiga_amqp_server in ['localhost', '127.0.0.1']
changed_when: False
tags: taiga
- when: taiga_install_mode != 'none'
@@ -59,6 +60,17 @@
app_path: "{{ taiga_root_dir }}/app/back"
virtualenv: "{{ taiga_root_dir }}/venv"
- name: Set permissions for nginx
command: |
setfacl -R -k -b {{ taiga_root_dir }}
setfacl -m u:nginx:x {{ taiga_root_dir }}
setfacl -m u:nginx:x {{ taiga_root_dir }}/data
setfacl -m u:nginx:x {{ taiga_root_dir }}/app
setfacl -m u:nginx:x {{ taiga_root_dir }}/app/back
setfacl -R -m u:nginx:rX {{ taiga_root_dir }}/app/front
setfacl -R -m u:nginx:rX {{ taiga_root_dir }}/app/back/static
setfacl -R -m u:nginx:rX {{ taiga_root_dir }}/data/media
environment:
DJANGO_SETTINGS_MODULE: settings.config
CELERY_ENABLED: False
@@ -75,6 +87,16 @@
environment:
DJANGO_SUPERUSER_PASSWORD: '{{ taiga_admin_pass }}'
# For some reason, the password isn't correctly initialized
# Let's reset it using expect
- name: Reset admin user password
expect:
command: "{{ taiga_root_dir }}/venv/bin/python3 ./manage.py changepassword admin"
chdir: "{{ taiga_root_dir }}/app/back/"
responses:
'Password:\s*': "{{ taiga_admin_pass }}"
'Password \(again\):\s*': "{{ taiga_admin_pass }}"
- name: load initial data
django_manage:
command: loaddata initial_project_templates
@@ -86,3 +108,4 @@
CELERY_ENABLED: False
become_user: "{{ taiga_user }}"
tags: taiga