cloud_configure.yml 683 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: Install the Consul Cloud Configure Script for Pre 1.2
  3. copy:
  4. src: consul_cloud_setup
  5. dest: /usr/local/bin/consul_cloud_setup
  6. owner: root
  7. group: root
  8. mode: "0755"
  9. when: cloud_consul_version | version_compare('1.2', '<')
  10. - name: Install the Consul Cloud Configure Script for Post 1.2
  11. copy:
  12. src: consul_cloud_setup_post_1.2
  13. dest: /usr/local/bin/consul_cloud_setup
  14. owner: root
  15. group: root
  16. mode: "0755"
  17. when: cloud_consul_version | version_compare('1.2', '>=')
  18. - name: Setup supervisor config
  19. copy:
  20. src: supervisord_consul
  21. dest: /etc/supervisor/conf.d/consul.conf
  22. owner: root
  23. group: root
  24. mode: "0755"