--- - name: "Creating controller and operator" shell: "oc apply -f {{ repodir.path }}/deploy/non-olm/{{ mig_operator_version }}/{{ item }}" loop: - "operator.yml" - "controller-{{ mig_ocp_version }}.yml" when: not migration_workload_destroy|bool - name: "Removing controller and operator" shell: "oc delete --ignore-not-found -f {{ repodir.path }}/deploy/non-olm/{{ mig_operator_version }}/{{ item }}" loop: - "operator.yml" when: migration_workload_destroy|bool # Leave this as the last task in the playbook. - name: workload tasks complete debug: msg: "Workload Tasks completed successfully." when: not silent|bool