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