--- - 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 - arandr - cargo - composer - cups - curl - dbus-broker - dia - evince - fcitx5 - feh - file-roller - firmware-linux - git - hiera-eyaml - i3 - inkscape - isort - j4-dmenu-desktop - kitty - libreoffice - lightdm - lxpolkit - mesa-utils - mesa-utils-bin - meson - network-manager-gnome - network-manager-config-connectivity-debian - nextcloud-desktop - nheko - nitrogen - nodejs - npm - pass - pavucontrol - picom - pipewire - pipewire-audio - pipx - plocate - plymouth - plymouth-themes - plymouth-label - pkexec - pulseaudio-utils - puppet-lint - python3-deepdiff - python3-openstackclient # - python3-yamlfix - python3-xdg - qt5ct - rsync - rofi - scdaemon - seahorse - shfmt - simple-scan - thunar - thunderbird - tsocks - unzip - waypipe - wget # - x11-server-utils - xclip - xdg-desktop-portal - xdg-desktop-portal-gtk - xss-lock - yapf3 - 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