Skip to content

Commit 8d84b96

Browse files
committed
include specific tasks for the operators after all operators are installed
1 parent 9b11a5a commit 8d84b96

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
- ansible.builtin.debug:
3+
msg: "Operator configured properly, no further actions"

playbooks/tasks/configure_operator.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,3 @@
105105
- r_csv.resources[0].status.phase is defined
106106
- r_csv.resources[0].status.phase | length > 0
107107
- r_csv.resources[0].status.phase == "Succeeded"
108-
109-
110-
- name: Include specific tasks for the operator
111-
ansible.builtin.include_tasks: "{{ item }}"
112-
with_first_found:
113-
- files:
114-
- "../../operators/{{ operator.name }}/tasks.yaml"
115-
skip: true

playbooks/tasks/configure_operators.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@
1313
loop_control:
1414
loop_var: operator
1515

16+
- name: Include specific tasks for the operators
17+
ansible.builtin.include_tasks: "../../operators/{{ operator.name }}/tasks.yaml"
18+
loop: "{{ [storage_operators[blockStorageBackend]] + operators }}"
19+
loop_control:
20+
loop_var: operator
21+
1622
environment:
1723
KUBECONFIG: "{{ workingDir }}/ocp-cluster/auth/kubeconfig"

0 commit comments

Comments
 (0)