aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/os_archlinux.yml
blob: 912d93890543c5ac7727b0d3b51ad7b48405ed60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
- 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: include dockerd setup
  include_tasks: dockerd.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"
remember that computers suck.