Split out network and pipewire

main
Micke Nordin 1 year ago
parent 5602648f15
commit 1d6e9fa06f

@ -70,18 +70,3 @@
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
- name: Allow nm-applet to set wifi
become: true
ansible.builtin.template:
src: ../templates/org.freedesktop.NetworkManager.policy.j2
dest: /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
- name: Manage ifupdown in NM
become: true
ansible.builtin.lineinfile:
path: /etc/NetworkManager/NetworkManager.conf
regex: managed=false
line: managed=true

@ -0,0 +1,19 @@
---
- name: Set up network stuff
hosts: localhost
connection: local
become: false
vars:
uid: "{{ lookup('env','USER') }}"
tasks:
- name: Allow nm-applet to set wifi
become: true
ansible.builtin.template:
src: ../templates/org.freedesktop.NetworkManager.policy.j2
dest: /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
- name: Manage ifupdown in NM
become: true
ansible.builtin.lineinfile:
path: /etc/NetworkManager/NetworkManager.conf
regex: managed=false
line: managed=true

@ -0,0 +1,12 @@
---
- name: Setup pipewire
hosts: localhost
connection: local
become: false
vars:
uid: "{{ lookup('env','USER') }}"
tasks:
- 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

@ -3,9 +3,12 @@
- import_playbook: playbooks/env.yaml
- import_playbook: playbooks/firefox.yaml
- import_playbook: playbooks/fonts.yaml
- import_playbook: playbooks/mattermost.yaml
- import_playbook: playbooks/network.yaml
- import_playbook: playbooks/pass.yaml
- import_playbook: playbooks/ssh.yaml
- import_playbook: playbooks/pipewire.yaml
- import_playbook: playbooks/slack.yaml
- import_playbook: playbooks/ssh.yaml
- import_playbook: playbooks/sunet.yaml
- import_playbook: playbooks/sway.yaml
#- import_playbook: playbooks/zoom.yaml

Loading…
Cancel
Save