Matej Focko
c4e3bcde62
* Install HC Vault on both Debian and Ubuntu in the same way * Fix the branching for userspace install vs package manager install Signed-off-by: Matej Focko <me@mfocko.xyz>
24 lines
730 B
YAML
24 lines
730 B
YAML
---
|
||
- name: Install HC Vault via package manager
|
||
when: ansible_distribution in [ "AlmaLinux", "CentOS", "Debian", "Fedora", "Rocky", "Ubuntu" ]
|
||
tags: install
|
||
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", "Debian", "Fedora", "Rocky", "Ubuntu" ]
|
||
tags: install
|
||
|
||
- name: Install ‹vssh› script
|
||
ansible.builtin.copy:
|
||
src: files/vssh.sh
|
||
dest: ~/.local/bin/vssh
|
||
mode: 0700
|