template_install.yml 735 B

123456789101112131415161718192021222324
  1. ---
  2. - name: Consul Template Download
  3. get_url:
  4. url="https://releases.hashicorp.com/consul-template/{{cloud_consul_template_version}}/consul-template_{{cloud_consul_template_version}}_linux_amd64.zip"
  5. dest="{{cloud_consul_download_dir}}/{{cloud_consul_template_version}}-template_linux_amd64.zip"
  6. tags:
  7. - install
  8. - name: Unzip Consul
  9. unarchive:
  10. src="{{cloud_consul_download_dir}}/{{cloud_consul_template_version}}-template_linux_amd64.zip"
  11. dest="{{cloud_consul_install_dir}}/bin"
  12. remote_src=True
  13. tags:
  14. - install
  15. - name: ensures consul command has the right permissions
  16. file:
  17. path="{{cloud_consul_install_dir}}/bin/consul-template"
  18. owner=root
  19. group=root
  20. mode=0755
  21. state=file