26 lines
757 B
YAML
26 lines
757 B
YAML
|
---
|
||
|
# task/install file for hashicorp_vault
|
||
|
- name: "Configure hashicorp repository"
|
||
|
ansible.builtin.include_role:
|
||
|
name: ednxzu.manage_repositories
|
||
|
vars:
|
||
|
manage_repositories_enable_default_repo: false
|
||
|
manage_repositories_enable_custom_repo: true
|
||
|
manage_repositories_custom_repo: "{{ hashi_vault_repository }}"
|
||
|
|
||
|
- name: "Install vault:{{ hashi_vault_version }}"
|
||
|
ansible.builtin.include_role:
|
||
|
name: ednxzu.manage_apt_packages
|
||
|
vars:
|
||
|
manage_apt_packages_list: "{{ hashi_vault_packages }}"
|
||
|
|
||
|
- name: "Copy systemd service file for vault"
|
||
|
ansible.builtin.template:
|
||
|
src: "vault.service.j2"
|
||
|
dest: "/etc/systemd/system/vault.service"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: '0644'
|
||
|
notify:
|
||
|
- "systemctl-daemon-reload"
|