ansible/roles/scream/tasks/main.yml

52 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-11 16:00:07 +01:00
---
- 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
2021-11-16 15:23:42 +00:00
- name: Create scream systemd service
2021-04-11 16:00:07 +01:00
copy:
src: scream.service
2021-11-16 15:23:42 +00:00
mode: "0644"
2021-04-11 16:00:07 +01:00
dest: ~/.config/systemd/user/scream.service
2021-11-16 15:23:42 +00:00
notify: enable scream