Ansible roles
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.
 
 
 
 
 
 

29 lines
1.0 KiB

---
# Detect installed version (if any)
- block:
- import_tasks: ../includes/webapps_set_install_mode.yml
vars:
- root_dir: "{{ metabase_root_dir }}"
- version: "{{ metabase_version }}"
- set_fact: metabase_install_mode={{ (install_mode == 'upgrade' and not metabase_manage_upgrade) | ternary('none',install_mode) }}
- set_fact: metabase_current_version={{ current_version | default('') }}
tags: metabase
# Create a random pass for the DB if needed
- block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ metabase_root_dir }}/meta/ansible_dbpass"
- set_fact: metabase_db_pass={{ rand_pass }}
when: metabase_db_pass is not defined
tags: metabase
# Create a random encryption key
- block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ metabase_root_dir }}/meta/ansible_encryption_key"
- set_fact: metabase_encryption_key={{ rand_pass }}
when: metabase_encryption_key is not defined
tags: metabase