소스 검색

Add sanity check for server architecture

pull/991/head
Aaron Raimist 5 년 전
부모
커밋
3d2142f88b
No known key found for this signature in database GPG 키 ID: 37419210002890EF
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      roles/matrix-base/tasks/sanity_check.yml

+ 7
- 0
roles/matrix-base/tasks/sanity_check.yml 파일 보기

@@ -52,3 +52,10 @@
when:
- ansible_distribution == 'Archlinux'
- ansible_python.version.major != 3

- name: Fail if architecture is set incorrectly
fail:
msg: "Detected that variable matrix_architecture {{ matrix_architecture }} appears to be set incorrectly. See docs/alternative-architectures.md. Server appears to be {{ ansible_architecture }}."
when: (ansible_architecture == "x86_64" and matrix_architecture != "amd64") or
(ansible_architecture == "aarch64" and matrix_architecture != "arm64") or
(ansible_architecture.startswith("armv") and matrix_architecture != "arm32")

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