feat: turns root_domain into var
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user