|
|
|
---
|
|
|
|
- name: Install packages
|
|
|
|
hosts: localhost
|
|
|
|
connection: local
|
|
|
|
become: false
|
|
|
|
vars:
|
|
|
|
uid: "{{ lookup('env','USER') }}"
|
|
|
|
tasks:
|
|
|
|
- name: Install apt packages
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
autoclean: true
|
|
|
|
autoremove: true
|
|
|
|
install_recommends: true
|
|
|
|
pkg:
|
|
|
|
- ansible
|
|
|
|
- curl
|
|
|
|
- dia
|
|
|
|
- fcitx5
|
|
|
|
- foot
|
|
|
|
- git
|
|
|
|
- grimshot
|
|
|
|
- inkscape
|
|
|
|
- libreoffice
|
|
|
|
- lxpolkit
|
|
|
|
- mesa-utils
|
|
|
|
- mesa-utils-bin
|
|
|
|
- network-manager-gnome
|
|
|
|
- network-manager-config-connectivity-debian
|
|
|
|
- nextcloud-desktop
|
|
|
|
- npm
|
|
|
|
- pass
|
|
|
|
- pavucontrol
|
|
|
|
- pipewire-audio
|
|
|
|
- pipx
|
|
|
|
- plocate
|
|
|
|
- pkexec
|
|
|
|
- puppet-lint
|
|
|
|
- python3-yamlfix
|
|
|
|
- scdaemon
|
|
|
|
- sway
|
|
|
|
- sway-backgrounds
|
|
|
|
- sway-notification-center
|
|
|
|
- swayidle
|
|
|
|
- swaylock
|
|
|
|
- thunar
|
|
|
|
- thunderbird
|
|
|
|
- unzip
|
|
|
|
- waybar
|
|
|
|
- wdisplays
|
|
|
|
- wget
|
|
|
|
- wl-clipboard
|
|
|
|
- wofi
|
|
|
|
- xdg-desktop-portal
|
|
|
|
- xdg-desktop-portal-wlr
|
|
|
|
- xwayland
|
|
|
|
- yq
|
|
|
|
- zsh
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
- name: Remove apt packages
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
autoclean: true
|
|
|
|
autoremove: true
|
|
|
|
install_recommends: true
|
|
|
|
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
|