feature:TSG-10102:hasp_update适配rockylinux8.5

This commit is contained in:
fumingwei
2022-03-30 15:45:19 +08:00
parent fe6318de55
commit 462393d16e
4 changed files with 26 additions and 8 deletions

View File

@@ -85,3 +85,6 @@ wannat_wangw_rpm_version:
wire_graft_rpm_version:
wire_graft: wire_graft_plug-1.5.2.36b072a
libwire_graft: libwire_graft-1.5.2.36b072a
hasp_update_rpm_version:
hasp_update: hasp_update-1.0.1.b836a3b

View File

@@ -9,15 +9,15 @@
- "/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.1.b836a3b-1.el7.x86_64.rpm'
dest: /tmp/ansible_deploy/
- name: "hasp_update rpm install: install hasp_update"
- name: "Get hasp_update rpm path"
find:
path: /tmp/rpm_download/
pattern: "{{ hasp_update_rpm_version.hasp_update }}*"
register: hasp_update_rpm_fullname
- name: "Install hasp_update from local path"
yum:
name:
- "/tmp/ansible_deploy/hasp_update-1.0.1.b836a3b-1.el7.x86_64.rpm"
name: "{{ hasp_update_rpm_fullname.files[0].path }}"
state: present
- name: "Create /etc/tsg/licence/ directory if it does not exist"

View File

@@ -140,3 +140,12 @@
state: latest
download_only: yes
download_dir: "{{ path_download }}"
- name: "download rpm packages: hasp_update"
yum:
name:
- "{{ hasp_update_rpm_version.hasp_update }}"
conf_file: "{{ rpm_repo_config_path }}"
state: present
download_only: yes
download_dir: "{{ path_download }}"

View File

@@ -76,3 +76,9 @@
name: "{{ item.key }}"
state: absent
with_dict: "{{ wire_graft_rpm_version }}"
- name: "uninstall hasp_update"
yum:
name: "{{ item.key }}"
state: absent
with_dict: "{{ hasp_update_rpm_version }}"