summaryrefslogtreecommitdiffstats
path: root/roles/obs/tasks/main.yml
blob: cb981b1d382ae8a12ff75126821ab96cb9ec3c9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
- name: Load icecast vars
  tags: wip
  include_vars:
    file: ../../stream/defaults/main.yml
- name: Add repo
  apt_repository:
    repo: ppa:obsproject/obs-studio
  when: ansible_distribution == "Ubuntu"
- name: Add packages
  apt:
    name:
      - xserver-xorg-video-dummy
      - i3
      - socat
      - ffmpeg
      - pulseaudio
      - jackd2
      - alsa-utils
      - dbus-x11
      - obs-studio
      - xserver-xorg-dev
    update_cache: yes
- name: Set up user
  include: user.yml
- name: Set up track bins for addition to paths
  file:
    path: "{{ emacsconf_home }}/bin/{{ item.id }}"
    state: directory
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
  loop: "{{ emacsconf_tracks }}"
- name: Copy X11 config
  template:
    src: xorg.conf
    dest: /etc/X11/xorg.conf
- name: Set up VNC
  include: tigervnc.yml
  tags: vnc, wip
- name: Set up MPV and MPVC
  tags: mpv
  include: mpv.yml
- name: Set up OBS profiles and scenes
  tags: obs-profile
  include: obs-setup.yml
- name: Add FFMPEG script for streaming
  template:
    src: stream-desktop-with-ffmpeg.sh
    dest: /home/{{ emacsconf_user }}/bin/{{ item.id }}/stream-desktop-with-ffmpeg
    mode: 0775
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
  loop: "{{ emacsconf_tracks }}"
- name: Copy logo
  copy:
    src: logo.png
    dest: "{{ emacsconf_home }}/logo.png"
# - name: Start jack
#   shell: jackd -r -ddummy
#   async: 2592000
- name: Set up pulse
  include: pulse.yml
  tags: pulse
- name: Set up Firefox
  tags: firefox
  include: firefox.yml
- name: Set up I3 directory
  tags: wip
  file:
    path: "{{ emacsconf_home }}/.config/i3"
    state: directory
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
- name: Set up I3
  tags: wip
  template:
    src: i3-config
    dest: "{{ emacsconf_home }}/.config/i3/config"
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"