ソースを参照

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年前
committed by GitHub
コミット
87719a248e
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      roles/matrix-base/tasks/server_base/setup_debian.yml

+ 1
- 1
roles/matrix-base/tasks/server_base/setup_debian.yml ファイルの表示

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


読み込み中…
キャンセル
保存