Parcourir la source

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 il y a 5 ans
committed by GitHub
Parent
révision
1ed991e25c
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
2 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. +1
    -1
      docs/ansible.md
  2. +8
    -0
      roles/matrix-base/tasks/sanity_check.yml

+ 1
- 1
docs/ansible.md Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer