mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-29 10:45:42 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
28
roles/sftpgo/tasks/facts.yml
Normal file
28
roles/sftpgo/tasks/facts.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
- include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
|
||||
- vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
|
||||
- vars/{{ ansible_distribution }}.yml
|
||||
- vars/{{ ansible_os_family }}.yml
|
||||
tags: sftpgo
|
||||
|
||||
- name: Detect installed version
|
||||
block:
|
||||
- import_tasks: ../includes/webapps_set_install_mode.yml
|
||||
vars:
|
||||
- root_dir: "{{ sftpgo_root_dir }}"
|
||||
- version: "{{ sftpgo_version }}"
|
||||
- set_fact: sftpgo_install_mode={{ (install_mode == 'upgrade' and not sftpgo_manage_upgrade) | ternary('none',install_mode) }}
|
||||
- set_fact: sftpgo_current_version={{ current_version | default('') }}
|
||||
tags: sftpgo
|
||||
|
||||
- when: sftpgo_db_pass is not defined
|
||||
name: Generate a random pass for the database
|
||||
block:
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: "{{ sftpgo_root_dir }}/meta/ansible_dbpass"
|
||||
- set_fact: sftpgo_db_pass={{ rand_pass }}
|
||||
tags: sftpgo
|
Reference in New Issue
Block a user