diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-12-02 08:20:11 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-12-02 08:20:11 -0500 |
commit | 35c0ad6646e1d048fb42b5a0436d118da4a1d151 (patch) | |
tree | 7abe9248565b6b41565dcf5fc0ac0f5f839a1258 /roles/obs/tasks | |
parent | 66ae0b351fe2709d583073496f3ff6812989cdd2 (diff) | |
download | emacsconf-ansible-35c0ad6646e1d048fb42b5a0436d118da4a1d151.tar.xz emacsconf-ansible-35c0ad6646e1d048fb42b5a0436d118da4a1d151.zip |
OBS-related things
Diffstat (limited to 'roles/obs/tasks')
-rw-r--r-- | roles/obs/tasks/main.yml | 14 | ||||
-rw-r--r-- | roles/obs/tasks/obs-setup.yml | 4 | ||||
-rw-r--r-- | roles/obs/tasks/track.yml | 11 | ||||
-rw-r--r-- | roles/obs/tasks/user.yml | 1 |
4 files changed, 19 insertions, 11 deletions
diff --git a/roles/obs/tasks/main.yml b/roles/obs/tasks/main.yml index 5974142..806e9f2 100644 --- a/roles/obs/tasks/main.yml +++ b/roles/obs/tasks/main.yml @@ -57,6 +57,7 @@ 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 }} @@ -77,3 +78,16 @@ path: "{{ emacsconf_asset_dir }}" state: directory mode: 0775 +- name: Set up scripts + tags: wip + template: + src: "{{ item }}" + dest: /usr/local/bin + mode: 0755 + loop: + - overlay + - music + - play + - play-with-intro + - intro + - bbb diff --git a/roles/obs/tasks/obs-setup.yml b/roles/obs/tasks/obs-setup.yml index a64d4bd..b2f8b07 100644 --- a/roles/obs/tasks/obs-setup.yml +++ b/roles/obs/tasks/obs-setup.yml @@ -32,7 +32,7 @@ group: "{{ emacsconf_group }}" dest: "~{{ emacsconf_user }}/.config/obs-studio/basic/scenes/{{ emacsconf_id }}.json" - name: Copy overlay template for video - tags: obs-scene, wip + tags: obs-scene copy: src: overlay.svg dest: "~{{ emacsconf_user }}/video.svg" @@ -40,7 +40,7 @@ group: "{{ emacsconf_group }}" mode: 0664 - name: Copy overlay template for video - tags: obs-scene, wip + tags: obs-scene copy: src: overlay.svg dest: "~{{ emacsconf_user }}/other.svg" diff --git a/roles/obs/tasks/track.yml b/roles/obs/tasks/track.yml index 8b138ae..3993848 100644 --- a/roles/obs/tasks/track.yml +++ b/roles/obs/tasks/track.yml @@ -27,7 +27,7 @@ group: "{{ emacsconf_group }}" state: directory - name: Add MPV profile - tags: mpv-conf, wip + tags: mpv-conf template: src: mpv.conf dest: "~{{ emacsconf_user }}/.config/mpv/mpv.conf" @@ -100,14 +100,7 @@ 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: diff --git a/roles/obs/tasks/user.yml b/roles/obs/tasks/user.yml index 00e68a8..187edb2 100644 --- a/roles/obs/tasks/user.yml +++ b/roles/obs/tasks/user.yml @@ -30,6 +30,7 @@ state: directory owner: "{{ emacsconf_user }}" - name: Set up bashrc + tags: wip template: src: bashrc dest: "/home/{{ emacsconf_user }}/.bashrc" |