This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/ansible/roles/hasp/tasks/main.yml
luwenpeng 7941550180 TSG-8255 TSG-OS安装aksusbds驱动,用于识别硬锁
TSG-8256 TSG-OS安装hasp_update用于获取机器指纹/设置Licence
TSG-8257 TSG-OS配置环境变量用于配置Licence存储路径
2021-11-02 11:59:30 +03:00

35 lines
933 B
YAML

- 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