2023-09-06 11:25:37 +02:00
|
|
|
|
---
|
|
|
|
|
- name: Install HC Vault via package manager
|
2024-12-14 14:31:39 +01:00
|
|
|
|
when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora", "Rocky", "Ubuntu"]
|
2023-09-06 13:10:48 +02:00
|
|
|
|
tags: install
|
2023-09-06 11:25:37 +02:00
|
|
|
|
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"]
|
2023-09-06 13:10:48 +02:00
|
|
|
|
tags: install
|
2023-09-06 11:42:26 +02:00
|
|
|
|
|
|
|
|
|
- name: Install ‹vssh› script
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
src: files/vssh.sh
|
|
|
|
|
dest: ~/.local/bin/vssh
|
|
|
|
|
mode: 0700
|