更新OAM RPM包.

This commit is contained in:
lijia
2020-04-07 10:50:17 +08:00
parent 54124a1772
commit bbf5651c70
14 changed files with 316 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
---
- name: "get remote tsg sn"
shell: cat /opt/tsg/etc/tsg_sn.json | grep sn | awk -F "\"" {'print $4'}
register: adc_tsg_sn
- name: "Templates tsg_threshold.sql"
template:
src: "{{role_path}}/templates/tsg_threshold.sql.j2"
dest: /tmp/tsg-cli-deploy/tsg_threshold.sql
tags: template
- name: "debug show tsg_sn"
debug: var=adc_tsg_sn.stdout
- name: "import the sql after template"
shell: mysql -s -h 127.0.0.1 -u {{ mariadb.username }} -p{{ mariadb.password }} < /tmp/tsg-cli-deploy/tsg_threshold.sql