summaryrefslogtreecommitdiffstats
path: root/patches/onap-patch-role/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'patches/onap-patch-role/tasks')
-rw-r--r--patches/onap-patch-role/tasks/main.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/onap-patch-role/tasks/main.yml b/patches/onap-patch-role/tasks/main.yml
index fb81f200..474b8ed4 100644
--- a/patches/onap-patch-role/tasks/main.yml
+++ b/patches/onap-patch-role/tasks/main.yml
@@ -4,15 +4,15 @@
- 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:
- - oof/charts/oof-cmso/charts/oof-cmso-service/resources/config/msosimulator.sh
+ loop:
+ - oof/charts/oof-cmso/charts/oof-cmso-service/templates/deployment.yaml
register: hosts_files_check
- name: Patch OOM - set npm registry
@@ -22,15 +22,15 @@
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
lineinfile:
path: "{{ item.stat.path }}"
- regexp: '^(.*)HOSTS_FILE_RECORD'
- line: '\g<1>{{ cluster_ip }} {{ simulated_hosts.nexus | join(" ") }} >> /etc/hosts;'
+ regexp: '^(.*)INFRA_CLUSTER_IP'
+ line: '\g<1>{{ cluster_ip }}'
backrefs: yes
state: present
- with_items: "{{ hosts_files_check.results }}"
+ loop: "{{ hosts_files_check.results }}"
when: item.stat.exists