Просмотр исходного кода

Merge pull request #991 from aaronraimist/arch-sanity-check

Add sanity check for server architecture
pull/997/head
Slavi Pantaleev 4 лет назад
committed by GitHub
Родитель
Сommit
898c0a842e
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
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")

Загрузка…
Отмена
Сохранить