add libwannat_common.

This commit is contained in:
lijia
2021-12-01 19:25:34 +08:00
parent ea53482e14
commit f199f737c6
4 changed files with 32 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ wannat_global:
server_ip: "192.168.xx.zz"
rpm_files:
wannat_common_rpm_file: "libwannat_common-1.0.1.8cc3bda-2.el7.x86_64.rpm"
natgw_rpm_file: "wannat_natgw-1.5.1.3d915d4-2.el7.x86_64.rpm"
wire_graft_rpm_file: "libwire_graft-1.5.2.36b072a-2.el7.x86_64.rpm"
toroad_rpm_file: "toroad-1.4.0.1c1f04b-2.el7.x86_64.rpm"

View File

@@ -0,0 +1,25 @@
---
- name: "Creates /opt/tsg/framework directory"
file:
path: /opt/tsg/framework/lib
state: directory
- name: "copy wannat_common rpm to destination server"
copy:
src: "{{ role_path }}/files/rpm/{{ wannat_global.rpm_files.wannat_common_rpm_file }}"
dest: "/tmp/"
- name: "install wannat_common"
shell: rpm --nodeps --replacepkgs -i /tmp/{{ wannat_global.rpm_files.wannat_common_rpm_file }} --prefix /opt/tsg/framework
args:
warn: false
- name: "ldconfig"
shell: ldconfig
args:
warn: false

View File

@@ -5,6 +5,12 @@
vars_files:
- deploy_env/group_vars/all.yml
- hosts: natgw
roles:
- wannat_common
vars_files:
- deploy_env/group_vars/all.yml
- hosts: natgw
roles:
- libwire_graft