aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/common/tasks/hashicorp.yml
blob: 9cf647b35d974ce2a6cb06e768696953497f3fd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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