Skip to content

Commit

Permalink
refactor: change paths
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidastri committed Dec 19, 2024
1 parent c6d20cd commit c995c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion roles/yoda_report/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ yoda_report_upload_priv_key: |
yoda_report_server_user_account: yoda_report
yoda_report_server_host: 192.168.121.245
yoda_report_server_dir: /home/yoda_report/yoda-financial-data
yoda_report_server_financial_data_dir: /home/yoda_report/yoda-financial-data
yoda_report_server_capacity_data_dir: /home/yoda_report/yoda-capacity-data
yoda_report_server_priv_key_loc: ~/.ssh/yoda_report
4 changes: 2 additions & 2 deletions roles/yoda_report/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
source /var/yoda-financial-data/yoda_report_venv/bin/activate &&
scp -i {{ yoda_report_server_priv_key_loc }}
/var/yoda-financial-data/stats.yaml
{{ yoda_report_server_user_account }}@{{ yoda_report_server_host }}:{{ yoda_report_server_dir }}/{{ instance }}.stats.yml
{{ yoda_report_server_user_account }}@{{ yoda_report_server_host }}:{{ yoda_report_server_financial_data_dir }}/{{ instance }}.stats.yml
user: "{{ irods_service_account }}"
state: "{{ 'present' if enable_yoda_report else 'absent' }}"

Expand All @@ -131,6 +131,6 @@
source /var/yoda-financial-data/yoda_report_venv/bin/activate &&
scp -i {{ yoda_report_server_priv_key_loc }}
/var/yoda-financial-data/*.capacity.yaml
{{ yoda_report_server_user_account }}@{{ yoda_report_server_host }}:{{ yoda_report_server_dir }}/{{ instance }}.capacity.stats.yml
{{ yoda_report_server_user_account }}@{{ yoda_report_server_host }}:{{ yoda_report_server_capacity_data_dir }}/{{ instance }}.capacity.stats.yml
user: "{{ irods_service_account }}"
state: "{{ 'present' if enable_yoda_report else 'absent' }}"

0 comments on commit c995c18

Please sign in to comment.