16 lines
533 B
YAML
16 lines
533 B
YAML
---
|
|
- name: Install HC Vault via package manager
|
|
when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora", "Ubuntu"]
|
|
block:
|
|
- name: Enable repository
|
|
ansible.builtin.include_tasks: "install_{{ ansible_distribution }}.yml"
|
|
|
|
- name: Install Vault
|
|
ansible.builtin.package:
|
|
name: vault
|
|
state: present
|
|
become: true
|
|
|
|
- name: Install HC Vault to userspace
|
|
ansible.builtin.include_tasks: install_user.yml
|
|
when: ansible_distribution not in [ "AlmaLinux", "CentOS", "Fedora", "Ubuntu"]
|