ソースを参照

Merge pull request #769 from aaronraimist/check-for-buggy-ansible

Check for buggy version of Ansible that Ubuntu 20.04 provides
pull/774/head
Slavi Pantaleev 5年前
committed by GitHub
コミット
1ed991e25c
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更9行の追加1行の削除
  1. +1
    -1
      docs/ansible.md
  2. +8
    -0
      roles/matrix-base/tasks/sanity_check.yml

+ 1
- 1
docs/ansible.md ファイルの表示

@@ -11,7 +11,7 @@ If your local computer cannot run Ansible, you can also run Ansible on some serv


Ansible 2.7.0 or newer is required. Ansible 2.7.0 or newer is required.


Ubuntu (at least 20.04) ships with a buggy version (see this [bug](https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1880359)), which can't be used in combination with a host running new systemd (more detaisl in [#517](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/517), [#669]([669](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/669))). If this problem affects you, you can: avoid running Ubuntu 20.04 on your host; run Ansible from another machine targeting your host; or try to upgrade to a newer Ansible version (see below).
Note: Ubuntu 20.04 ships with Ansible 2.9.6 which is a buggy version (see this [bug](https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1880359)), which can't be used in combination with a host running new systemd (more details in [#517](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/517), [#669](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/669)). If this problem affects you, you can: avoid running Ubuntu 20.04 on your host; run Ansible from another machine targeting your host; or try to upgrade to a newer Ansible version (see below).




## Checking your Ansible version ## Checking your Ansible version


+ 8
- 0
roles/matrix-base/tasks/sanity_check.yml ファイルの表示

@@ -6,6 +6,14 @@
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" 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"
when: "(ansible_version.major < 2) or (ansible_version.major <= 2 and ansible_version.minor < 7)" when: "(ansible_version.major < 2) or (ansible_version.major <= 2 and ansible_version.minor < 7)"


# Though we do not support Ansible 2.9.6 which is buggy
- name: Fail if running on Ansible 2.9.6 on Ubuntu
fail:
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"
when:
- ansible_distribution == 'Ubuntu'
- "ansible_version.major == 2 and ansible_version.major == 9 and ansible_version.minor == 6"

- name: (Deprecation) Catch and report renamed settings - name: (Deprecation) Catch and report renamed settings
fail: fail:
msg: >- msg: >-


読み込み中…
キャンセル
保存