--- terraform_latest_version: "{{terraform_release.json.current_version}}" terraform_current_version: "{{ terraform_version_command }}" terraform_ansible_architecture_map: x86_64: amd64 terraform_architecture: "{{ terraform_ansible_architecture_map[ansible_architecture] }}" 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 }}" terraform_download_filename: "{{ terraform_download_checksum_line | regex_replace('^[0-9a-fA-F]+ +(terraform_'+terraform_version+'_linux_'+terraform_architecture+'.zip)','\\1') }}" terraform_download_checksum: "sha256:{{ terraform_download_checksum_line | regex_replace('^([0-9a-fA-F]+) +terraform_'+terraform_version+'_linux_'+terraform_architecture+'.zip','\\1') }}" terraform_download_url: "https://releases.hashicorp.com/terraform/{{ terraform_version }}/{{terraform_download_filename}}" terraform_download_dest: "/usr/local/src/{{terraform_download_filename}}"