Browse Source

Merge pull request #9033 from mjudeikis/logging-fix

change become syntax logging
OpenShift Merge Robot 6 years ago
parent
commit
0b2b579277

+ 2 - 1
roles/openshift_logging/tasks/main.yaml

@@ -17,7 +17,8 @@
   register: local_tmp
   changed_when: False
   check_mode: no
-  become: false
+  vars:
+    ansible_become: false
 
 - oc_obj:
     state: list

+ 6 - 3
roles/openshift_logging/tasks/patch_configmap_file.yaml

@@ -37,13 +37,16 @@
     register: new_file_slurp
 
   - local_action: copy content="{{ patch_output.raw_patch }}\n" dest={{ local_tmp.stdout }}/patch.patch
-    become: false
+    vars:
+      ansible_become: false
 
   - local_action: copy content={{ new_file_slurp['content'] | b64decode }} dest={{ local_tmp.stdout }}/configmap_new_file
-    become: false
+    vars:
+      ansible_become: false
 
   - local_action: command patch --force --quiet -u {{ local_tmp.stdout }}/configmap_new_file {{ local_tmp.stdout }}/patch.patch
-    become: false
+    vars:
+      ansible_become: false
 
   - copy:
       src: "{{ local_tmp.stdout }}/configmap_new_file"

+ 4 - 2
roles/openshift_metrics/tasks/main.yaml

@@ -23,7 +23,8 @@
   local_action: command mktemp -d
   register: local_tmp
   changed_when: False
-  become: false
+  vars:
+    ansible_become: false
 
 - name: Copy the admin client config(s)
   command: >
@@ -48,4 +49,5 @@
   tags: metrics_cleanup
   changed_when: False
   check_mode: no
-  become: false
+  vars:
+    ansible_become: false