TSG-8255 TSG-OS安装aksusbds驱动,用于识别硬锁

TSG-8256 TSG-OS安装hasp_update用于获取机器指纹/设置Licence
TSG-8257 TSG-OS配置环境变量用于配置Licence存储路径
This commit is contained in:
luwenpeng
2021-10-31 15:36:04 +03:00
parent 509b16b5c7
commit 7941550180
5 changed files with 39 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1 @@
export HASPUSER_PREFIX=/etc/tsg/licence/

View File

@@ -0,0 +1,35 @@
- name: "aksusbd rpm install: copy file to device"
copy:
src: '{{ role_path }}/files/aksusbd-8.23-1.x86_64.rpm'
dest: /tmp/ansible_deploy/
- name: "aksusbd rpm install: install aksusbd"
yum:
name:
- "/tmp/ansible_deploy/aksusbd-8.23-1.x86_64.rpm"
state: present
- name: "hasp_update rpm install: copy file to device"
copy:
src: '{{ role_path }}/files/hasp_update-1.0.0.fab0aed-1.el7.x86_64.rpm'
dest: /tmp/ansible_deploy/
- name: "hasp_update rpm install: install hasp_update"
yum:
name:
- "/tmp/ansible_deploy/hasp_update-1.0.0.fab0aed-1.el7.x86_64.rpm"
state: present
- name: "Create /etc/tsg/licence/ directory if it does not exist"
file:
path: "{{ item }}"
state: directory
mode: '0755'
with_items:
- /etc/tsg/licence/
- name: "copy hasp.sh to /etc/profile.d/"
copy:
src: "{{ role_path }}/files/hasp.sh"
dest: /etc/profile.d/
mode: 0755

View File

@@ -26,6 +26,7 @@
- {role: system-init, tags: system-init}
- {role: wannat_wangw, tags: wannat_wangw}
- {role: wire_graft, tags: wire_graft}
- {role: hasp, tags: hasp}
- hosts: 7400-MCN123-P01R01
remote_user: root
@@ -42,6 +43,7 @@
- {role: tsg_sn, tags: tsg_sn}
- {role: tfe, tags: tfe}
- {role: system-init, tags: system-init}
- {role: hasp, tags: hasp}
- hosts: 9000-NPB-P01R01
remote_user: root
@@ -74,3 +76,4 @@
- {role: wire_graft, tags: wire_graft}
- {role: nz-talon, tags: nz-talon}
- {role: tsg-os-provision-condition, tags: tsg-os-provision-condition}
- {role: hasp, tags: hasp}