diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-11-24 10:14:13 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-11-24 10:14:13 -0500 |
commit | 033117f23aae412f9b5f8d9525d08f2830be7f79 (patch) | |
tree | 41c53de58fe2ec113b49dca88b616f0c8f740b31 /roles/obs/tasks | |
parent | 7707f076cb4a9762040afc4755bca231a03bdc47 (diff) | |
download | emacsconf-ansible-033117f23aae412f9b5f8d9525d08f2830be7f79.tar.xz emacsconf-ansible-033117f23aae412f9b5f8d9525d08f2830be7f79.zip |
background music
Diffstat (limited to 'roles/obs/tasks')
-rw-r--r-- | roles/obs/tasks/main.yml | 4 | ||||
-rw-r--r-- | roles/obs/tasks/track.yml | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/roles/obs/tasks/main.yml b/roles/obs/tasks/main.yml index 3ee7330..5974142 100644 --- a/roles/obs/tasks/main.yml +++ b/roles/obs/tasks/main.yml @@ -57,6 +57,10 @@ regexp: '(AllowUsers(?!.*\b{{ emacsconf_id }}-{{ item.id }}\b).*)$' replace: \1 {{ emacsconf_id }}-{{ item.id }} loop: "{{ emacsconf_tracks }}" +- name: Set emacsconf_user timezone + lineinfile: + line: export TZ={{ emacsconf_timezone }} + dest: "/home/{{ emacsconf_user }}/.bashrc" - name: Allow sudo from {{ emacsconf_user }} to the stream users become: true become_user: root diff --git a/roles/obs/tasks/track.yml b/roles/obs/tasks/track.yml index 889c9fd..da44bac 100644 --- a/roles/obs/tasks/track.yml +++ b/roles/obs/tasks/track.yml @@ -101,6 +101,14 @@ src: "/data/{{ emacsconf_id }}/assets/stream" dest: "~{{ emacsconf_user }}/stream" state: link + - name: Create background music script + tags: wip + template: + src: start-background-music + dest: "~{{ emacsconf_user }}/bin/start-background-music" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + mode: 0775 - name: Reset vars tags: obs-scene, obs-profile, mpv, wip, mumble set_fact: |