2019-07-11 10:17:02 +02:00
|
|
|
---
|
2020-02-04 02:16:27 -03:00
|
|
|
- name: Create configs directory
|
|
|
|
file:
|
|
|
|
path: "{{ bridge_path }}/monitor/configs"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
when: skip_task != true
|
|
|
|
|
|
|
|
- name: Create responses directory
|
|
|
|
file:
|
|
|
|
path: "{{ bridge_path }}/monitor/responses"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
when: skip_task != true
|
|
|
|
|
|
|
|
- name: Create scripts directory
|
|
|
|
file:
|
|
|
|
path: "{{ bridge_path }}/monitor/scripts"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
when: skip_task != true
|
|
|
|
|
2019-07-09 19:26:40 +02:00
|
|
|
- name: Install .env config
|
|
|
|
template:
|
|
|
|
src: .env.j2
|
|
|
|
dest: "{{ bridge_path }}/monitor/.env"
|
2020-09-02 17:43:48 +03:00
|
|
|
owner: "{{ compose_service_user }}"
|
|
|
|
mode: '0640'
|
2020-01-10 09:55:35 -03:00
|
|
|
when: skip_task != true
|
|
|
|
|
2020-02-04 02:16:27 -03:00
|
|
|
- name: Copy docker-compose file
|
|
|
|
copy:
|
|
|
|
src: ../../../../monitor/docker-compose.yml
|
|
|
|
dest: "{{ bridge_path }}/monitor/docker-compose.yml"
|
|
|
|
mode: '0755'
|
|
|
|
when: skip_task != true
|
|
|
|
|
|
|
|
- name: Copy script file
|
|
|
|
copy:
|
|
|
|
src: ../../../../monitor/scripts/getBridgeStats.sh
|
|
|
|
dest: "{{ bridge_path }}/monitor/scripts/getBridgeStats.sh"
|
|
|
|
owner: "{{ compose_service_user }}"
|
|
|
|
mode: '0755'
|
|
|
|
when: skip_task != true
|
|
|
|
|
2020-01-10 09:55:35 -03:00
|
|
|
- name: Install bridge config env
|
|
|
|
template:
|
|
|
|
src: config.env.j2
|
|
|
|
dest: "{{ bridge_path }}/monitor/configs/{{ MONITOR_BRIDGE_NAME }}.env"
|
2020-09-02 17:43:48 +03:00
|
|
|
owner: "{{ compose_service_user }}"
|
|
|
|
mode: '0640'
|