1.add role tsg_env_patch

2.delete role which is unuseful
This commit is contained in:
fumingwei
2020-11-17 17:45:40 +06:00
parent cc7155ec1a
commit 3b125413ce
21 changed files with 72 additions and 113 deletions

View File

@@ -0,0 +1,8 @@
99c99
< ${CURRENT_PATH}/${REMOTE_CONTROL_BIN} -s ${TP_SVR} -n ${TP_PORT} -c "show version"
---
> echo "show version" | nc ${TP_SVR} ${TP_PORT}
136c136
< MAC_TABLE=`${CURRENT_PATH}/${REMOTE_CONTROL_BIN} -s ${TP_SVR} -n ${TP_PORT} -c "show mac table all"`
---
> MAC_TABLE=$(echo "show mac table all" | nc ${TP_SVR} ${TP_PORT})

View File

@@ -0,0 +1,5 @@
- name: "patch setup scripts in tsg-env"
patch:
src: "{{ role_path }}/files/replace_switch_non_block_with_nc_v2.patch"
dest: /opt/tsg/env/setup
backup: true

File diff suppressed because it is too large Load Diff