add libwannat_common.
This commit is contained in:
@@ -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"
|
||||
|
||||
Binary file not shown.
25
roles/wannat_common/tasks/main.yml
Normal file
25
roles/wannat_common/tasks/main.yml
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user