--- - name: Make sure stream_input_url is set ansible.builtin.fail: msg: "Please define stream_input_url" when: not stream_input_url | bool - name: Make sure stream_name is set ansible.builtin.fail: msg: "Please define stream_name" when: not stream_name | bool - name: Create systemd service become: true ansible.builtin.template: src: 'templates/audiometer.service.j2' dest: '/lib/systemd/system/audiometer.service.j2' mode: 0640 owner: root group: root notify: Systemctl restart audiometer.service # todo: make sure user exist - name: Create ffmpeg command become: true ansible.builtin.template: src: templates/audiometer.sh.j2 dest: /opt/audiometer.sh mode: 0655 owner: video group: video