File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}"
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"
You can’t perform that action at this time.
0 commit comments