diff options
author | Sacha Chua <sacha@sachachua.com> | 2023-10-25 09:35:22 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2023-10-25 09:35:22 -0400 |
commit | bb2097042864be47ba8a51eb6c6c22b9766d7a94 (patch) | |
tree | 87a857475d33ba45d4250076baf4e825e17e3099 /roles/obs/tasks | |
parent | bb62418491b3799eb82b2cc8a0e6b41ce6e6d36e (diff) | |
download | emacsconf-ansible-bb2097042864be47ba8a51eb6c6c22b9766d7a94.tar.xz emacsconf-ansible-bb2097042864be47ba8a51eb6c6c22b9766d7a94.zip |
obs updates
Diffstat (limited to '')
-rw-r--r-- | roles/obs/tasks/main.yml | 13 | ||||
-rw-r--r-- | roles/obs/tasks/obs-setup.yml | 10 | ||||
-rw-r--r-- | roles/obs/tasks/track.yml | 5 |
3 files changed, 24 insertions, 4 deletions
diff --git a/roles/obs/tasks/main.yml b/roles/obs/tasks/main.yml index f88cc8f..249a0bb 100644 --- a/roles/obs/tasks/main.yml +++ b/roles/obs/tasks/main.yml @@ -6,6 +6,15 @@ apt_repository: repo: ppa:obsproject/obs-studio when: ansible_distribution == "Ubuntu" +- name: Add nodesource key + apt_key: + id: 2F59B5F99B1BE0B4 + keyserver: keyserver.ubuntu.com + state: present +- name: Add nodesource repository + ansible.builtin.apt_repository: + repo: deb https://deb.nodesource.com/node_20.x nodistro main + update_cache: yes - name: Add packages apt: name: @@ -19,6 +28,7 @@ - kitty - kitty-terminfo - alsa-utils + - nodejs - dbus-x11 - obs-studio - mumble @@ -58,13 +68,16 @@ replace: \1 {{ emacsconf_id }}-{{ item.id }} loop: "{{ emacsconf_tracks }}" - name: Set system timezone + tags: tz community.general.timezone: name: "{{ emacsconf_timezone }}" - name: Restart cron + tags: tz ansible.builtin.service: name: cron state: restarted - name: Set emacsconf_user timezone + tags: tz lineinfile: line: export TZ={{ emacsconf_timezone }} dest: "/home/{{ emacsconf_user }}/.bashrc" diff --git a/roles/obs/tasks/obs-setup.yml b/roles/obs/tasks/obs-setup.yml index b2f8b07..5b0fba4 100644 --- a/roles/obs/tasks/obs-setup.yml +++ b/roles/obs/tasks/obs-setup.yml @@ -59,12 +59,18 @@ loop_control: loop_var: filename - name: Create OBS scripts for tracks + tags: obs-track-scripts template: - src: obs-track - dest: "~{{ emacsconf_user }}/bin/track-obs" + src: "{{ script }}" + dest: "~{{ emacsconf_user }}/bin/{{ script }}" owner: "{{ emacsconf_user }}" group: "{{ emacsconf_group }}" mode: 0775 + loop_control: + loop_var: script + loop: + - obs-track + - obs-cli-track - name: Fix permissions become: true become_user: root diff --git a/roles/obs/tasks/track.yml b/roles/obs/tasks/track.yml index 3993848..d615336 100644 --- a/roles/obs/tasks/track.yml +++ b/roles/obs/tasks/track.yml @@ -1,5 +1,5 @@ - name: Set vars - tags: obs-scene, obs-profile, mpv, wip, mumble + tags: obs-scene, obs-profile, mpv, wip, mumble, obs-track-scripts set_fact: old_emacsconf_user: "{{ emacsconf_user }}" old_emacsconf_home: "{{ emacsconf_home }}" @@ -8,6 +8,7 @@ - debug: var: emacsconf_home - name: Set up user + tags: obs-track-scripts include: user.yml - name: Set up user-related things become_user: "{{ emacsconf_user }}" @@ -41,7 +42,7 @@ group: "{{ emacsconf_group }}" mode: 0775 - name: Set up OBS profiles and scenes - tags: obs-profile, obs-scene + tags: obs-profile, obs-scene, obs-track-scripts include_tasks: file: obs-setup.yml apply: |