This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
ansible/roles/stackhead_module_api/tasks_internal
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: ansible/roles/stackhead_module_api/tasks_internal/execute-module-step.yml +11-4Lines changed: 11 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
11 | 11 | - "{{ loaded_config.role_path }}/vars/main.yml" |
12 | 12 | loop_control: |
13 | 13 | loop_var: var_path |
14 | | -- name: "{{ stackhead_action }} {{ module.group }} ({{ module.name }}) configuration" |
15 | | - include_tasks: "{{ include_file_path }}" |
16 | | - when: lookup('pipe', '[ -f ' ~ include_file_path ~ ' ]; echo $?') == '0' or not module.optional|default(false)|bool |
| 14 | +- block: |
| 15 | + - name: "Run migration step for {{ module.group }} ({{ module.name }})" |
| 16 | + include_tasks: "{{ include_file_path }}" |
| 17 | + when: lookup('pipe', '[ -f ' ~ include_file_path ~ ' ]; echo $?') == '0' |
| 18 | + vars: |
| 19 | + include_file_path: "{{ module_role_path }}/tasks/steps/migration.yml" |
| 20 | + - name: "{{ stackhead_action }} {{ module.group }} ({{ module.name }}) configuration" |
| 21 | + include_tasks: "{{ include_file_path }}" |
| 22 | + when: lookup('pipe', '[ -f ' ~ include_file_path ~ ' ]; echo $?') == '0' or not module.optional|default(false)|bool |
| 23 | + vars: |
| 24 | + include_file_path: "{{ module_role_path }}/tasks/steps/{{ stackhead_action }}.yml" |
17 | 25 | vars: |
18 | 26 | module_role_path: "{{ lookup('getstackhead.stackhead.role_path', module.name) }}" |
19 | | - include_file_path: "{{ module_role_path }}/tasks/steps/{{ stackhead_action }}.yml" |
|