dotfiles/roles/secrets_hcv/tasks/main.yml
Matej Focko fb94b38a57
feat: add Rocky to possible targets
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-14 14:31:39 +01:00

24 lines
699 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install HC Vault via package manager
when: ansible_distribution in [ "AlmaLinux", "CentOS", "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", "Fedora", "Ubuntu"]
tags: install
- name: Install vssh script
ansible.builtin.copy:
src: files/vssh.sh
dest: ~/.local/bin/vssh
mode: 0700