This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-wannat-ansible-deploy/roles/wannat_common/tasks/main.yml
2021-12-01 21:42:24 +08:00

36 lines
808 B
YAML

---
- name: "Creates /opt/tsg/framework directory"
file:
path: /opt/tsg/framework/lib
state: directory
- name: "copy nanomsg rpm to destination server"
copy:
src: "{{ role_path }}/files/nanomsg-1.1.5-6.el7.x86_64.rpm"
dest: "/tmp/"
- name: "copy wannat_common rpm to destination server"
copy:
src: "{{ role_path }}/files/{{ wannat_global.rpm_files.wannat_common_rpm_file }}"
dest: "/tmp/"
- name: "install nanomsg"
shell: rpm --force -i /tmp/nanomsg-1.1.5-6.el7.x86_64.rpm
args:
warn: false
- 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