Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: matrix
- when: synapse_pg_db_pass is not defined
block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ synapse_root_dir }}/meta/ansible_dbpass"
- set_fact: synapse_pg_db_pass={{ rand_pass }}
tags: matrix
- block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ synapse_root_dir }}/meta/ansible_macaroon_key"
- set_fact: synapse_macaroon_key={{ rand_pass }}
tags: matrix
- block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ synapse_root_dir }}/meta/ansible_form_secret"
- set_fact: synapse_form_secret={{ rand_pass }}
tags: matrix
- name: Check if the old venv is present
stat: path={{ synapse_root_dir }}/lib
register: synapse_old_venv
tags: matrix