style: make ansible-lint happier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: install garage
|
||||
get_url:
|
||||
- name: Install garage
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ garage_url }}"
|
||||
dest: "{{ garage_bin }}"
|
||||
owner: root
|
||||
@@ -9,20 +9,22 @@
|
||||
mode: 0755
|
||||
force: true
|
||||
notify:
|
||||
- restart garage
|
||||
- Restart garage
|
||||
|
||||
- name: install garage systemd file
|
||||
template:
|
||||
- name: Install garage systemd file
|
||||
ansible.builtin.template:
|
||||
src: garage.service.j2
|
||||
dest: /etc/systemd/system/garage.service
|
||||
mode: 0644
|
||||
|
||||
- name: put garage.toml conf file
|
||||
template:
|
||||
- name: Put garage.toml conf file
|
||||
ansible.builtin.template:
|
||||
src: garage.toml.j2
|
||||
dest: /etc/garage.toml
|
||||
mode: 0644
|
||||
vars:
|
||||
cluster_group: "{{ group_names | map('regex_search', '.+_cluster') | select('string') | first }}"
|
||||
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
|
||||
- Restart garage
|
||||
|
Reference in New Issue
Block a user