You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
---
|
|
|
|
- fail: msg="pg_admin_pass must be set"
|
|
when: pg_admin_pass is not defined
|
|
tags: funkwhale
|
|
|
|
- import_tasks: ../includes/webapps_set_install_mode.yml
|
|
vars:
|
|
- root_dir: "{{ funkwhale_root_dir }}"
|
|
- version: "{{ funkwhale_version }}"
|
|
tags: funkwhale
|
|
- set_fact: funkwhale_install_mode={{ (install_mode == 'upgrade' and not funkwhale_manage_upgrade) | ternary('none',install_mode) }}
|
|
tags: funkwhale
|
|
- set_fact: funkwhale_current_version={{ current_version | default('') }}
|
|
tags: funkwhale
|
|
|
|
# Create a random pass for the DB if needed
|
|
- import_tasks: ../includes/get_rand_pass.yml
|
|
vars:
|
|
- pass_file: "{{ funkwhale_root_dir }}/meta/ansible_dbpass"
|
|
when: funkwhale_db_pass is not defined
|
|
tags: funkwhale
|
|
- set_fact: funkwhale_db_pass={{ rand_pass }}
|
|
when: funkwhale_db_pass is not defined
|
|
tags: funkwhale
|
|
|
|
# Create a random django secret key
|
|
- import_tasks: ../includes/get_rand_pass.yml
|
|
vars:
|
|
- pass_file: "{{ funkwhale_root_dir }}/meta/ansible_django_key"
|
|
when: funkwhale_secret_key is not defined
|
|
tags: funkwhale
|
|
- set_fact: funkwhale_secret_key={{ rand_pass }}
|
|
when: funkwhale_secret_key is not defined
|
|
tags: funkwhale
|
|
|
|
|