From f69a8b87d15594de7588c6998ac785ea1af7ac0d Mon Sep 17 00:00:00 2001 From: James Hackett <jamesthackett1@gmail.com> Date: Thu, 8 Dec 2022 01:57:52 +0000 Subject: [PATCH] adds hashicorp apt key role --- ansible/roles/hashicorp-apt/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ansible/roles/hashicorp-apt/tasks/main.yml diff --git a/ansible/roles/hashicorp-apt/tasks/main.yml b/ansible/roles/hashicorp-apt/tasks/main.yml new file mode 100644 index 0000000..3ad6e98 --- /dev/null +++ b/ansible/roles/hashicorp-apt/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- 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