You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yaml 1.0KB

4 vuotta sitten
1234567891011
  1. ---
  2. terraform_latest_version: "{{terraform_release.json.current_version}}"
  3. terraform_current_version: "{{ terraform_version_command }}"
  4. terraform_ansible_architecture_map:
  5. x86_64: amd64
  6. terraform_architecture: "{{ terraform_ansible_architecture_map[ansible_architecture] }}"
  7. terraform_download_checksum_line: "{{ terraform_release_checksums_uri.content.split('\n')|select('match', '^[0-9a-fA-F]+ +(terraform_'+terraform_version+'_linux_'+terraform_architecture+'.zip)') | first }}"
  8. terraform_download_filename: "{{ terraform_download_checksum_line | regex_replace('^[0-9a-fA-F]+ +(terraform_'+terraform_version+'_linux_'+terraform_architecture+'.zip)','\\1') }}"
  9. terraform_download_checksum: "sha256:{{ terraform_download_checksum_line | regex_replace('^([0-9a-fA-F]+) +terraform_'+terraform_version+'_linux_'+terraform_architecture+'.zip','\\1') }}"
  10. terraform_download_url: "https://releases.hashicorp.com/terraform/{{ terraform_version }}/{{terraform_download_filename}}"
  11. terraform_download_dest: "/usr/local/src/{{terraform_download_filename}}"