mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2023-03-24 18:00
This commit is contained in:
27
roles/wapt_server/tasks/facts.yml
Normal file
27
roles/wapt_server/tasks/facts.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
|
||||
- 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: wapt
|
||||
|
||||
- when: wapt_db_pass is not defined
|
||||
name: Generate a random pass for the database
|
||||
block:
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: "/opt/wapt/meta/ansible_dbpass"
|
||||
- set_fact: wapt_db_pass={{ rand_pass }}
|
||||
tags: wapt
|
||||
|
||||
- when: wapt_secret_key is not defined
|
||||
name: Generate a random secret_key
|
||||
block:
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: "/opt/wapt/meta/ansible_secret_key"
|
||||
- set_fact: wapt_secret_key={{ rand_pass }}
|
||||
tags: wapt
|
Reference in New Issue
Block a user