mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-29 10:45:42 +02:00
Update to 2022-01-30 19:00
This commit is contained in:
29
roles/penpot/tasks/facts.yml
Normal file
29
roles/penpot/tasks/facts.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user