Browse Source

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 years ago
committed by GitHub
parent
commit
87719a248e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/matrix-base/tasks/server_base/setup_debian.yml

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

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


Loading…
Cancel
Save