TSG-8255 TSG-OS安装aksusbds驱动,用于识别硬锁
TSG-8256 TSG-OS安装hasp_update用于获取机器指纹/设置Licence TSG-8257 TSG-OS配置环境变量用于配置Licence存储路径
This commit is contained in:
BIN
ansible/roles/hasp/files/aksusbd-8.23-1.x86_64.rpm
Normal file
BIN
ansible/roles/hasp/files/aksusbd-8.23-1.x86_64.rpm
Normal file
Binary file not shown.
1
ansible/roles/hasp/files/hasp.sh
Normal file
1
ansible/roles/hasp/files/hasp.sh
Normal file
@@ -0,0 +1 @@
|
||||
export HASPUSER_PREFIX=/etc/tsg/licence/
|
||||
Binary file not shown.
35
ansible/roles/hasp/tasks/main.yml
Normal file
35
ansible/roles/hasp/tasks/main.yml
Normal 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
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user