mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2024-05-02 11:01
This commit is contained in:
22
roles/jmeter-server/tasks/facts.yml
Normal file
22
roles/jmeter-server/tasks/facts.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
|
||||
# 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: jmeter
|
||||
|
||||
# Detect installed version (if any)
|
||||
- block:
|
||||
- import_tasks: ../includes/webapps_set_install_mode.yml
|
||||
vars:
|
||||
- root_dir: "{{ jmeter_root_dir }}"
|
||||
- version: "{{ jmeter_version }}"
|
||||
- set_fact: jmeter_install_mode={{ (install_mode == 'upgrade' and not jmeter_manage_upgrade) | ternary('none',install_mode) }}
|
||||
- set_fact: jmeter_current_version={{ current_version | default('') }}
|
||||
tags: jmeter
|
||||
|
||||
|
Reference in New Issue
Block a user