From 318c51b534a796c8224cf92e72b7077c05b0b1aa Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 6 Oct 2024 12:18:07 +0200 Subject: [PATCH] chore: fix boilerplate for vault role --- roles/vault/defaults/main.yml | 2 +- roles/vault/handlers/main.yml | 2 +- roles/vault/meta/main.yml | 2 +- roles/vault/tasks/configure.yml | 2 +- roles/vault/tasks/install.yml | 2 +- roles/vault/tasks/main.yml | 2 +- roles/vault/tasks/merge_variables.yml | 2 +- roles/vault/tasks/prerequisites.yml | 2 +- roles/vault/tasks/recursive_copy_extra_dirs.yml | 2 +- roles/vault/tasks/rolling_restart.yml | 1 + roles/vault/vars/main.yml | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/roles/vault/defaults/main.yml b/roles/vault/defaults/main.yml index c39380c..6d19658 100644 --- a/roles/vault/defaults/main.yml +++ b/roles/vault/defaults/main.yml @@ -1,5 +1,5 @@ --- -# defaults file for hashicorp_vault +# defaults file for vault vault_version: latest vault_start_service: true vault_config_dir: "/etc/vault.d" diff --git a/roles/vault/handlers/main.yml b/roles/vault/handlers/main.yml index 72dc0f5..64aa527 100644 --- a/roles/vault/handlers/main.yml +++ b/roles/vault/handlers/main.yml @@ -1,2 +1,2 @@ --- -# handlers file for hashicorp_vault +# handlers file for vault diff --git a/roles/vault/meta/main.yml b/roles/vault/meta/main.yml index 9b856ed..482d014 100644 --- a/roles/vault/meta/main.yml +++ b/roles/vault/meta/main.yml @@ -1,5 +1,5 @@ --- -# meta file for hashicorp_vault +# meta file for vault galaxy_info: namespace: "ednz_cloud" role_name: "hashicorp_vault" diff --git a/roles/vault/tasks/configure.yml b/roles/vault/tasks/configure.yml index 798e4fd..a8fe340 100644 --- a/roles/vault/tasks/configure.yml +++ b/roles/vault/tasks/configure.yml @@ -1,5 +1,5 @@ --- -# task/configure file for hashicorp_vault +# task/configure file for vault - name: "Vault | Create vault.env" ansible.builtin.template: src: vault.env.j2 diff --git a/roles/vault/tasks/install.yml b/roles/vault/tasks/install.yml index 269dd4b..0e61b73 100644 --- a/roles/vault/tasks/install.yml +++ b/roles/vault/tasks/install.yml @@ -1,5 +1,5 @@ --- -# task/install file for hashicorp_vault +# task/install file for vault - name: "Vault | Get latest release of vault" when: vault_version == 'latest' block: diff --git a/roles/vault/tasks/main.yml b/roles/vault/tasks/main.yml index 6a0466d..89aa5ba 100644 --- a/roles/vault/tasks/main.yml +++ b/roles/vault/tasks/main.yml @@ -1,5 +1,5 @@ --- -# task/main file for hashicorp_vault +# task/main file for vault - name: "Vault | Set reload-check & restart-check variable" ansible.builtin.set_fact: _vault_service_need_reload: false diff --git a/roles/vault/tasks/merge_variables.yml b/roles/vault/tasks/merge_variables.yml index 61af80c..65976f8 100644 --- a/roles/vault/tasks/merge_variables.yml +++ b/roles/vault/tasks/merge_variables.yml @@ -1,5 +1,5 @@ --- -# task/merge_variables file for hashicorp_vault +# task/merge_variables file for vault - name: "Vault | Merge listener configuration" block: - name: "Vault | Merge tls listener configuration" diff --git a/roles/vault/tasks/prerequisites.yml b/roles/vault/tasks/prerequisites.yml index 53e4197..88ebb26 100644 --- a/roles/vault/tasks/prerequisites.yml +++ b/roles/vault/tasks/prerequisites.yml @@ -1,5 +1,5 @@ --- -# task/prerequisites file for hashicorp_vault +# task/prerequisites file for vault - name: "Vault | Create group {{ vault_group }}" ansible.builtin.group: name: "{{ vault_group }}" diff --git a/roles/vault/tasks/recursive_copy_extra_dirs.yml b/roles/vault/tasks/recursive_copy_extra_dirs.yml index 147ea35..105dde7 100644 --- a/roles/vault/tasks/recursive_copy_extra_dirs.yml +++ b/roles/vault/tasks/recursive_copy_extra_dirs.yml @@ -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" ansible.builtin.file: path: "{{ dir_source_item.dest }}" diff --git a/roles/vault/tasks/rolling_restart.yml b/roles/vault/tasks/rolling_restart.yml index d4e3754..15f7aba 100644 --- a/roles/vault/tasks/rolling_restart.yml +++ b/roles/vault/tasks/rolling_restart.yml @@ -1,4 +1,5 @@ --- +# task/rolling_restart file for vault - name: "Vault | Start service: {{ vault_service_name }}" ansible.builtin.service: name: "{{ vault_service_name }}" diff --git a/roles/vault/vars/main.yml b/roles/vault/vars/main.yml index 5967bde..4d990f5 100644 --- a/roles/vault/vars/main.yml +++ b/roles/vault/vars/main.yml @@ -1,5 +1,5 @@ --- -# vars file for hashicorp_vault +# vars file for vault vault_user: "vault" vault_group: "vault" vault_binary_path: /usr/local/bin/vault