aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/common/tasks/hashicorp.yml
diff options
context:
space:
mode:
authorLUXEY Adrien <adrien.luxey@inria.fr>2021-03-23 17:00:27 +0100
committerLUXEY Adrien <adrien.luxey@inria.fr>2021-03-23 17:00:27 +0100
commit7852eef5a6d0eefc5914f178549f6845857a5c49 (patch)
tree7653802dee54d7485e42a14d8128087596f9ca81 /os/config/roles/common/tasks/hashicorp.yml
parent005a027fcb6e4c9a4d90da27963617b6463aa7f2 (diff)
downloadinfrastructure-7852eef5a6d0eefc5914f178549f6845857a5c49.tar.gz
infrastructure-7852eef5a6d0eefc5914f178549f6845857a5c49.zip
WIP: improving Ansible config while I install my HammerHead - added files...
Diffstat (limited to 'os/config/roles/common/tasks/hashicorp.yml')
-rw-r--r--os/config/roles/common/tasks/hashicorp.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/os/config/roles/common/tasks/hashicorp.yml b/os/config/roles/common/tasks/hashicorp.yml
new file mode 100644
index 0000000..9cf647b
--- /dev/null
+++ b/os/config/roles/common/tasks/hashicorp.yml
@@ -0,0 +1,24 @@
+- name: "Add Hashicorps's official GPG key to apt"
+ ansible.builtin.apt_key:
+ url: https://apt.releases.hashicorp.com/gpg
+ state: present
+
+- name: "Add Hashicorp's repository to APT sources list"
+ ansible.builtin.apt_repository:
+ repo: "deb [arch={{ architecture_map[ansible_architecture] }}] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
+ state: present
+ vars:
+ architecture_map:
+ "x86_64": "amd64"
+ "aarch64": "arm64"
+ "aarch": "arm64"
+ "armhf": "armhf"
+ "armv7l": "armhf"
+
+- name: "Install Nomad & Consul"
+ ansible.builtin.apt:
+ state: present
+ update_cache: yes
+ name:
+ - nomad
+ - consul \ No newline at end of file