mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-14 17:23:11 +02:00
21 lines
861 B
YAML
21 lines
861 B
YAML
---
|
|
|
|
- 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: pgweb,pg
|
|
|
|
# Detect installed version (if any) and detect if it's an install / upgrade / nothing
|
|
- block:
|
|
- import_tasks: ../includes/webapps_set_install_mode.yml
|
|
vars:
|
|
- root_dir: "{{ pgweb_root_dir }}"
|
|
- version: "{{ pgweb_version }}"
|
|
- set_fact: pgweb_install_mode={{ (install_mode == 'upgrade' and not pgweb_manage_upgrade) | ternary('none',install_mode) }}
|
|
- set_fact: pgweb_current_version={{ current_version | default('') }}
|
|
tags: pgweb,pg
|
|
|