-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotfiles_setup.yml
61 lines (55 loc) · 1.32 KB
/
dotfiles_setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
- name: Setup Dotfiles and Required Packages
hosts: localhost
become: yes
tasks:
- name: Update package cache
pacman:
update_cache: yes
- name: Install required packages with pacman
pacman:
name:
- git
- base-devel
- stow
- qt5ct
- lxappearance-gtk3
- xfce4-power-manager
- dunst
- picom
- polybar
- rofi
- feh
- redshift
- pulseaudio
- blueman
- gnome-screenshot
- ttf-0xproto-nerd
- rofi-emoji
- i3lock
- zsh
state: present
- name: Install yay
become: no
block:
- name: Clone yay repository
git:
repo: https://aur.archlinux.org/yay.git
dest: /tmp/yay
- name: Build and install yay
command: makepkg -si --noconfirm
args:
chdir: /tmp/yay
creates: /usr/bin/yay
- name: Install AUR packages with yay
become: no
command: yay -S --noconfirm qt5-styleplugins nm-applet
- name: Stow dotfiles
become: no
command: stow .
args:
chdir: ~/dotfiles
- name: Set zsh as default shell
user:
name: "{{ ansible_user_id }}"
shell: /bin/zsh