--- # Load distribution specific variables - include_vars: "{{ item }}" with_first_found: - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" - "{{ role_path }}/vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml" - "{{ role_path }}/vars/{{ ansible_distribution }}.yml" - "{{ role_path }}/vars/{{ ansible_os_family }}.yml" tags: penpot # Detect installed version (if any) - block: - import_tasks: ../includes/webapps_set_install_mode.yml vars: - root_dir: "{{ penpot_root_dir }}" - version: "{{ penpot_version }}" - set_fact: penpot_install_mode={{ (install_mode == 'upgrade' and not penpot_manage_upgrade) | ternary('none',install_mode) }} - set_fact: penpot_current_version={{ current_version | default('') }} tags: penpot # Create a random pass for the DB if needed - block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ penpot_root_dir }}/meta/ansible_dbpass" - set_fact: penpot_db_pass={{ rand_pass }} when: penpot_db_pass is not defined tags: penpot