ansible/roles/scream/tasks/main.yml
2021-04-11 16:06:07 +01:00

51 lines
1.1 KiB
YAML

---
- name: Install dependencies
dnf:
name:
- pulseaudio-libs-devel
state: present
become: yes
- name: Clone duncanthrax/scream
git:
repo: 'https://github.com/duncanthrax/scream.git'
version: master
dest: /tmp/duncanthrax-scream
- name: Create build dir
file:
dest: /tmp/duncanthrax-scream/Receivers/unix/build
mode: '0755'
state: directory
- name: Cmake the Makefiles
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: cmake ..
creates: /tmp/duncanthrax-scream/Receivers/unix/build/Makefile
- name: Make all the things
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: make
creates: /tmp/duncanthrax-scream/Receivers/unix/build/scream
- name: make install
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: make install
creates: /usr/local/bin/scream
become: yes
- name: Create systemd dir
file:
dest: ~/.config/systemd/user
mode: '0755'
state: directory
- name: Create systemd unit
copy:
src: scream.service
mode: '0755'
dest: ~/.config/systemd/user/scream.service