Files
sf_databuffer/operation-tools/install_rest_apis.yml
2021-06-07 14:25:27 +02:00

41 lines
1.2 KiB
YAML

- hosts: databuffer_cluster
become: true
vars:
binaries_version: 1.14.17
binaries_install_dir: /opt/databuffer
tasks:
- name: Download jar - dispatcher_rest
get_url:
url: https://artifacts.psi.ch/artifactory/libs-snapshots-local/ch/psi/daq/dispatcherrest/{{binaries_version}}/dispatcherrest-{{binaries_version}}-all.jar
dest: "{{binaries_install_dir}}/lib/"
owner: daqusr
group: daq
- name: Download jar - query_rest
get_url:
url: https://artifacts.psi.ch/artifactory/libs-snapshots-local/ch/psi/daq/queryrest/{{binaries_version}}/queryrest-{{binaries_version}}-all.jar
dest: "{{binaries_install_dir}}/lib/"
owner: daqusr
group: daq
# Deploy systemd unit file for dispatchernode
- template:
src: templates/daq-dispatcher-rest.service.j2
dest: /etc/systemd/system/daq-dispatcher-rest.service
- template:
src: templates/daq-query-rest.service.j2
dest: /etc/systemd/system/daq-query-rest.service
- name: Reload systemd unit files
systemd:
daemon_reload: yes
- systemd:
enabled: yes
name: daq-dispatcher-rest
- systemd:
enabled: yes
name: daq-query-rest