blob: fd0ba3c77dc153598c519a0b9ef4e36b20cfe6ae [file] [log] [blame]
Michal Ptacek84617e82019-05-24 12:05:04 +00001---
2# This role contains patching logic for OOM charts
3# and is valid until OOM-1610 is implemented
4- name: Check presence of files for NPM patching
5 stat:
6 path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
7 with_items:
8 - common/dgbuilder/templates/deployment.yaml
9 register: npm_files_check
10
11- name: Patch OOM - set npm registry
12 lineinfile:
13 path: "{{ item.stat.path }}"
14 regexp: '^(.*)NPM_REGISTRY_RECORD'
15 line: '\g<1>npm set registry "http://nexus.{{ ansible_nodename }}/repository/npm-private/";'
16 backrefs: yes
17 state: present
18 with_items: "{{ npm_files_check.results }}"
19 when: item.stat.exists
20