Checkpoint
This commit is contained in:
parent
e17f84ad8a
commit
1e03c32201
32 changed files with 556 additions and 298 deletions
21
roles/scream/files/scream.service
Normal file
21
roles/scream/files/scream.service
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=Scream receiver
|
||||
Documentation=https://github.com/duncanthrax/scream
|
||||
Wants=network-pre.target
|
||||
After=network-pre.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/scream -t 10
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
RuntimeDirectory=scream
|
||||
RuntimeDirectoryMode=0755
|
||||
StateDirectory=scream
|
||||
StateDirectoryMode=0750
|
||||
CacheDirectory=scream
|
||||
CacheDirectoryMode=0750
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
51
roles/scream/tasks/main.yml
Normal file
51
roles/scream/tasks/main.yml
Normal file
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue