Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

31 строка
1.8 KiB

  1. ---
  2. # We generally support Ansible 2.7.1 and above.
  3. - name: Fail if running on Ansible < 2.7.1
  4. ansible.builtin.fail:
  5. msg: "You are running on Ansible {{ ansible_version.string }}, which is not supported. See our guide about Ansible: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md"
  6. when:
  7. - "(ansible_version.major < 2) or (ansible_version.major == 2 and ansible_version.minor < 7) or (ansible_version.major == 2 and ansible_version.minor == 7 and ansible_version.revision < 1)"
  8. # Though we do not support Ansible 2.9.6 which is buggy
  9. - name: Fail if running on Ansible 2.9.6 on Ubuntu
  10. ansible.builtin.fail:
  11. msg: "You are running on Ansible {{ ansible_version.string }}, which is not supported. See our guide about Ansible: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md"
  12. when:
  13. - ansible_distribution == 'Ubuntu'
  14. - "ansible_version.major == 2 and ansible_version.minor == 9 and ansible_version.revision == 6"
  15. - name: Fail if using python2 on Archlinux
  16. ansible.builtin.fail:
  17. msg: "Detected that you're using python2 when installing onto Archlinux. Archlinux by default only supports python3."
  18. when:
  19. - ansible_distribution == 'Archlinux'
  20. - ansible_python.version.major != 3
  21. - name: Fail if architecture is set incorrectly
  22. ansible.builtin.fail:
  23. msg: "Detected that variable matrix_architecture {{ matrix_architecture }} appears to be set incorrectly. See docs/alternative-architectures.md. Server appears to be {{ ansible_architecture }}."
  24. when: (ansible_architecture == "x86_64" and matrix_architecture != "amd64") or
  25. (ansible_architecture == "aarch64" and matrix_architecture != "arm64") or
  26. (ansible_architecture.startswith("armv") and matrix_architecture != "arm32")