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
solutions-tsg-scripts/roles/tsg-env-mcn0/tasks/main.yml
2020-10-24 12:08:31 +06:00

40 lines
914 B
YAML

---
- name: "copy setup script"
copy:
src: "{{ role_path }}/files/setup"
dest: /opt/tsg/env/
mode: 0755
when: tsg_access_type == 1
- name: "Template setup script"
template:
src: "{{ role_path }}/templates/setup.AllotAccess.j2"
dest: /opt/tsg/env/setup
mode: 0755
when: tsg_access_type == 2
- name: "copy switch_control_client_non_block"
copy:
src: "{{ role_path }}/files/switch_control_client_non_block"
dest: "/opt/tsg/env/"
mode: 0755
- name: "copy tsg-env.service"
copy:
src: "{{ role_path }}/files/tsg-env.service"
dest: "/usr/lib/systemd/system/"
mode: 0644
- name: "copy tsg-env_stop"
copy:
src: "{{ role_path }}/files/tsg-env_stop"
dest: "/opt/tsg/env/"
mode: 0755
- name: "enable tsg-env"
systemd:
name: tsg-env
enabled: yes
daemon_reload: yes