infrastructure/os/config/roles/common/tasks/hashicorp.yml

24 lines
685 B
YAML
Raw Normal View History

- 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