Sfoglia il codice sorgente

Added condition if ansible is not running on python3

"'3' if ansible_python.version.major == 3" fatally exits on systems with Python versions less than 3.  Adding the "else" statement corrects the fatal error.
pull/360/head
Shane DeRidder 6 anni fa
committed by GitHub
parent
commit
87719a248e
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      roles/matrix-base/tasks/server_base/setup_debian.yml

+ 1
- 1
roles/matrix-base/tasks/server_base/setup_debian.yml Vedi File

@@ -28,7 +28,7 @@
apt:
name:
- bash-completion
- "python{{'3' if ansible_python.version.major == 3}}-docker"
- "python{{'3' if ansible_python.version.major == 3 else ''}}-docker"
- ntp
- fuse
state: latest


Caricamento…
Annulla
Salva