summaryrefslogtreecommitdiffstats
path: root/patches/onap-patch-role/tasks/main.yml
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-07 13:36:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-07 13:36:43 +0000
commit3cd75cd8d71f471a0217f525bb8e4ed5315266a8 (patch)
tree17b90e77902e782be322f82099236597adfa6f90 /patches/onap-patch-role/tasks/main.yml
parente910a0b67efcf06bcba81bc9acaa3052e7e399f4 (diff)
parent76e017afde67940e80efeaec546c04bef2dadff2 (diff)
Merge "Replace 'with_items' loop statements with 'loop' keyword"
Diffstat (limited to 'patches/onap-patch-role/tasks/main.yml')
-rw-r--r--patches/onap-patch-role/tasks/main.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/onap-patch-role/tasks/main.yml b/patches/onap-patch-role/tasks/main.yml
index fb81f200..38d0ab92 100644
--- a/patches/onap-patch-role/tasks/main.yml
+++ b/patches/onap-patch-role/tasks/main.yml
@@ -4,14 +4,14 @@
- 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
@@ -22,7 +22,7 @@
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
@@ -32,5 +32,5 @@
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