91 lines
2.2 KiB
YAML
91 lines
2.2 KiB
YAML
- 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
|
|
- libpam-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: Configure gnome-keyring pam rules
|
|
become: yes
|
|
blockinfile:
|
|
path: /etc/pam.d/login
|
|
insertafter: '@include common-password'
|
|
prepend_newline: true
|
|
block: |
|
|
# Gnome keyring
|
|
auth optional pam_gnome_keyring.so
|
|
session optional pam_gnome_keyring.so auto_start
|
|
|
|
- name: Install tools for mobile platform
|
|
become: yes
|
|
apt:
|
|
state: present
|
|
name:
|
|
- brightnessctl
|
|
- network-manager
|
|
when: "hostvars[ansible_hostname]['mobile_platform'] | default(false)"
|
|
|
|
- name: Install brightnessctl udev rules
|
|
become: yes
|
|
ansible.builtin.get_url:
|
|
url: https://raw.githubusercontent.com/Hummer12007/brightnessctl/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'] | default(false)"
|
|
|
|
- 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
|
|
|