blob: 7186585a440e577169dc3c319bd0a3599eef578b (
plain) (
tree)
|
|
- name: append current user to system groups
user:
name: "{{ workstation_user }}"
groups: "{{ item }}"
append: true
loop:
- docker
- wheel
- video
- audio
- name: enable and start pipewire
systemd:
name: "{{ item }}"
scope: user
enabled: true
state: started
become: true
become_method: su
become_user: "{{ workstation_user }}"
loop:
- pipewire
- pipewire-pulse
- pipewire-media-session
when: ansible_service_mgr == "systemd"
- name: ensure that dhcpcd is started
service:
name: dhcpcd
state: started
enabled: true
- name: enable battery optimization
include_tasks: tlp.yml
when: ansible_form_factor in ["Laptop", "Notebook"]
- name: include virtualization setup
include_tasks: libvirt.yml
- name: retrieve installed packages
package_facts:
register: package_facts
- name: install yay
include_tasks: yay.yml
when:
- "'yay' not in package_facts.ansible_facts.packages"
- "'yay-bin' not in package_facts.ansible_facts.packages"
|