summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks/install_logging.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_logging/tasks/install_logging.yaml')
-rw-r--r--roles/openshift_logging/tasks/install_logging.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_logging/tasks/install_logging.yaml b/roles/openshift_logging/tasks/install_logging.yaml
index 591f11476..09630e213 100644
--- a/roles/openshift_logging/tasks/install_logging.yaml
+++ b/roles/openshift_logging/tasks/install_logging.yaml
@@ -24,14 +24,14 @@
loop_var: install_component
- name: Register API objects from generated templates
- shell: ls -d -1 {{mktemp.stdout}}/templates/* | sort
+ command: ls -1 {{mktemp.stdout}}/templates/
register: logging_objects
check_mode: no
- name: Creating API objects from generated templates
command: >
- {{ openshift.common.client_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig apply -f {{file}} -n {{openshift_logging_namespace}}
- with_items: "{{logging_objects.stdout_lines}}"
+ {{ openshift.common.client_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig apply -f {{mktemp.stdout}}/templates/{{file}} -n {{openshift_logging_namespace}}
+ with_items: "{{logging_objects.stdout_lines | sort}}"
loop_control:
loop_var: file
when: not ansible_check_mode