nomad/ansible/roles/hashicorp-apt/tasks/main.yml
2023-03-18 13:13:16 +00:00

21 lines
483 B
YAML

---
- name: Add Hashicorp apt key
become: true
shell:
cmd: "curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -"
register: result
- name: Print out result
debug:
msg: "{{ result.stdout }}"
- name: Add Hashicorp repository
become: true
shell:
cmd: 'sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"'
register: result
- name: Print out results
debug:
msg: "{{ result.stdout }}"