更新sapp,优化部署

This commit is contained in:
zhangzhihan
2020-04-28 17:54:17 +08:00
parent 0c4a1306e9
commit 8dd9d58e07
3 changed files with 17 additions and 8 deletions

View File

@@ -7,10 +7,19 @@
- name: "install sapp rpms from localhost"
yum:
name:
- /tmp/ansible_deploy/sapp-4.0.11.347f7b7-x86_64.rpm
# - /tmp/ansible_deploy/sapp-4.0.11.347f7b7-x86_64.rpm
- /tmp/ansible_deploy/tsg_master-debug-1.0.3.a4e2a7c-1.el7.centos.x86_64.rpm
state: present
- name: "judge sapp"
shell: rpm -qa |grep sapp
register: return
ignore_errors: true
- name: "install sapp rpms from localhost"
shell: cd /tmp/ansible_deploy;rpm -ivh sapp-4.0.11.347f7b7-x86_64.rpm --nodeps
when: return.rc != 0
- name: make dir
file:
path: /home/mesasoft/sapp_run/tsgconf