Browse Source

fix when logic

Chris Mague 6 years ago
parent
commit
d794fa1d0a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tasks/cloud_configure.yml

+ 4 - 4
tasks/cloud_configure.yml

@@ -1,22 +1,22 @@
 ---
 ---
 
 
-- name: Install the Consul Cloud Configure Script
+- name: Install the Consul Cloud Configure Script for Pre 1.2
   copy:
   copy:
     src: consul_cloud_setup
     src: consul_cloud_setup
     dest: /usr/local/bin/consul_cloud_setup
     dest: /usr/local/bin/consul_cloud_setup
     owner: root
     owner: root
     group: root
     group: root
     mode: "0755" 
     mode: "0755" 
-  when: cloud_consul_version | version_compare('1.2', '<') 
+  when: cloud_consul_version | version_compare('1.2', '>=') 
 
 
-- name: Install the Consul Cloud Configure Script
+- name: Install the Consul Cloud Configure Script for Post 1.2
   copy:
   copy:
     src: consul_cloud_setup_post_1.2
     src: consul_cloud_setup_post_1.2
     dest: /usr/local/bin/consul_cloud_setup
     dest: /usr/local/bin/consul_cloud_setup
     owner: root
     owner: root
     group: root
     group: root
     mode: "0755"
     mode: "0755"
-  when: cloud_consul_version | version_compare('1.2', '>=') 
+  when: cloud_consul_version | version_compare('1.2', '<') 
 
 
 - name: Setup supervisor config
 - name: Setup supervisor config
   copy:
   copy: