更新近期OAM升级包; 初始化内置设备标签, 不再通过界面人工编辑.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user