--- - 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 - composer - curl - dia - fcitx5 - foot - git - grimshot - inkscape - libreoffice - lxpolkit - mesa-utils - mesa-utils-bin - network-manager-gnome - network-manager-config-connectivity-debian - nextcloud-desktop - nodejs - npm - pass - pavucontrol - pipewire-audio - pipx - plocate - pkexec - puppet-lint - python3-openstackclient - python3-yamlfix - rsync - scdaemon - simple-scan - sway - sway-backgrounds - sway-notification-center - swayidle - swaylock - thunar - thunderbird - tsocks - unzip - waybar - wdisplays - wget - wl-clipboard - wlr-randr - 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