mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2022-02-18 16:00
This commit is contained in:
20
roles/pgweb/tasks/facts.yml
Normal file
20
roles/pgweb/tasks/facts.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user