소스 검색

Relocate fail check to a better place

pull/54/head
Slavi Pantaleev 7 년 전
부모
커밋
e693b12d28
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +0
    -5
      roles/matrix-server/tasks/setup/setup_synapse_main.yml
  2. +5
    -0
      roles/matrix-server/tasks/setup/setup_synapse_pre.yml

+ 0
- 5
roles/matrix-server/tasks/setup/setup_synapse_main.yml 파일 보기

@@ -1,10 +1,5 @@
---

- name: Fail if Macaroon key is missing
fail:
msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
when: "matrix_synapse_macaroon_secret_key == ''"

# This will throw a Permission Denied error if already mounted using fuse
- name: Check Matrix Synapse media store path
stat: path="{{ matrix_synapse_media_store_path }}"


+ 5
- 0
roles/matrix-server/tasks/setup/setup_synapse_pre.yml 파일 보기

@@ -1,5 +1,10 @@
---

- name: Fail if Macaroon key is missing
fail:
msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
when: "matrix_synapse_macaroon_secret_key == ''"

- name: Ensure Matrix Synapse paths exist
file:
path: "{{ item }}"


불러오는 중...
취소
저장