diff --git a/defaults/main.yml b/defaults/main.yml index 5d65a20..5664a2b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,7 +7,8 @@ # Package variables vault_version_suffix: "{{ '+prem' if vault_enterprise_premium else '' }}{{ '.hsm' if vault_enterprise_premium_hsm else '' }}" -vault_version: "{{ lookup('env', 'VAULT_VERSION') | default('1.5.5', true) }}{{ vault_version_suffix }}" +vault_version: "{{ lookup('env', 'VAULT_VERSION') | default('1.18.2', true) }}{{ vault_version_suffix }}" +vault_version_repo_suffix: "-1" vault_architecture_map: # this first entry seems... redundant (but it's required for reasons) amd64: amd64 diff --git a/tasks/install_hashi_repo.yml b/tasks/install_hashi_repo.yml index 416e3b5..0ec0bf4 100644 --- a/tasks/install_hashi_repo.yml +++ b/tasks/install_hashi_repo.yml @@ -72,11 +72,11 @@ become: true vars: _vault_repo_pkg: "{% if (ansible_pkg_mgr in ['yum', 'dnf']) %}\ - vault-{{ vault_version }}\ + vault-{{ vault_version }}{{ vault_version_repo_suffix }}\ {% elif (ansible_pkg_mgr == 'apt') %}\ - vault={{ vault_version }}\ + vault={{ vault_version }}{{ vault_version_repo_suffix }}\ {% else %}\ - vault={{ vault_version }}\ + vault={{ vault_version }}{{ vault_version_repo_suffix }}\ {% endif %}" - name: Mask default Vault config from package