From fad841b1fe0d674a6da8f9e149f0b125da7e204b Mon Sep 17 00:00:00 2001 From: lijia Date: Wed, 21 Oct 2020 11:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E7=A1=AC=E4=BB=B6=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=AF=BB=E5=8F=96SN,=E5=88=9D=E5=A7=8B=E5=8C=96device=5Finfo?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=94=B9=E4=B8=BA20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/tsg-cli-mxn/tasks/main.yml | 7 +++++++ roles/tsg-cli-mxn/templates/tsg_series.json.j2 | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 roles/tsg-cli-mxn/templates/tsg_series.json.j2 diff --git a/roles/tsg-cli-mxn/tasks/main.yml b/roles/tsg-cli-mxn/tasks/main.yml index b031e9a..93d38cb 100644 --- a/roles/tsg-cli-mxn/tasks/main.yml +++ b/roles/tsg-cli-mxn/tasks/main.yml @@ -63,6 +63,13 @@ src: "{{ role_path }}/../tsg-common-files/tsg_device_tag.json.j2" dest: "/opt/tsg/etc/tsg_device_tag.json" tags: template + +- name: Template the tsg_series.json + template: + src: "{{ role_path }}/templates/tsg_series.json.j2" + dest: "/opt/tsg/etc/tsg_series.json" + tags: template + - name: "copy tsg-monitor.service to destination server" synchronize: diff --git a/roles/tsg-cli-mxn/templates/tsg_series.json.j2 b/roles/tsg-cli-mxn/templates/tsg_series.json.j2 new file mode 100644 index 0000000..31366a0 --- /dev/null +++ b/roles/tsg-cli-mxn/templates/tsg_series.json.j2 @@ -0,0 +1,3 @@ +{ + "series": "20" +}