Skip to content
Snippets Groups Projects
Commit 52fed524 authored by ale's avatar ale
Browse files

Fix task conditions

parent 39decdeb
No related branches found
No related tags found
1 merge request!199Draft: Add s3-storage role
Pipeline #42404 passed
......@@ -40,12 +40,12 @@
- shell: "in-container s3-storage-http /garage layout assign {{ hostvars[item].garage_node_id[:10] }} -z {{ hostvars[item].garage_zone | default('default') }} -c {{ hostvars[item].garage_capacity | default(10) }}"
loop: "{{ services['s3-storage'].hosts }}"
when: "not garage_bootstrapped.stat.exists"
when: "garage_is_leader and not garage_bootstrapped.stat.exists"
- shell: "in-container s3-storage-http /garage layout apply --version 1"
when: "not garage_bootstrapped.stat.exists"
when: "garage_is_leader and not garage_bootstrapped.stat.exists"
- file:
path: /var/lib/garage/.bootstrapped
state: touch
when: garage_is_leader and not garage_bootstrapped.stat.exists
when: "garage_is_leader and not garage_bootstrapped.stat.exists"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment