ansible/roles/scream/tasks/main.yml
2021-11-16 15:23:42 +00:00

52 lines
No EOL
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 scream systemd service
copy:
src: scream.service
mode: "0644"
dest: ~/.config/systemd/user/scream.service
notify: enable scream