diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 23:21:51 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 23:21:51 +0200 |
commit | 8c07bea60f4b64d7b5f48d1593c57e5b028a89b8 (patch) | |
tree | df939d8c5a5a43ad97414e4cda7dbd2fe82d5806 /roles/streaming/dolmetsch-raspi/tasks/main.yml | |
parent | dolmetsch-rapi fix rtp-send and address config (diff) |
finalize new dolmetsch-raspi role
Diffstat (limited to 'roles/streaming/dolmetsch-raspi/tasks/main.yml')
-rw-r--r-- | roles/streaming/dolmetsch-raspi/tasks/main.yml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/roles/streaming/dolmetsch-raspi/tasks/main.yml b/roles/streaming/dolmetsch-raspi/tasks/main.yml index 2240d211..e3f6137e 100644 --- a/roles/streaming/dolmetsch-raspi/tasks/main.yml +++ b/roles/streaming/dolmetsch-raspi/tasks/main.yml @@ -38,20 +38,21 @@ dest: /usr/local copy: no -- name: prepare dolmetschctl install path - file: - path: /opt/dolmetschctl - state: directory +- name: clone dolmetschctl repo + git: + repo: https://git.spreadspace.org/dolmetschctl + dest: /opt/dolmetschctl - name: build dolmetschctl (server and client) loop: - dolmetschctl - dolmetschctld - command: "/usr/local/go/bin/go get spreadspace.org/dolmetschctl/cmd/{{ item }}" + command: "/usr/local/go/bin/go build -o {{ item }} ./cmd/{{ item }}" args: - creates: "/opt/dolmetschctl/bin/{{ item }}" + chdir: /opt/dolmetschctl + creates: "/opt/dolmetschctl/{{ item }}" environment: - GOPATH: /opt/dolmetschctl + GOPATH: /opt/.gopath - name: install dolmetschctl systemd units loop: |