feature:上传nanomsg el8 rpm包

This commit is contained in:
fumingwei
2022-11-17 19:00:11 +08:00
parent 6eb31af4ea
commit 9dbc2a7f44
2 changed files with 17 additions and 2 deletions

View File

@@ -1,15 +1,30 @@
---
- name: "copy nanomsg.rpm to destination server"
copy:
src: "{{ role_path }}/files/nanomsg-1.1.5-6.el7.x86_64.rpm"
src: "{{ role_path }}/files/"
dest: /tmp
- name: "install nanomsg library"
- name: "install nanomsg library centos7"
yum:
name:
- /tmp/nanomsg-1.1.5-6.el7.x86_64.rpm
state: present
disable_gpg_check: yes
when:
- runtime_env == 'TSG-7400-mcn0'
- runtime_env == 'TSG-7400-mcn123'
- runtime_env == 'TSG-9140'
- runtime_env == 'TSG-X-P1403'
- name: "install nanomsg library rockylinux8"
yum:
name:
- /tmp/nanomsg-1.1.5-6.el8.x86_64.rpm
state: present
disable_gpg_check: yes
when:
- runtime_env == 'TSG-X-P0804'
- runtime_env == 'TSG-X-P0906'
- name: "Install wannat_common library"
shell: rpm -i /tmp/rpm_download/{{ item.rpm_version }}* --prefix {{ item.prefix }}