소스 검색

Make wait time for matrix-user-creator configurable and increase default (7 -> 10 sec.)

pull/2515/head
Slavi Pantaleev 3 년 전
부모
커밋
0af6e6d9d9
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -0
      roles/custom/matrix-user-creator/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-user-creator/tasks/setup.yml

+ 3
- 0
roles/custom/matrix-user-creator/defaults/main.yml 파일 보기

@@ -20,3 +20,6 @@ matrix_user_creator_users_auto: []
# Add your own users here to have them end up in `matrix_user_creator_users` (see `vars/main.yml`) and get automatically created. # Add your own users here to have them end up in `matrix_user_creator_users` (see `vars/main.yml`) and get automatically created.
# For example syntax for this variable, see the documentation for `matrix_user_creator_users` in `vars/main.yml`. # For example syntax for this variable, see the documentation for `matrix_user_creator_users` in `vars/main.yml`.
matrix_user_creator_users_additional: [] matrix_user_creator_users_additional: []

# matrix_user_creator_homeserver_start_wait_time_seconds specifies how long to wait after starting the homeserver service and before doing our work.
matrix_user_creator_homeserver_start_wait_time_seconds: 10

+ 1
- 1
roles/custom/matrix-user-creator/tasks/setup.yml 파일 보기

@@ -21,7 +21,7 @@


- name: Wait a while, so that the homeserver can manage to start before creating Matrix users - name: Wait a while, so that the homeserver can manage to start before creating Matrix users
ansible.builtin.pause: ansible.builtin.pause:
seconds: 7
seconds: "{{ matrix_user_creator_homeserver_start_wait_time_seconds }}"
when: matrix_user_registrator_homeserver_start_result.changed | bool when: matrix_user_registrator_homeserver_start_result.changed | bool


- name: Ensure Matrix users are created - name: Ensure Matrix users are created


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