Explorar el Código

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 hace 6 años
committed by GitHub
padre
commit
87719a248e
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      roles/matrix-base/tasks/server_base/setup_debian.yml

+ 1
- 1
roles/matrix-base/tasks/server_base/setup_debian.yml Ver fichero

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


Cargando…
Cancelar
Guardar