- name: Install utilities become: yes apt: state: present install_recommends: false name: - swaylock - swaybg - swayidle - waybar - wofi - xdg-desktop-portal-wlr - xdg-desktop-portal-gtk - xfce4-appfinder - rtkit - pipewire - pipewire-pulse - wireplumber - qpwgraph - alsa-utils - gnome-keyring - adwaita-icon-theme - fonts-firacode - fonts-font-awesome - fonts-noto-color-emoji - thunar - dunst - polkit-kde-agent-1 - slurp - grim - swappy - scdaemon - ssh-askpass-gnome - name: Install tools for mobile platform become: yes apt: state: present name: - brightnessctl - network-manager when: hostvars[ansible_hostname]['mobile_platform'] - name: Install brightnessctl udev rules become: yes ansible.builtin.get_url: url: https://github.com/Hummer12007/brightnessctl/raw/refs/heads/master/90-brightnessctl.rules dest: /etc/udev/rules.d/90-brightnessctl.rules owner: root group: root mode: u=rw,g=r,o=r when: hostvars[ansible_hostname]['mobile_platform'] - name: Install zsh become: yes apt: state: present install_recommends: false name: zsh register: zsh_installation - name: Download Oh My Zsh installer ansible.builtin.get_url: url: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh dest: /tmp/install.sh when: zsh_installation is changed - name: Install Oh My Zsh ansible.builtin.command: cmd: sh /tmp/install.sh --unattended --keep-zshrc chdir: "{{ ansible_env.HOME }}" when: zsh_installation is changed - name: Delete Oh My Zsh installer ansible.builtin.file: path: /tmp/install.sh state: absent when: zsh_installation is changed