chore(redis): add assertion for version with license change

closes: https://github.com/famedly/infra-meta/issues/1528

related-to: https://github.com/famedly/infra-meta/issues/1364
This commit is contained in:
Evelyn Alicke 2024-06-11 11:17:04 +02:00
parent 44a79890d5
commit 519f9b99c1
No known key found for this signature in database
GPG key ID: 6834780BDA479436
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,8 @@
---
# ARE YOU **SURE** YOU WANT TO BUMP THIS VERSION?
redis_version: "7.2.4"
redis_allow_non_foss_yes_really: false
redis_user: "{{ redis_prefix }}redis"
redis_basepath: "/opt/redis"
redis_data_dir: "{{ redis_basepath }}/{{ redis_prefix }}data"

View file

@ -1,4 +1,9 @@
---
- name: "Assure redis version isn't too new"
ansible.builtin.assert:
that: "{{redis_version }} is version('7.2.4' '<=')"
ignore_errors: "{{ redis_allow_non_foss_yes_really }}"
- name: "Create redis user"
user:
name: "{{ redis_user }}"