From b42cc68ef804669d8ed258172b59764f9708b861 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 13 Nov 2023 10:27:39 +0000 Subject: [PATCH] Add audio/video settngs tools --- playbooks/apt.yaml | 9 +++++++++ playbooks/sunet.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 playbooks/sunet.yaml diff --git a/playbooks/apt.yaml b/playbooks/apt.yaml index 0c77fdc..b6af6ab 100644 --- a/playbooks/apt.yaml +++ b/playbooks/apt.yaml @@ -3,6 +3,8 @@ hosts: localhost connection: local become: false + vars: + uid: "{{ lookup('env','USER') }}" tasks: - name: Install apt packages become: true @@ -22,6 +24,8 @@ - nextcloud-desktop - npm - pass + - pavucontrol + - pipewire-audio - pipx - plocate - python3-yamlfix @@ -35,6 +39,7 @@ - thunderbird - unzip - waybar + - wdisplays - wget - wl-clipboard - wofi @@ -53,3 +58,7 @@ pkg: [nano] state: absent update_cache: true + - name: Enable pipewire-audio + ansible.builtin.command: + cmd: systemctl --user enable --now pipewire-pulse + creates: /home/{{ uid }}/.config/systemd/user/default.target.wants/pipewire-pulse.service diff --git a/playbooks/sunet.yaml b/playbooks/sunet.yaml new file mode 100644 index 0000000..3666663 --- /dev/null +++ b/playbooks/sunet.yaml @@ -0,0 +1,28 @@ +--- +- name: Set up various work related stuff + hosts: localhost + vars: + uid: "{{ lookup('env','USER') }}" + gitops: git+ssh://git@gitops.sunet.se + opsrepos: + - sunet-drive-ops + - mail-ops + - platform-ops + connection: local + become: false + tasks: + - name: Create sunet folders + become: true + ansible.builtin.file: + dest: /home/{{ uid }}/sunet/{{ item }} + state: directory + loop: + - docker + - ops + - puppet + - name: Get gitops ops-repos + ansible.builtin.command: + chdir: /home/{{ uid }}/sources/ + cmd: git clone {{ gitops }}/{{ item }} + creates: /home/{{ uid }}/sunet/ops/{{ item }} + loop: "{{ opsrepos }}"