Skip to content

Commit 134501c

Browse files
committed
WIP
1 parent cdee824 commit 134501c

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

roles/sram_sbs/tasks/main.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
---
2-
# - name: "Initialize database"
3-
# throttle: 1
4-
# import_tasks: "database_init.yml"
5-
# when: "is_dev"
6-
72
- name: "Create SBS group"
83
group:
94
name: "{{ sbs_group }}"
@@ -123,18 +118,10 @@
123118
# TODO: Should we parametrize this?
124119
- name: "loadbalancer"
125120
register: "result"
126-
# failed_when: "'container' not in result or result.container.State.ExitCode != 0"
127-
# changed_when: "'[alembic.runtime.migration] Running upgrade' in result.container.Output"
121+
failed_when: "'container' not in result or result.container.State.ExitCode != 0"
122+
changed_when: "'[alembic.runtime.migration] Running upgrade' in result.container.Output | default('')"
128123
notify: "Restart sbs containers"
129124

130-
# What's with result.container?
131-
- name: debug result
132-
ansible.builtin.debug:
133-
msg: "{{ result }}"
134-
135-
# - name: Stop
136-
# meta: end_play
137-
138125
# Remove the migration container; we can do that with auto_remove, because if we use that, ansible
139126
# will not save the output in result
140127
- name: "Remove migration container"

0 commit comments

Comments
 (0)