parent
561e709927
commit
a37fb2deb6
@ -0,0 +1,96 @@
|
||||
---
|
||||
- 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
|
||||
- file-roller
|
||||
- firmware-linux
|
||||
- flameshot
|
||||
- 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
|
||||
- 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
|
@ -0,0 +1,39 @@
|
||||
---
|
||||
- name: Set up i3
|
||||
vars:
|
||||
uid: "{{ lookup('env','USER') }}"
|
||||
TZ: "{{ lookup('env','TZ') }}"
|
||||
wallpaper_path: /home/{{ uid }}/.config/wallpaper/debian.jpg
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: false
|
||||
tasks:
|
||||
- name: Install autotiling
|
||||
ansible.builtin.command:
|
||||
cmd: pipx install autotiling
|
||||
creates: /home/{{ uid }}/.local/bin/autotiling
|
||||
- name: Create i3 dir
|
||||
ansible.builtin.file:
|
||||
dest: /home/{{ uid }}/.config/i3
|
||||
state: directory
|
||||
- name: Install i3 config
|
||||
ansible.builtin.template:
|
||||
src: ../templates/i3_config.j2
|
||||
dest: /home/{{ uid }}/.config/i3/config
|
||||
owner: '{{ uid }}'
|
||||
group: '{{ uid }}'
|
||||
mode: '0640'
|
||||
notify: Reload i3
|
||||
- name: Create wallpaper dir
|
||||
ansible.builtin.file:
|
||||
dest: /home/{{ uid }}/.config/wallpaper
|
||||
state: directory
|
||||
- name: Setup wall paper
|
||||
ansible.builtin.copy:
|
||||
dest: '{{ wallpaper_path }}'
|
||||
src: ../data/debian.jpg
|
||||
notify: Reload i3
|
||||
handlers:
|
||||
- name: Reload i3
|
||||
ansible.builtin.command:
|
||||
cmd: i3msg reload
|
Loading…
Reference in new issue