--- - name: install packages apt: name: - gstreamer1.0-tools - gstreamer1.0-plugins-base - gstreamer1.0-plugins-good - gstreamer1.0-plugins-bad - gstreamer1.0-alsa - git - libasound2-dev - telnet - golang-go - name: clone dolmetschctl repo git: repo: https://git.spreadspace.org/dolmetschctl dest: /opt/dolmetschctl - name: build dolmetschctl (server and client) loop: - dolmetschctl - dolmetschctld command: "go build -o {{ item }} ./cmd/{{ item }}" args: chdir: /opt/dolmetschctl creates: "/opt/dolmetschctl/{{ item }}" environment: GOPATH: /opt/.gopath - name: install dolmetschctl systemd units loop: - dolmetschctl - dolmetschctld template: src: "{{ item }}.service.j2" dest: "/etc/systemd/system/{{ item }}.service" notify: reload systemd - name: install rtp send/receive scripts loop: - rtp-recv - rtp-send template: src: "{{ item }}.sh.j2" dest: "/usr/local/bin/{{ item }}.sh" mode: 0750 - name: install rtp send/receive systemd units loop: - rtp-recv - rtp-send template: src: "{{ item }}.service.j2" dest: "/etc/systemd/system/{{ item }}.service" notify: reload systemd