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
galaxy-deployment-ansible-d…/tsg-olap/parcels/roles/validation/troubleshooting/tasks/troubleshooting.yml
2024-02-22 11:01:08 +08:00

56 lines
1.5 KiB
YAML

- name: Creating {{ deploy_dir }}/{{ soft_home_path }}
file:
state: directory
path: '{{ deploy_dir }}/{{ soft_home_path }}/'
- name: Copying troubleshooting to {{ deploy_dir }}/{{ soft_home_path }}
copy:
src: files/
dest: '{{ deploy_dir }}/{{ soft_home_path }}/'
force: true
- name: Copying troubleshooting.sh
template:
src: troubleshooting.sh.j2
mode: 0755
dest: '{{ deploy_dir }}/{{ soft_home_path }}/troubleshooting.sh'
force: true
- name: Copying Prod.postman_environment.json
template:
src: Prod.postman_environment.json.j2
dest: '{{ deploy_dir }}/{{ soft_home_path }}/Prod.postman_environment.json'
force: true
- block:
- name: Deleting /opt/troubleshooting
file:
path: "/opt/troubleshooting"
state: absent
- name: Creating /opt/troubleshooting
file:
state: directory
path: '/opt/troubleshooting'
- name: Copying troubleshooting to /opt/troubleshooting
copy:
src: files/
dest: '/opt/troubleshooting/'
force: true
- name: Copying troubleshooting.sh
template:
src: troubleshooting.sh.j2
mode: 0755
dest: '/opt/troubleshooting/troubleshooting.sh'
force: true
- name: Copying Prod.postman_environment.json
template:
src: Prod.postman_environment.json.j2
dest: '/opt/troubleshooting/Prod.postman_environment.json'
force: true
delegate_to: 127.0.0.1