--- - name: Add hashicorp GPG key become: true apt_key: url: https://apt.releases.hashicorp.com/gpg state: present - name: Add hashicorp repository become: true apt_repository: repo: deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main state: present