瀏覽代碼

ansible version 1.2 and earlier need the web ui

Chris Mague 6 年之前
父節點
當前提交
19c8d8b2df
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tasks/binary_install.yml

+ 2 - 0
tasks/binary_install.yml

@@ -27,6 +27,7 @@
     dest: "{{cloud_consul_download_dir}}/{{cloud_consul_version}}_web_ui.zip"
   tags:
     - install
+  when: {{ ansible_distribution_version | version_compare('1.2', '<') }}
 
 - name: Ensure Consul Install Dir exists
   file:
@@ -67,6 +68,7 @@
     remote_src: True
   tags:
     - install
+  when: {{ ansible_distribution_version | version_compare('1.2', '<') }}
 
 - name: ensures consul command has the right permissions
   file: