更新近期OAM升级包; 初始化内置设备标签, 不再通过界面人工编辑.

This commit is contained in:
lijia
2020-09-22 16:09:13 +08:00
parent a31ac9eb7d
commit 223168d8d7
23 changed files with 96 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
---
- name: "copy tsg-cli rmp to destination server"
synchronize:
src: "{{ role_path }}/../tsg-common-files/{{ rpm_file_name }}"
src: "{{ role_path }}/../tsg-common-files/{{ tsg_cli.rpm_file_name }}"
dest: "/tmp/tsg-cli-deploy/"
- name: "install tsg-cli"
@@ -10,7 +10,7 @@
state: present
vars:
packages:
- /tmp/tsg-cli-deploy/{{ rpm_file_name }}
- /tmp/tsg-cli-deploy/{{ tsg_cli.rpm_file_name }}
- name: Template the tsg_sn.json
template:
@@ -25,6 +25,17 @@
dest: "/opt/tsg/etc/tsg_sn.json"
when: use_chassis_hardware_sn | bool
- name: Template the tsg_tags.json
template:
src: "{{ role_path }}/../tsg-common-files/tsg_tags.json.j2"
dest: "/opt/tsg/etc/tsg_tags.json"
tags: template
- name: Template the tsg_device_tag.json
template:
src: "{{ role_path }}/../tsg-common-files/tsg_device_tag.json.j2"
dest: "/opt/tsg/etc/tsg_device_tag.json"
tags: template
- name: "copy tsg-monitor.service to destination server"
synchronize: