chore: fix boilerplate for vault role

This commit is contained in:
Bertrand Lanson 2024-10-06 12:18:07 +02:00
parent fd500f5d72
commit 318c51b534
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
11 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,5 @@
--- ---
# defaults file for hashicorp_vault # defaults file for vault
vault_version: latest vault_version: latest
vault_start_service: true vault_start_service: true
vault_config_dir: "/etc/vault.d" vault_config_dir: "/etc/vault.d"

View File

@ -1,2 +1,2 @@
--- ---
# handlers file for hashicorp_vault # handlers file for vault

View File

@ -1,5 +1,5 @@
--- ---
# meta file for hashicorp_vault # meta file for vault
galaxy_info: galaxy_info:
namespace: "ednz_cloud" namespace: "ednz_cloud"
role_name: "hashicorp_vault" role_name: "hashicorp_vault"

View File

@ -1,5 +1,5 @@
--- ---
# task/configure file for hashicorp_vault # task/configure file for vault
- name: "Vault | Create vault.env" - name: "Vault | Create vault.env"
ansible.builtin.template: ansible.builtin.template:
src: vault.env.j2 src: vault.env.j2

View File

@ -1,5 +1,5 @@
--- ---
# task/install file for hashicorp_vault # task/install file for vault
- name: "Vault | Get latest release of vault" - name: "Vault | Get latest release of vault"
when: vault_version == 'latest' when: vault_version == 'latest'
block: block:

View File

@ -1,5 +1,5 @@
--- ---
# task/main file for hashicorp_vault # task/main file for vault
- name: "Vault | Set reload-check & restart-check variable" - name: "Vault | Set reload-check & restart-check variable"
ansible.builtin.set_fact: ansible.builtin.set_fact:
_vault_service_need_reload: false _vault_service_need_reload: false

View File

@ -1,5 +1,5 @@
--- ---
# task/merge_variables file for hashicorp_vault # task/merge_variables file for vault
- name: "Vault | Merge listener configuration" - name: "Vault | Merge listener configuration"
block: block:
- name: "Vault | Merge tls listener configuration" - name: "Vault | Merge tls listener configuration"

View File

@ -1,5 +1,5 @@
--- ---
# task/prerequisites file for hashicorp_vault # task/prerequisites file for vault
- name: "Vault | Create group {{ vault_group }}" - name: "Vault | Create group {{ vault_group }}"
ansible.builtin.group: ansible.builtin.group:
name: "{{ vault_group }}" name: "{{ vault_group }}"

View File

@ -1,5 +1,5 @@
--- ---
# task/recursive_copy_extra_dirs file for hashicorp_vault # task/recursive_copy_extra_dirs file for vault
- name: "Vault | Ensure destination directory exists" - name: "Vault | Ensure destination directory exists"
ansible.builtin.file: ansible.builtin.file:
path: "{{ dir_source_item.dest }}" path: "{{ dir_source_item.dest }}"

View File

@ -1,4 +1,5 @@
--- ---
# task/rolling_restart file for vault
- name: "Vault | Start service: {{ vault_service_name }}" - name: "Vault | Start service: {{ vault_service_name }}"
ansible.builtin.service: ansible.builtin.service:
name: "{{ vault_service_name }}" name: "{{ vault_service_name }}"

View File

@ -1,5 +1,5 @@
--- ---
# vars file for hashicorp_vault # vars file for vault
vault_user: "vault" vault_user: "vault"
vault_group: "vault" vault_group: "vault"
vault_binary_path: /usr/local/bin/vault vault_binary_path: /usr/local/bin/vault