Adjusting patching file for Dublin

some oom helm charts patching from Casablanca is not needed,
this is the rest we need to keep eye on.

Change-Id: I0011d2bfdb4552c08745822989f830969f46ab9a
Issue-ID: OOM-1869
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
diff --git a/patches/onap-dublin-patch-role/tasks/main.yml b/patches/onap-dublin-patch-role/tasks/main.yml
new file mode 100644
index 0000000..fd0ba3c
--- /dev/null
+++ b/patches/onap-dublin-patch-role/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+# This role contains patching logic for OOM charts
+# and is valid until OOM-1610 is implemented
+- name: Check presence of files for NPM patching
+  stat:
+    path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
+  with_items:
+    - common/dgbuilder/templates/deployment.yaml
+  register: npm_files_check
+
+- name: Patch OOM - set npm registry
+  lineinfile:
+    path: "{{ item.stat.path }}"
+    regexp: '^(.*)NPM_REGISTRY_RECORD'
+    line: '\g<1>npm set registry "http://nexus.{{ ansible_nodename }}/repository/npm-private/";'
+    backrefs: yes
+    state: present
+  with_items: "{{ npm_files_check.results }}"
+  when: item.stat.exists
+