fix 特定环境下lb节点变量LB_IF自动设置错误

pull/420/head
gjmzj 2018-12-13 16:43:30 +08:00
parent 6fc755f2ee
commit e818b9287a
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# 自动设置LB节点变量'LB_IF'
- name: 注册变量 LB_IF_TMP
shell: "ip a|grep '{{ inventory_hostname }}/'|awk '{print $7}'"
shell: "ip a|grep '{{ inventory_hostname }}/'|awk '{print $NF}'"
register: LB_IF_TMP
- name: 设置变量 LB_IF