File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
roles/scale_hdfs/cluster/tasks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 9696
9797- name : check | Check free ces ip
9898 shell :
99- cmd : " mmces address list -Y|grep -v -e hdfs -e object| awk -F: '{print $7}'|grep -v cesAddress "
99+ cmd : " mmces address list -Y|awk -F: '(length($9) == 0) {print $7}'"
100100 register : scale_free_ces
101101 delegate_to : " {{ scale_server }}"
102102 run_once : true
108108 when :
109109 - scale_existing_ces_ip.stdout | length == 0
110110 - scale_free_ces.stdout_lines | length > 0
111+ delegate_to : " {{ scale_server }}"
112+ run_once : true
111113
112114- block :
113115 - name : check | fetch mountpoint
140142 delegate_to : " {{ scale_server }}"
141143
142144- name : configure | Check HDFS ces_group
143- shell : " /usr/lpp/mmfs/bin/mmces address list|grep {{ scale_hdfs_ces_group_name }}"
145+ shell : " /usr/lpp/mmfs/bin/mmces address list|grep -w {{ scale_hdfs_ces_group_name }}"
144146 register : check_hdfs_ces_group
145147 run_once : true
146148 delegate_to : " {{ scale_server }}"
You can’t perform that action at this time.
0 commit comments