feat: turns root_domain into var

This commit is contained in:
VC
2024-07-05 11:53:31 +02:00
parent 93da538013
commit 7fbab79b4a
3 changed files with 6 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
dest: /etc/garage.toml
vars:
cluster_group: "{{ group_names | map('regex_search', '.+_cluster') | select('string') | first }}"
garage_replication_mode: "{{ groups[cluster_group] | length if (groups[cluster_group]|length) <=3 else 3 }}"
cluster_group_length: "{{ groups[cluster_group] | reject('search', 'gw') | length }}"
garage_replication_mode: "{{ cluster_group_length | int if (cluster_group_length | int) <= 3 else 3 }}"
notify:
- restart garage