Browse Source

change become syntax

Mangirdas 6 years ago
parent
commit
69c12ed527

+ 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"