dest: "{{ helm_home_dir.stdout }}/plugins"
         directory_mode: true
         mode: 0755
-      with_items: "{{ list_of_plugins.files }}"
+      loop: "{{ list_of_plugins.files }}"
   when: app_helm_plugins_directory is defined and app_helm_plugins_directory is not none
 
         push: true
         load_path: "{{ item.path }}"
         timeout: 120
-      changed_when: false  # for idenpotence
+      changed_when: false  # for idempotence
 
 # WA: block of tasks cant be executed in iterations
 # need to iterate over those tasks in include
 - include: "insert-images.yml"
-  with_items: "{{ tar_images.files }}"
+  loop: "{{ tar_images.files }}"
 
 ---
 #
-# Wrapper to pass through following variables
+# Wrapper to pass through following variables:
 #   resources_source_host
 #   resources_dir
 #   resource_source_filename
 #   resource_destination_directory
-# And handling target directory creation and possible removal on failure.
+# and handle target directory creation and eventual removal on failure.
 # Idempotence is also handled here as nothing is done if resource_destination_directory
 # was already created.
 #
 
     - name: "Cleanup the destination directory {{ resource_destination_directory }} on error"
       file:
-        path: "{{ item.path }}"
+        path: "{{ files_item.path }}"
         state: absent
-      with_items: "{{ files_after_fail.files | difference(original_files.files) }}"
+      loop: "{{ files_after_fail.files | difference(original_files.files) }}"
+      loop_control:
+        label: "{{ files_item.path }}"
+        loop_var: files_item
       when: files_after_fail is defined
 
     - name: "Report failure of upload operation"
 
 - name: Check presence of files for NPM patching
   stat:
     path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
-  with_items:
+  loop:
     - common/dgbuilder/templates/deployment.yaml
   register: npm_files_check
 
 - name: Check presence of files for nexus domain resolving
   stat:
     path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
-  with_items:
+  loop:
     - oof/charts/oof-cmso/charts/oof-cmso-service/resources/config/msosimulator.sh
   register: hosts_files_check
 
     line: '\g<1>npm set registry "http://nexus.{{ ansible_nodename }}/repository/npm-private/";'
     backrefs: yes
     state: present
-  with_items: "{{ npm_files_check.results }}"
+  loop: "{{ npm_files_check.results }}"
   when: item.stat.exists
 
 - name: Patch OOM - nexus domain resolving
     line: '\g<1>{{ cluster_ip }} {{ simulated_hosts.nexus | join(" ") }} >> /etc/hosts;'
     backrefs: yes
     state: present
-  with_items: "{{ hosts_files_check.results }}"
+  loop: "{{ hosts_files_check.results }}"
   when: item.stat.exists