Kaynağa Gözat

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 yıl önce
committed by GitHub
ebeveyn
işleme
1ed991e25c
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. +1
    -1
      docs/ansible.md
  2. +8
    -0
      roles/matrix-base/tasks/sanity_check.yml

+ 1
- 1
docs/ansible.md Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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: >-


Yükleniyor…
İptal
Kaydet