diff options
author | LUXEY Adrien <adrien.luxey@inria.fr> | 2021-03-23 17:09:09 +0100 |
---|---|---|
committer | LUXEY Adrien <adrien.luxey@inria.fr> | 2021-03-23 17:09:09 +0100 |
commit | 6f09e7de1c053ff33daad161b5e62e6b31638c53 (patch) | |
tree | cf4e4660fcc7098ce1759326b5a0df0d46d3ef37 /os/config/roles/common/tasks/hashicorp.yml | |
parent | 5126868e30960ef77af8b87357d1fd8646972397 (diff) | |
parent | 7277927ea31ea66f1a3b186423ba59fac2d30d0f (diff) | |
download | infrastructure-6f09e7de1c053ff33daad161b5e62e6b31638c53.tar.gz infrastructure-6f09e7de1c053ff33daad161b5e62e6b31638c53.zip |
Merge branch 'hammerhead_install' into main
Diffstat (limited to 'os/config/roles/common/tasks/hashicorp.yml')
-rw-r--r-- | os/config/roles/common/tasks/hashicorp.yml | 24 |
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 |