summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/tasks/oc_apply.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_metrics/tasks/oc_apply.yaml')
-rw-r--r--roles/openshift_metrics/tasks/oc_apply.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/openshift_metrics/tasks/oc_apply.yaml b/roles/openshift_metrics/tasks/oc_apply.yaml
index c9154f206..dd67703b4 100644
--- a/roles/openshift_metrics/tasks/oc_apply.yaml
+++ b/roles/openshift_metrics/tasks/oc_apply.yaml
@@ -1,12 +1,13 @@
---
- name: Checking generation of {{file_content.kind}} {{file_content.metadata.name}}
command: >
- {{ openshift.common.client_binary }}
+ {{ openshift.common.client_binary }}
--config={{ kubeconfig }}
get {{file_content.kind}} {{file_content.metadata.name}}
- -o jsonpath='{.metadata.resourceVersion}'
+ -o jsonpath='{.metadata.resourceVersion}'
-n {{namespace}}
register: generation_init
+ failed_when: false
changed_when: no
- name: Applying {{file_name}}
@@ -22,7 +23,7 @@
command: >
{{ openshift.common.client_binary }} --config={{ kubeconfig }}
get {{file_content.kind}} {{file_content.metadata.name}}
- -o jsonpath='{.metadata.resourceVersion}'
+ -o jsonpath='{.metadata.resourceVersion}'
-n {{namespace}}
register: version_changed
vars: